CVE-2026-99736
mm/shmem: fix accounting of swapin-error markers
In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix accounting of swapin-error markers A failed swap read replaces the swap entry with a swapin-error marker in the page-cache and subtracts its pages from "alloced" and "swapped"; however, it leaves their block charge in place. Removing the marker during truncate then subtracts from "swapped" again. This can underflow the counters or make swapped reach zero while other pages remain swapped out, causing swapoff to loop without finding them. When installing the marker, subtract only from "swapped" and let shmem_recalc_inode() reduce "alloced" and release the block charge. Make shmem_free_swap() report successful removal separately from the number of swap pages freed, so removing a swapin-error marker does not subtract from "swapped" again. It's a bit confusing, but replacing a swapped out page by a swapin-error marker in shmem_set_folio_swapin_error() behaves as follows: Initially: alloced=1, swapped=1, nrpages=0 Calling shmem_recalc_inode(inode, 0, -1) -> swapped = 0 -> freed = 1 - 0 - 0 = 1 -> alloced -= freed -> alloced=0, swapped=0, block charge released
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| Linux Linux |
≥ 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61; < 00e3efd5d74d18447438edfd2532cd4100fd5756 (affected, git) ≥ 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61; < 5e09340badaf982a2cb73e41da715fcdd0e2eb7f (affected, git) ≥ 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61; < 77ad4ac35977d081f2b69f1c73ae3b210124b1fc (affected, git) ≥ 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61; < f49d40a699bdaf68bbb307f1fa207512520ce982 (affected, git) ≥ 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61; < d4bc03eaeef281c460370dfd57e1a671b787edd4 (affected, git) ≥ 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61; < 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09 (affected, git) Other versions: unaffected |
CNA: Linux |
| Linux Linux |
5.19 (affected) ≥ 0; < 5.19 (unaffected, semver) ≥ 6.1.193; ≤ 6.1.* (unaffected, semver) ≥ 6.6.163; ≤ 6.6.* (unaffected, semver) ≥ 6.12.119; ≤ 6.12.* (unaffected, semver) ≥ 6.18.65; ≤ 6.18.* (unaffected, semver) ≥ 7.3.5; ≤ 7.3.* (unaffected, semver) ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix) Other versions: affected |
CNA: Linux |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
No CVSS assessment reported. An unscored record is not a low-severity determination.
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://git.kernel.org/stable/c/00e3efd5d74d18447438edfd2532cd4100fd5756CNA: Linux
- https://git.kernel.org/stable/c/5e09340badaf982a2cb73e41da715fcdd0e2eb7fCNA: Linux
- https://git.kernel.org/stable/c/77ad4ac35977d081f2b69f1c73ae3b210124b1fcCNA: Linux
- https://git.kernel.org/stable/c/f49d40a699bdaf68bbb307f1fa207512520ce982CNA: Linux
- https://git.kernel.org/stable/c/d4bc03eaeef281c460370dfd57e1a671b787edd4CNA: Linux
- https://git.kernel.org/stable/c/66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09CNA: Linux
- https://git.kernel.org/stable/c/66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/d4bc03eaeef281c460370dfd57e1a671b787edd4416baaa9-dc9f-4396-8d5f-8c081fb06d67
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.