CVE-2025-22000

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

MEDIUM
5.5
CVSS Score
Published: April 3, 2025 at 07:19 AM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.13 ≤ v < 6.13.96.9 ≤ v < 6.12.216.9 ≤ v < 6.13.96.9 ≤ v < 6.146.14 rc16.14 rc26.14 rc36.14 rc46.14 rc56.14 rc66.14 rc7c010d47f107f609b9f4d6a103b6dfc53889049e9
Vendor states this is fixed in 14efb4793519d73fb2902bb0ece319b886e4b4b9 (fixed)
Vendor states this is fixed in 86368616a9ce51f6b41efa251b6e066893851d67 (fixed)
Vendor states this is fixed in 92ad820a1f2d95d5a8d6c2bd3f391bbb068a5f9e (fixed)
Vendor states this is fixed in 6.12.21 (unaffected)
Vendor states this is fixed in 6.13.9 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/14efb4793519d73fb2902bb0ece319b886e4b4b9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/86368616a9ce51f6b41efa251b6e066893851d67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92ad820a1f2d95d5a8d6c2bd3f391bbb068a5f9e

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card