CVE-2025-21671: Linux kernel · zram: fix potential UAF of zram table
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 24 Nov 2026, 19:55 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 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinux-raspi-realtimepkg:deb/ubuntu/linux-raspi-realtime?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-allwinner-5.19pkg:deb/ubuntu/linux-allwinner-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-5.19pkg:deb/ubuntu/linux-aws-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.2pkg:deb/ubuntu/linux-aws-6.2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.5pkg:deb/ubuntu/linux-aws-6.5?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-azure-5.19pkg:deb/ubuntu/linux-azure-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix for this vulnerability is available in updated Linux kernel versions. Users should upgrade to patched kernel releases that address this issue. Since this is a kernel-level vulnerability, applying the official kernel updates from the vendor or distribution is the recommended remediation. No additional mitigations are specified.
Description
A use-after-free (UAF) vulnerability exists in the Linux kernel's zram module. If the zram_meta_alloc function fails early, it frees the allocated zram->table without setting it to NULL, which can lead to zram_meta_free accessing a freed table when a user resets a failed and uninitialized device. This flaw affects multiple specific Linux kernel versions and has a high severity rating.
References
- ubuntu.com/security/CVE-2025-21671 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21671 (opens in a new tab)
- git.kernel.org/linus/212fe1c0df4a150fb6298db2cfff267ceaba5402 (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)