CVE-2025-22000
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.9 before 6.12.21, from 6.13 before 6.13.9, 6.14NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/huge_memory: se eliminan folios posteriores al fin del archivo con el número correcto de referencias. Cuando un folio, tras la división, es grande y debe eliminarse debido al fin del archivo, se debe usar folio_put_refs(folio, folio_nr_pages(folio)) para eliminar todas las referencias de la caché de páginas. De lo contrario, el folio no se liberará, lo que provocará una fuga de memoria. Esta fuga ocurriría en un sistema de archivos con un tamaño de bloque superior a page_size y se realiza un truncamiento, donde el tamaño de bloque hace que los folios se dividan a folios de orden superior a 0, lo que impide la liberación de los folios truncados.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22000 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-22000 changed 2026-06-17Public domain