CVE-2025-21671·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.11
- Published
- 2025-01-31
Affected versions
From: 6.12.7
Until: 6.12.11
Fixed in: 6.12.11
How to fix this CVE
Update your Linux kernel to version 6.12.11 or later to fix a use-after-free vulnerability in zram's memory allocation handler. This vulnerability allows potential unauthorized access and modification of kernel memory when zram device reset operations fail. Patch your system immediately to prevent memory corruption and privilege escalation attacks.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — verify if the version is between 6.12.7 and 6.12.10 (vulnerable range)
- Verify zram is enabled: cat /proc/modules | grep zram — if zram is loaded, your system may expose this vulnerability
- Check kernel logs for zram_meta_alloc failures: dmesg | grep -i 'zram.*alloc' — look for memory allocation errors that could trigger the UAF condition
- Confirm the fix is applied: after patching, verify uname -r returns 6.12.11 or later, then reboot and re-run step 1
FAQ
What is CVE-2025-21671?
CVE-2025-21671 is a use-after-free vulnerability in the Linux kernel's zram module where a failed initialization leaves a dangling pointer in memory, allowing subsequent operations to access freed memory and potentially corrupt kernel state or escalate privileges.
Is CVE-2025-21671 being actively exploited?
No, according to CISA KEV data, CVE-2025-21671 is not currently being actively exploited in the wild, and no public proof-of-concept exploits are available.
What versions of Kernel are affected by CVE-2025-21671?
Linux kernel versions 6.12.7 through 6.12.10 are affected. Version 6.12.11 and later contain the fix.
How do I check if my server is vulnerable to CVE-2025-21671?
Run uname -r to check your kernel version. If the output shows 6.12.7, 6.12.8, 6.12.9, or 6.12.10, your system is vulnerable. Additionally, confirm zram is in use with: grep zram /proc/modules.
Does Defensia detect CVE-2025-21671?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2025-21671 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/212fe1c0df4a150fb6298db2cfff267ceaba5402
- https://git.kernel.org/stable/c/571d3f6045cd3a6d9f6aec33b678f3ffe97582ef
- https://git.kernel.org/stable/c/902ef8f16d5ca77edc77c30656be54186c1e99b7
- https://git.kernel.org/stable/c/fe3de867f94819ba0f28e035c0b0182150147d95
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21671. Free for 1 server.
Get started free