CVE-2025-21671: zram: fix potential UAF of zram table
In the Linux kernel, the following vulnerability has been resolved:
zram: fix potential UAF of zram table
If zram_meta_alloc failed early, it frees allocated zram->table without
setting it NULL. Which will potentially cause zram_meta_free to access
the table if user reset an failed and uninitialized device.
Security readout for executives and security teams
Plain-English summary
CVE-2025-21671 is a Linux kernel memory-safety flaw in zram. A local user could potentially trigger a use-after-free condition after a failed zram initialization/reset path. The CVSS rating is high because successful abuse could affect confidentiality, integrity, and availability, but the source bundle does not show active exploitation.
Executive priority
Prioritize patching on multi-user Linux systems, virtualization hosts, and systems where local users or workloads are less trusted. This is high severity, but current provided evidence supports local exposure only and no confirmed active exploitation.
Technical view
The flaw is CWE-416 in Linux zram. If zram_meta_alloc fails early, zram->table can be freed without being set to NULL, leaving zram_meta_free able to access freed memory when a failed, uninitialized device is reset. The referenced stable commits are fixes; exact vulnerable version ranges are not fully enumerated in the bundle.
Likely exposure
Exposure is most relevant to Linux systems where zram is present and usable by local users. The bundle identifies Linux kernel fixes and a Debian LTS advisory, but does not provide a complete distribution-by-distribution affected matrix. Kernel package backports must be checked against vendor advisories.
Exploitation context
The CVSS vector is local, low complexity, low privileges, no user interaction. The bundle marks KEV as false and provides no cited evidence of exploitation in the wild. Treat this as a local privilege or stability risk until vendor-specific impact is confirmed.
Researcher notes
Focus validation on the zram allocation failure and reset cleanup path described in the CVE. Avoid assuming all listed kernel versions are vulnerable; the source bundle presents fixed versions/commits but incomplete affected ranges. Confirm downstream backports through vendor package metadata.
Mitigation direction
Apply vendor kernel updates containing the referenced zram UAF fix.
For Debian LTS systems, review and apply the referenced Debian security update.
Confirm updated kernels are actually booted or active after maintenance.
If no update is available, follow vendor guidance for temporary controls.
Validation and detection
Inventory Linux hosts using kernels with zram support enabled.
Map installed kernel packages to vendor advisories or fixed stable commits.
Check whether Debian LTS systems include the March 2025 security update.
Verify post-update kernel version and package changelog evidence.
Review local access controls for users who can interact with zram devices.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
2ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.