Skip to main content
Mallory
HighVulnerability

CVE-2025-21671: Use-after-free in Linux kernel zram table cleanup

Published Jan 31, 2025 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.32%17th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2025-21671CWE-416 · Use After Free

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.