Skip to content
statance
MenuClose
unknown

CVE-2026-99656

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

Published 20 Nov 2026 · Source updated 23 Nov 2026 · Retrieved 2026-12-02 14:45 UTC · This record may be stale; verify the source

Monitor this CVE ↗Full CVE monitoring on Pro and Business

What happened?

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.

Description supplied by CVE Program. Formatting is simplified; follow the original advisory for full details.

Affected software and versions

Source-provided software and version information
SoftwareVersion informationFixed version
LinuxLinuxaffected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < 8ddaea0ff2e9ed916fd47d355e673b76dd2ba362; affected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < fb10875cfa95eb828ccdb3a4d69ffa00d30498df; affected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < ec9bd88393c6c5fb5856058867dcbe780d1c3912; affected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < 6769efa0e45c61cfa2853d7b8d3760ce66e7c973; affected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < af2feafb0437fab5ed9d02eeb1c06ef66e05c55a; affected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < 8b6860f17b4de23a0b19045c066dc0679e50f0ba; affected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < 64f273b71bf714dd22b803a87d65bb40faaffcad; affected: 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 to < 22d043c1da48d6c7274f9dd900714b6d58b7b9c6See vendor advisory
LinuxLinuxaffected: 4.5; unaffected: 0 to < 4.5; unaffected: 5.10.275 to ≤ 5.10.*; unaffected: 5.15.226 to ≤ 5.15.*; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ *See vendor advisory

Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.

Is it being exploited?

This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.

CISA data retrieved 2026-12-05 02:05 UTC. Check CISA ↗

How to respond

  1. Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
  2. Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
  3. Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.

Sources and remediation references

This public advisory does not determine whether a particular server is affected. Records are refreshed as sources change; verify urgent decisions against the original advisory.

← Browse the public CVE feed