CWE
401
Advisory Published
Updated

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

First published: Thu Apr 03 2025(Updated: )

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.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel
Linux Kernel>=6.9<6.12.21
Linux Kernel>=6.13<6.13.9
Linux Kernel=6.14-rc1
Linux Kernel=6.14-rc2
Linux Kernel=6.14-rc3
Linux Kernel=6.14-rc4
Linux Kernel=6.14-rc5
Linux Kernel=6.14-rc6
Linux Kernel=6.14-rc7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-22000?

    CVE-2025-22000 has been classified as a medium severity vulnerability in the Linux kernel.

  • How do I fix CVE-2025-22000?

    To fix CVE-2025-22000, upgrade to the latest version of the Linux kernel where the vulnerability has been resolved.

  • What versions of the Linux kernel are affected by CVE-2025-22000?

    CVE-2025-22000 affects specific versions of the Linux kernel, particularly those prior to the patch release addressing this vulnerability.

  • What does CVE-2025-22000 impact?

    CVE-2025-22000 impacts memory management by incorrectly handling large folios after split operations, potentially leading to resource misuse.

  • Is CVE-2025-22000 a remote or local vulnerability?

    CVE-2025-22000 is considered a local vulnerability as it requires local access to exploit the memory management flaw.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203