# CVE-2025-22000: mm/huge_memory: drop beyond-EOF folios with the right number of refs

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-04-03T07:19:03.652Z
- Modified: 2026-06-17T08:44:48.737Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/huge_memory: drop beyond-EOF folios with the right number of refs

When an after-split folio is large and needs to be dropped due to EOF,
folio_put_refs(folio, folio_nr_pages(folio)) should be used to drop all
page cache refs.  Otherwise, the folio will not be freed, causing memory
leak.

This leak would happen on a filesystem with blocksize > page_size and a
truncate is performed, where the blocksize makes folios split to >0 order
ones, causing truncated folios not being freed.

(As written by CVE List.)

## Affected

- Linux Linux: from c010d47f107f609b9f4d6a103b6dfc53889049e9 before 86368616a9ce51f6b41efa251b6e066893851d67; from c010d47f107f609b9f4d6a103b6dfc53889049e9 before 92ad820a1f2d95d5a8d6c2bd3f391bbb068a5f9e; from c010d47f107f609b9f4d6a103b6dfc53889049e9 before 14efb4793519d73fb2902bb0ece319b886e4b4b9; 6.9 (not affected: before 6.9; from 6.12.21 up to 6.12.*; from 6.13.9 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.9 before 6.12.21; from 6.13 before 6.13.9; 6.14

## Every score

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

## References

- <https://git.kernel.org/stable/c/86368616a9ce51f6b41efa251b6e066893851d67> (patch)
- <https://git.kernel.org/stable/c/92ad820a1f2d95d5a8d6c2bd3f391bbb068a5f9e> (patch)
- <https://git.kernel.org/stable/c/14efb4793519d73fb2902bb0ece319b886e4b4b9> (patch)

## Sources

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

---

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