CVE-2025-21671: Linux kernel · zram: fix potential UAF of zram table
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 30 Oct 2026, 01:08 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 31 Jan 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
The vulnerability has been resolved in the Linux kernel. Users and administrators should apply the official kernel updates or patches that fix this issue.
Description
CVE-2025-21671 is a use-after-free vulnerability in the Linux kernel's zram component. The flaw occurs when zram_meta_alloc fails early and frees the allocated zram->table without setting its pointer to NULL. This can lead to zram_meta_free accessing freed memory if a user resets a failed and uninitialized device. The vulnerability has a high severity with a CVSS score of 7.8.
References
- nvd.nist.gov/vuln/detail/CVE-2025-21671 (opens in a new tab)
- git.kernel.org/stable/c/212fe1c0df4a150fb6298db2cfff267ceaba5402 (opens in a new tab)
- git.kernel.org/stable/c/571d3f6045cd3a6d9f6aec33b678f3ffe97582ef (opens in a new tab)
- git.kernel.org/stable/c/902ef8f16d5ca77edc77c30656be54186c1e99b7 (opens in a new tab)
- git.kernel.org/stable/c/fe3de867f94819ba0f28e035c0b0182150147d95 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00001.html (opens in a new tab)