# CVE-2026-99736: mm/shmem: fix accounting of swapin-error markers

- **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:09.778Z
- **Modified:** 2026-11-23T08:18:14.020Z

## Who should check

- Anyone running Linux \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 00e3efd5d74d18447438edfd2532cd4100fd5756; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 5e09340badaf982a2cb73e41da715fcdd0e2eb7f; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 77ad4ac35977d081f2b69f1c73ae3b210124b1fc; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< f49d40a699bdaf68bbb307f1fa207512520ce982; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< d4bc03eaeef281c460370dfd57e1a671b787edd4; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09
- Anyone running Linux 5.19

## Description

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

## Affected and fixed versions

- Linux: \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 00e3efd5d74d18447438edfd2532cd4100fd5756; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 5e09340badaf982a2cb73e41da715fcdd0e2eb7f; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 77ad4ac35977d081f2b69f1c73ae3b210124b1fc; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< f49d40a699bdaf68bbb307f1fa207512520ce982; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< d4bc03eaeef281c460370dfd57e1a671b787edd4; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09 (cvelist)
- Linux: 5.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09 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-99736. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99736.md
Affected: Linux >= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, < 00e3efd5d74d18447438edfd2532cd4100fd5756; >= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, < 5e09340badaf982a2cb73e41da715fcdd0e2eb7f; >= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, < 77ad4ac35977d081f2b69f1c73ae3b210124b1fc; >= 6cec2b95dadf77cdc1256fa…
Fixed in: Linux 00e3efd5d74d18447438edfd2532cd4100fd5756, Linux 5e09340badaf982a2cb73e41da715fcdd0e2eb7f, Linux 77ad4ac35977d081f2b69f1c73ae3b210124b1fc, Linux 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09

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-99736 being exploited?

There is no confirmed exploitation: CVE-2026-99736 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-99736?

It has no CVSS score yet. Unknown.

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

Linux \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 00e3efd5d74d18447438edfd2532cd4100fd5756; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 5e09340badaf982a2cb73e41da715fcdd0e2eb7f; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 77ad4ac35977d081f2b69f1c73ae3b210124b1fc; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< f49d40a699bdaf68bbb307f1fa207512520ce982; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< d4bc03eaeef281c460370dfd57e1a671b787edd4; \>= 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, \< 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09; Linux 5.19.

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

Yes. Fixed in Linux 00e3efd5d74d18447438edfd2532cd4100fd5756, Linux 5e09340badaf982a2cb73e41da715fcdd0e2eb7f, Linux 77ad4ac35977d081f2b69f1c73ae3b210124b1fc, Linux 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09. Upgrade Linux to 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09 or later.

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

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/00e3efd5d74d18447438edfd2532cd4100fd5756>
- other: <https://git.kernel.org/stable/c/5e09340badaf982a2cb73e41da715fcdd0e2eb7f>
- other: <https://git.kernel.org/stable/c/77ad4ac35977d081f2b69f1c73ae3b210124b1fc>
- other: <https://git.kernel.org/stable/c/f49d40a699bdaf68bbb307f1fa207512520ce982>
- other: <https://git.kernel.org/stable/c/d4bc03eaeef281c460370dfd57e1a671b787edd4>
- other: <https://git.kernel.org/stable/c/66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09>

## 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-99736>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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