CVE-2026-99740: mm/shmem: stop retrying folios that cannot be split

Published Nov 20, 2026
·
Updated

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 shmemundorange() has handled the boundary folios. If splitting that folio fails, truncateinodepartialfolio() 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 ]

Affected Software

5 affected componentsFixes available
linux/kernel>=6.1.69<6.2
6.2
linux/kernel>=6.6.8<6.7
6.7
linux/kernel>=6.7.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.2
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.7
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5

Frequently Asked Questions

1

What conditions are needed to trigger the truncation loop?

A large shmem folio must cross EOF after boundary handling, splitting that folio must fail, and the folio must be dirty so truncate_inode_partial_folio() retains it. The final truncation scan can then repeatedly revisit the unchanged start position.

2

What is the operational impact of exploitation or accidental triggering?

Truncation can loop while retaining the inode lock and ignoring fatal signals. A concurrent unlink() may then hold a directory lock while waiting for the file lock, blocking other directory operations.

3

Are there mitigations if the fix cannot be applied immediately?

The provided information does not identify a configuration workaround. Reducing or avoiding concurrent truncation and unlink activity involving affected shmem files may reduce exposure, but this is not stated as a complete mitigation.

4

How can administrators identify systems that include the fix?

The available references identify stable kernel commits dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12, 1360e0f9a188cfede01d0df81119d925bbfff165, and b3239a5a37bba078d83cfb864d47a0cc122f17cd. No affected or fixed kernel version numbers are provided.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203