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

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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 ]

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ da9b7c651c6517c2de1099136ed87c0c24f864dd; < c00f570d296157a89bf25282cfabc057a34dbc85 (affected, git); ≥ 7a4ae7acd20805940307be98b304871a43288a01; < 65c71c823b8ceb7721642fdb24a992b22fdf0944 (affected, git); ≥ 55ac8bbe358bdd2f3c044c12f249fd22d48fe015; < dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12 (affected, git); ≥ 55ac8bbe358bdd2f3c044c12f249fd22d48fe015; < 1360e0f9a188cfede01d0df81119d925bbfff165 (affected, git); ≥ 55ac8bbe358bdd2f3c044c12f249fd22d48fe015; < b3239a5a37bba078d83cfb864d47a0cc122f17cd (affected, git); ≥ 55ac8bbe358bdd2f3c044c12f249fd22d48fe015; < a842a1f947da8a7020e72f885ffbf2ce6a93685f (affected, git); ≥ 6.1.69; < 6.1.193 (affected, semver); ≥ 6.6.8; < 6.6.163 (affected, semver). Source: CNA: Linux
- Linux / Linux: 6.7 (affected); ≥ 0; < 6.7 (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.118; ≤ 6.12.* (unaffected, semver); ≥ 6.18.64; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-11-22; percentile 6.18%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/c00f570d296157a89bf25282cfabc057a34dbc85 (CNA: Linux)

- https://git.kernel.org/stable/c/65c71c823b8ceb7721642fdb24a992b22fdf0944 (CNA: Linux)

- https://git.kernel.org/stable/c/dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12 (CNA: Linux)

- https://git.kernel.org/stable/c/1360e0f9a188cfede01d0df81119d925bbfff165 (CNA: Linux)

- https://git.kernel.org/stable/c/b3239a5a37bba078d83cfb864d47a0cc122f17cd (CNA: Linux)

- https://git.kernel.org/stable/c/a842a1f947da8a7020e72f885ffbf2ce6a93685f (CNA: Linux)

- https://git.kernel.org/stable/c/1360e0f9a188cfede01d0df81119d925bbfff165 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/a842a1f947da8a7020e72f885ffbf2ce6a93685f (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/b3239a5a37bba078d83cfb864d47a0cc122f17cd (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99740; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99740; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99740; retrieved 2026-11-23; source updated Not reported

Revision: 7dc0c51db03f120bf6eefea7aa86093394e6b64597b59ffc889d0cbc2c7e16db

Canonical: https://y2.dev/cve/CVE-2026-99740

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.