mm/madvise: fix data loss from MADV_FREE on a KSM page (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.23 % · percentile 14 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
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.
References
- https://git.kernel.org/stable/c/8ddaea0ff2e9ed916fd47d355e673b76dd2ba362
- https://git.kernel.org/stable/c/fb10875cfa95eb828ccdb3a4d69ffa00d30498df
- https://git.kernel.org/stable/c/ec9bd88393c6c5fb5856058867dcbe780d1c3912
- https://git.kernel.org/stable/c/6769efa0e45c61cfa2853d7b8d3760ce66e7c973
- https://git.kernel.org/stable/c/af2feafb0437fab5ed9d02eeb1c06ef66e05c55a
- https://git.kernel.org/stable/c/8b6860f17b4de23a0b19045c066dc0679e50f0ba
- https://git.kernel.org/stable/c/64f273b71bf714dd22b803a87d65bb40faaffcad
- https://git.kernel.org/stable/c/22d043c1da48d6c7274f9dd900714b6d58b7b9c6
European references
- ENISA EUVD · EUVD-2026-130949
- GCVE · GCVE-0-2026-99656
CERT-FR advisories
- CERTFR-2026-AVI-1679 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1638 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362 affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < fb10875cfa95eb828ccdb3a4d69ffa00d30498df affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < ec9bd88393c6c5fb5856058867dcbe780d1c3912 affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < 6769efa0e45c61cfa2853d7b8d3760ce66e7c973 affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < af2feafb0437fab5ed9d02eeb1c06ef66e05c55a affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < 8b6860f17b4de23a0b19045c066dc0679e50f0ba affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < 64f273b71bf714dd22b803a87d65bb40faaffcad affected : ≥ 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 < 22d043c1da48d6c7274f9dd900714b6d58b7b9c6 Other versions : unaffected |
| Linux · Linux | affected : 4.5 unaffected : ≥ 0 < 4.5 unaffected : ≥ 5.10.275 ≤ 5.10.* unaffected : ≥ 5.15.226 ≤ 5.15.* unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.118 ≤ 6.12.* unaffected : ≥ 6.18.64 ≤ 6.18.* unaffected : ≥ 7.3.5 ≤ 7.3.* unaffected : ≥ 7.4-rc2 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |