CVE-2026-99656

Source
https://cve.org/CVERecord?id=CVE-2026-99656
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99656.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99656
Published
2026-11-20T05:50:08Z
Modified
2026-11-20T07:01:05Z
Summary
mm/madvise: fix data loss from MADV_FREE on a KSM page
Details

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

mm/madvise: fix data loss from MADV_FREE on a KSM page

MADV_FREE can clear the dirty flag of a singly mapped KSM folio. The folio remains in the stable tree and can gain new mappings without being dirtied again. Once marked lazyfree, reclaim can discard data that those mappings still need.

KSM always marks a folio dirty when converting it to a KSM folio in try_to_merge_one_page(). Marking a folio lazyfree clears PG_swapbacked but leaves PG_dirty unchanged. Preserving PG_dirty makes reclaim restore PG_swapbacked instead of discarding the folio. This also protects folios that were already lazyfree when KSM converted them.

Skip KSM folios before clearing their dirty flag, checking under the folio lock to serialize with KSM conversion.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99656.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
854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9
Fixed
af2feafb0437fab5ed9d02eeb1c06ef66e05c55a
Fixed
8b6860f17b4de23a0b19045c066dc0679e50f0ba
Fixed
64f273b71bf714dd22b803a87d65bb40faaffcad
Fixed
22d043c1da48d6c7274f9dd900714b6d58b7b9c6

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.5.0
Fixed
6.12.118
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.64
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.5

Database specific

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