CVE-2026-99649

Source
https://cve.org/CVERecord?id=CVE-2026-99649
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99649.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99649
Published
2026-11-20T05:50:03Z
Modified
2026-11-20T07:00:56Z
Summary
mm/ksm: check large swap-cache folios before mapping them
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99649.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f1879e8a0c601de78a356016e216241b43de9208
Fixed
cc4b71683ee9d8d4ed0b25c0744314005fb3e395
Fixed
7f2c000ffb1047b476cbf267f741272c389d3e31

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99649.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.3.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99649.json"