{"id":"AZL-115558","summary":"CVE-2026-99701 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/ksm: fix userfaultfd protection during merge and unmerge\n\nKSM loses userfaultfd protection when replace_page() builds a new PTE from\nvma-\u003evm_page_prot.  Dropping its uffd bit lets a subsequent write go\nthrough ordinary COW instead of userfaultfd write protection handling. \nFor RWP, a merged page also becomes readable without faulting.\n\nKeeping the uffd bit and restoring PAGE_NONE fixes merging, but we also\nhave to handle unmerging.  An existing KSM page can be protected with RWP\nbefore MADV_UNMERGEABLE, so unmerging already needs fixing independently\nof preserving RWP during merging.\n\nUnsharing replaces a shared page with a private one and should leave\nuserfaultfd protection in place, as do_wp_page() already does for write\nprotection.  Currently, an unshare fault reaches do_uffd_rwp() before it\ncan proceed to do_wp_page().\n\n- With synchronous RWP, handle_userfault() returns VM_FAULT_SIGBUS.\n  break_ksm() then reports success with a KSM page still merged.\n\n- With asynchronous RWP, protection is cleared before unsharing.\n\nPreserve the uffd bit when merging, and restore PAGE_NONE for RWP.  Let\nFAULT_FLAG_UNSHARE skip RWP fault handling and keep PAGE_NONE on each\nprivate copy as well.  Unsharing can then complete with RWP still armed\nfor a subsequent access.","modified":"2026-11-21T14:17:23.927874127Z","published":"2026-11-20T06:18:05Z","upstream":["CVE-2026-99701"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99701"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-115558.json"}}],"schema_version":"1.9.2"}