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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **Published:** 2026-11-20T05:51:12.953Z
- **Modified:** 2026-11-23T08:18:14.260Z

## Who should check

- Anyone running Linux \>= da9b7c651c6517c2de1099136ed87c0c24f864dd, \< c00f570d296157a89bf25282cfabc057a34dbc85; \>= 7a4ae7acd20805940307be98b304871a43288a01, \< 65c71c823b8ceb7721642fdb24a992b22fdf0944; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< 1360e0f9a188cfede01d0df81119d925bbfff165; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< b3239a5a37bba078d83cfb864d47a0cc122f17cd; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< a842a1f947da8a7020e72f885ffbf2ce6a93685f; \>= 6.1.69, \< 6.1.193; \>= 6.6.8, \< 6.6.163
- Anyone running Linux 6.7

## 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 \]

## Affected and fixed versions

- Linux: \>= da9b7c651c6517c2de1099136ed87c0c24f864dd, \< c00f570d296157a89bf25282cfabc057a34dbc85; \>= 7a4ae7acd20805940307be98b304871a43288a01, \< 65c71c823b8ceb7721642fdb24a992b22fdf0944; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< 1360e0f9a188cfede01d0df81119d925bbfff165; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< b3239a5a37bba078d83cfb864d47a0cc122f17cd; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< a842a1f947da8a7020e72f885ffbf2ce6a93685f; \>= 6.1.69, \< 6.1.193; \>= 6.6.8, \< 6.6.163 (cvelist)
- Linux: 6.7 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 6.6.163 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99740. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99740.md
Affected: Linux >= da9b7c651c6517c2de1099136ed87c0c24f864dd, < c00f570d296157a89bf25282cfabc057a34dbc85; >= 7a4ae7acd20805940307be98b304871a43288a01, < 65c71c823b8ceb7721642fdb24a992b22fdf0944; >= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, < dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12; >= 55ac8bbe358bdd2f3c044c1…
Fixed in: Linux 65c71c823b8ceb7721642fdb24a992b22fdf0944, Linux 1360e0f9a188cfede01d0df81119d925bbfff165, Linux 6.1.193, Linux 6.6.163

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99740 being exploited?

There is no confirmed exploitation: CVE-2026-99740 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99740?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99740?

Linux \>= da9b7c651c6517c2de1099136ed87c0c24f864dd, \< c00f570d296157a89bf25282cfabc057a34dbc85; \>= 7a4ae7acd20805940307be98b304871a43288a01, \< 65c71c823b8ceb7721642fdb24a992b22fdf0944; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< 1360e0f9a188cfede01d0df81119d925bbfff165; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< b3239a5a37bba078d83cfb864d47a0cc122f17cd; \>= 55ac8bbe358bdd2f3c044c12f249fd22d48fe015, \< a842a1f947da8a7020e72f885ffbf2ce6a93685f; \>= 6.1.69, \< 6.1.193; \>= 6.6.8, \< 6.6.163; Linux 6.7.

### Is there a fix for CVE-2026-99740?

Yes. Fixed in Linux 65c71c823b8ceb7721642fdb24a992b22fdf0944, Linux 1360e0f9a188cfede01d0df81119d925bbfff165, Linux 6.1.193, Linux 6.6.163. Upgrade Linux to 6.6.163 or later.

### How do I check if I'm affected by CVE-2026-99740?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/c00f570d296157a89bf25282cfabc057a34dbc85>
- other: <https://git.kernel.org/stable/c/65c71c823b8ceb7721642fdb24a992b22fdf0944>
- other: <https://git.kernel.org/stable/c/dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12>
- other: <https://git.kernel.org/stable/c/1360e0f9a188cfede01d0df81119d925bbfff165>
- other: <https://git.kernel.org/stable/c/b3239a5a37bba078d83cfb864d47a0cc122f17cd>
- other: <https://git.kernel.org/stable/c/a842a1f947da8a7020e72f885ffbf2ce6a93685f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99740>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99740> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99740>
