# CVE-2025-21671: zram: fix potential UAF of zram table

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-01-31T11:25:34.546Z
- Modified: 2026-06-17T08:43:58.957Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from ac3b5366b9b7c9d97b606532ceab43d2329a22f3 before fe3de867f94819ba0f28e035c0b0182150147d95; from 0b5b0b65561b34e6e360de317e4bcd031bfabf42 before 571d3f6045cd3a6d9f6aec33b678f3ffe97582ef; from 6fb92e9a52e3feae309a213950f21dfcd1eb0b40 before 902ef8f16d5ca77edc77c30656be54186c1e99b7; from 74363ec674cb172d8856de25776c8f3103f05e2f before 212fe1c0df4a150fb6298db2cfff267ceaba5402; from 6.1.122 before 6.1.127; from 6.6.68 before 6.6.74; from 6.12.7 before 6.12.11
- linux linux_kernel: from 6.1.122 before 6.1.127; from 6.6.68 before 6.6.74; from 6.12.7 before 6.12.11

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/fe3de867f94819ba0f28e035c0b0182150147d95> (patch)
- <https://git.kernel.org/stable/c/571d3f6045cd3a6d9f6aec33b678f3ffe97582ef> (patch)
- <https://git.kernel.org/stable/c/902ef8f16d5ca77edc77c30656be54186c1e99b7> (patch)
- <https://git.kernel.org/stable/c/212fe1c0df4a150fb6298db2cfff267ceaba5402> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

- CVE List: [CVE-2025-21671](https://www.cve.org/CVERecord?id=CVE-2025-21671), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21671](https://nvd.nist.gov/vuln/detail/CVE-2025-21671), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21671 · Whole record: https://cve.day/CVE-2025-21671.json · Rebuilt by cve.day 2026-11-25T22:58:53.712Z
