CVE-2026-99740

mm/shmem: stop retrying folios that cannot be split

State
Published
Severity
Not scored
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

mm/shmem: stop retrying folios that cannot be split

A fault or collapse can insert a large folio crossing EOF after shmem_undo_range() has handled the boundary folios. If splitting that folio fails, truncate_inode_partial_folio() retains it when it is dirty. The final scan then repeatedly finds it because it restarts from an unchanged start.

Truncation keeps the inode lock and ignores fatal signals while looping. A concurrent unlink() can then block other directory operations while holding the directory lock and waiting for the file's lock.

Advance start past the retained folio, whose truncated part has already been zeroed. Do not move start backwards if the failed split has shrunk the folio.

Fix generated by an LLM and sent by Chris Mason in private.

[ david: split fixes, simplify descriptions, adjust comments ]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 to before dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12Affected
  • 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 to before 1360e0f9a188cfede01d0df81119d925bbfff165Affected
  • 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 to before b3239a5a37bba078d83cfb864d47a0cc122f17cdAffected
  • 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 to before a842a1f947da8a7020e72f885ffbf2ce6a93685fAffected
  • da9b7c651c6517c2de1099136ed87c0c24f864ddAffected
  • 7a4ae7acd20805940307be98b304871a43288a01Affected
  • 6.1.69 to before 6.2Affected
  • 6.6.8 to before 6.7Affected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.12.118 through 6.12.*Not affected
  • 6.18.64 through 6.18.*Not affected
  • 7.3.5 through 7.3.*Not affected
  • 7.4-rc2 and laterNot affected

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.