CVE-2026-142795: mm: khugepaged: fix folio is used after folio_put/unlock()
In the Linux kernel, the following vulnerability has been resolved:
mm: khugepaged: fix folio is used after folioput/unlock()
On the rollback path, folioput() has already dropped the last reference of newfolio. On the success path, newfolio is already unlocked and can be freed concurrently. The tracemmkhugepagedcollapsefile() is left with a dangling folio pointer.
So using the foliopfn() before dropping the reference, closing use-after-free window.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.3-1
Event History
Frequently Asked Questions
Which kernel area should be prioritized for review?
The issue is in the Linux kernel memory-management path, specifically khugepaged and its file-collapse tracing path. Systems running the Linux kernel are the affected software scope identified in the record.
How can I determine whether a fix is available in my kernel source?
The record provides three stable kernel commit references for the resolved issue. It does not provide affected or fixed version numbers, so verify whether your kernel source includes the relevant fix commits or their equivalent backports.
Does the available information specify an exploit method or required attacker access?
No. The record identifies a use-after-free window involving a dangling folio pointer in tracing, but does not state attacker prerequisites, exploitability conditions, or a workaround for unpatched systems.