AZL-115567: CVE-2026-99707 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
mm/khugepaged: flush deferred unmaps before dropping a failed folio
collapsefile() can fail its reference-count or dirty-folio check after unmapping with TTUBATCHFLUSH. Both paths put back the isolated folio, then unlock it and drop the lookup reference before reaching the common trytounmapflush().
The page-cache reference does not keep the folio stable once the lock is released. Another collapse can replace and free it. With its PTEs already gone, that collapse cannot flush the first task's per-task TLB batch, and retractpagetables() skips short or unaligned VMAs. A CPU can therefore retain a user translation to the freed folio. This has been reproduced with unprivileged MADVCOLLAPSE on a memfd.
Flush at outunlock while the lookup reference and folio lock are still held. The common flush continues to cover the accumulated pagelist on both success and rollback, preserving batching on successful collapses.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mm/khugepaged, flush deferred unmaps at out_unlock while the lookup reference and folio lock are still held, before unlocking and dropping the lookup reference.