AZL-115603: CVE-2026-99729 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
mm/rmap: handle device-exclusive entries in folioreferencedone()
pagevmamappedwalk() can return non-present device-exclusive entries, but folioreferencedone() passes them to PTE young-bit accessors that require present PTEs.
We must neither call clearflushyoungptesnotify() nor folioptebatch() with non-present entries. For example, clearing the young bit on non-present PTEs can corrupt the entry: on arm64 PTEAF overlaps the swap type, so clearing it turns a device-exclusive entry into an ordinary swap entry.
folioptebatch() will VMWARNONFOLIO.
Apply the same approach as the previous fixes to e.g., damonptepmkold(): treat these entries as old from the CPU's perspective and obtain their young state through the MMU notifier.
Skip PTE batching and MGLRU look-around for non-present entries, and don't modify non-present PTEs.