# CVE-2026-99649: mm/ksm: check large swap-cache folios before mapping them

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-28)
- **Published:** 2026-11-20T05:50:03.077Z
- **Modified:** 2026-11-20T06:17:58.583Z

## Who should check

- Anyone running Linux \>= f1879e8a0c601de78a356016e216241b43de9208, \< cc4b71683ee9d8d4ed0b25c0744314005fb3e395; \>= f1879e8a0c601de78a356016e216241b43de9208, \< 7f2c000ffb1047b476cbf267f741272c389d3e31
- Anyone running Linux 7.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/ksm: check large swap-cache folios before mapping them

KSM folios are always small, but their shared swap slots can be read
back as part of a large folio in the swap cache. ksm\_might\_need\_to\_copy()
skips large folios, so another process can map a page with an incompatible
anon\_vma or page index. Reverse mapping then cannot find the new
mapping, preventing migration or reclaim.

Apply the same compatibility checks to large folios as to small ones.
Pass the page corresponding to the swap entry and copy only that page
when necessary. In do\_swap\_page()'s copy path, decrement only that slot's
swap count, because the source swap-cache folio can now be large.

Fix generated by an LLM and sent by Chris Mason in private.

## Affected and fixed versions

- Linux: \>= f1879e8a0c601de78a356016e216241b43de9208, \< cc4b71683ee9d8d4ed0b25c0744314005fb3e395; \>= f1879e8a0c601de78a356016e216241b43de9208, \< 7f2c000ffb1047b476cbf267f741272c389d3e31 (cvelist)
- Linux: 7.0 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-99649.md
Affected: Linux >= f1879e8a0c601de78a356016e216241b43de9208, < cc4b71683ee9d8d4ed0b25c0744314005fb3e395; >= f1879e8a0c601de78a356016e216241b43de9208, < 7f2c000ffb1047b476cbf267f741272c389d3e31; Linux 7.0
Fixed in: Linux 7f2c000ffb1047b476cbf267f741272c389d3e31

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= f1879e8a0c601de78a356016e216241b43de9208, \< cc4b71683ee9d8d4ed0b25c0744314005fb3e395; \>= f1879e8a0c601de78a356016e216241b43de9208, \< 7f2c000ffb1047b476cbf267f741272c389d3e31; Linux 7.0.

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

Yes. Fixed in Linux 7f2c000ffb1047b476cbf267f741272c389d3e31. Upgrade Linux to 7f2c000ffb1047b476cbf267f741272c389d3e31 or later.

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

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/cc4b71683ee9d8d4ed0b25c0744314005fb3e395>
- other: <https://git.kernel.org/stable/c/7f2c000ffb1047b476cbf267f741272c389d3e31>

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

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