AZL-115456: CVE-2026-99656 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
mm/madvise: fix data loss from MADVFREE on a KSM page
MADVFREE 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 trytomergeonepage(). Marking a folio lazyfree clears PGswapbacked but leaves PGdirty unchanged. Preserving PGdirty makes reclaim restore PGswapbacked 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.