AZL-115558: CVE-2026-99701 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
mm/ksm: fix userfaultfd protection during merge and unmerge
KSM loses userfaultfd protection when replacepage() builds a new PTE from vma->vmpageprot. Dropping its uffd bit lets a subsequent write go through ordinary COW instead of userfaultfd write protection handling. For RWP, a merged page also becomes readable without faulting.
Keeping the uffd bit and restoring PAGENONE fixes merging, but we also have to handle unmerging. An existing KSM page can be protected with RWP before MADVUNMERGEABLE, so unmerging already needs fixing independently of preserving RWP during merging.
Unsharing replaces a shared page with a private one and should leave userfaultfd protection in place, as dowppage() already does for write protection. Currently, an unshare fault reaches douffdrwp() before it can proceed to dowppage().
- With synchronous RWP, handleuserfault() returns VMFAULTSIGBUS. breakksm() then reports success with a KSM page still merged.
- With asynchronous RWP, protection is cleared before unsharing.
Preserve the uffd bit when merging, and restore PAGENONE for RWP. Let FAULTFLAGUNSHARE skip RWP fault handling and keep PAGENONE on each private copy as well. Unsharing can then complete with RWP still armed for a subsequent access.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel mm/ksm, preserve the uffd bit when merging pages and restore PAGE_NONE for RWP, including when unsharing creates a private copy, so userfaultfd protection remains in place.