# CVE-2026-99656: mm/madvise: fix data loss from MADV\_FREE on a KSM page

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.23% (percentile 8, 2026-11-28)
- **Published:** 2026-11-20T05:50:08.481Z
- **Modified:** 2026-11-23T08:18:06.593Z

## Who should check

- Anyone running Linux \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< fb10875cfa95eb828ccdb3a4d69ffa00d30498df; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< ec9bd88393c6c5fb5856058867dcbe780d1c3912; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 6769efa0e45c61cfa2853d7b8d3760ce66e7c973; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< af2feafb0437fab5ed9d02eeb1c06ef66e05c55a; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 8b6860f17b4de23a0b19045c066dc0679e50f0ba; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 64f273b71bf714dd22b803a87d65bb40faaffcad; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 22d043c1da48d6c7274f9dd900714b6d58b7b9c6
- Anyone running Linux 4.5

## Description

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.

## Affected and fixed versions

- Linux: \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< fb10875cfa95eb828ccdb3a4d69ffa00d30498df; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< ec9bd88393c6c5fb5856058867dcbe780d1c3912; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 6769efa0e45c61cfa2853d7b8d3760ce66e7c973; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< af2feafb0437fab5ed9d02eeb1c06ef66e05c55a; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 8b6860f17b4de23a0b19045c066dc0679e50f0ba; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 64f273b71bf714dd22b803a87d65bb40faaffcad; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 22d043c1da48d6c7274f9dd900714b6d58b7b9c6 (cvelist)
- Linux: 4.5 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-99656.md
Affected: Linux >= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, < 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362; >= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, < fb10875cfa95eb828ccdb3a4d69ffa00d30498df; >= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, < ec9bd88393c6c5fb5856058867dcbe780d1c3912; >= 854e9ed09dedf0c19ac8640…
Fixed in: Linux 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362, Linux 6769efa0e45c61cfa2853d7b8d3760ce66e7c973, Linux 8b6860f17b4de23a0b19045c066dc0679e50f0ba, Linux 64f273b71bf714dd22b803a87d65bb40faaffcad, Linux 22d043c1da48d6c7274f9dd900714b6d58b7b9c6

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< fb10875cfa95eb828ccdb3a4d69ffa00d30498df; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< ec9bd88393c6c5fb5856058867dcbe780d1c3912; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 6769efa0e45c61cfa2853d7b8d3760ce66e7c973; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< af2feafb0437fab5ed9d02eeb1c06ef66e05c55a; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 8b6860f17b4de23a0b19045c066dc0679e50f0ba; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 64f273b71bf714dd22b803a87d65bb40faaffcad; \>= 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9, \< 22d043c1da48d6c7274f9dd900714b6d58b7b9c6; Linux 4.5.

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

Yes. Fixed in Linux 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362, Linux 6769efa0e45c61cfa2853d7b8d3760ce66e7c973, Linux 8b6860f17b4de23a0b19045c066dc0679e50f0ba, Linux 64f273b71bf714dd22b803a87d65bb40faaffcad, Linux 22d043c1da48d6c7274f9dd900714b6d58b7b9c6. Upgrade Linux to 22d043c1da48d6c7274f9dd900714b6d58b7b9c6 or later.

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

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/8ddaea0ff2e9ed916fd47d355e673b76dd2ba362>
- other: <https://git.kernel.org/stable/c/fb10875cfa95eb828ccdb3a4d69ffa00d30498df>
- other: <https://git.kernel.org/stable/c/ec9bd88393c6c5fb5856058867dcbe780d1c3912>
- other: <https://git.kernel.org/stable/c/6769efa0e45c61cfa2853d7b8d3760ce66e7c973>
- other: <https://git.kernel.org/stable/c/af2feafb0437fab5ed9d02eeb1c06ef66e05c55a>
- other: <https://git.kernel.org/stable/c/8b6860f17b4de23a0b19045c066dc0679e50f0ba>
- other: <https://git.kernel.org/stable/c/64f273b71bf714dd22b803a87d65bb40faaffcad>
- other: <https://git.kernel.org/stable/c/22d043c1da48d6c7274f9dd900714b6d58b7b9c6>

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

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