CVE-2025-21671: Use-after-free in Linux kernel zram table cleanup
- Vendor
- Linux
CVE-2025-21671 is a use-after-free vulnerability in the Linux kernel zram subsystem. When zram_meta_alloc fails early, its error-handling path frees the allocated zram->table without setting the pointer to NULL. Subsequently resetting the failed, uninitialized zram device can cause zram_meta_free to access the freed table. The vulnerability affects upstream stable kernel versions 6.1.122 through 6.1.126, 6.6.68 through 6.6.73, and 6.12.7 through 6.12.10. Access to the dangling pointer can compromise kernel memory safety.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Triggering the use-after-free can cause kernel memory corruption or a system crash, resulting in denial of service. Depending on memory reuse and exploitation conditions, the flaw could potentially permit memory disclosure or unauthorized kernel-level code execution, compromising system confidentiality and integrity. These additional outcomes are potential consequences rather than demonstrated exploitation; no known exploits are identified.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific temporary workaround is documented. Vendor security updates are the supported corrective action.
Remediation
Patch, then assume compromise.
Upgrade to a current supported kernel containing the fix. The first fixed upstream releases in the identified stable branches are 6.1.127, 6.6.74, and 6.12.11. The correction clears the table pointer after freeing it on the allocation-failure path, preventing subsequent cleanup from accessing freed memory. Prefer complete supported kernel updates over cherry-picking individual changes. For Google Container-Optimized OS, update sys-kernel/lakitu-kernel-6_1 to 17800.436.32 or later. For RHEL 9 and 10, apply RHSA-2025:20518 and RHSA-2025:20095, respectively; Rocky Linux 9 updates are identified by CIQ advisory crlsa-2025_20518. Other affected distributions and appliances should receive their corresponding vendor updates. Reboot into the patched kernel.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-21671 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2025-21671 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-21671?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2025-21671.
- Is there a patch for CVE-2025-21671?
- Upgrade to a current supported kernel containing the fix. The first fixed upstream releases in the identified stable branches are 6.1.127, 6.6.74, and 6.12.11.
- What products are affected by CVE-2025-21671?
- Linux Kernel.
- How severe is CVE-2025-21671?
- CVE-2025-21671 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.32% (17th percentile) as of Oct 25, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.