{"vuln_id":"CVE-2026-99701","aliases":[],"description":"kernel: kernel: memory protection bypass via KSM page merging and unmerging","published_at":"2026-11-20T05:50:43Z","modified_at":"2026-11-20T06:18:05.773000Z","first_seen_at":"2026-11-21T19:15:15.261887Z","severity":"medium","severity_source":"redhat","cvss_score":5.3,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","cwe":["CWE-281"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00156,"epss_percentile":0.0473,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99701"},"matched_alias":null,"items":[{"id":9518,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-99701: In the Linux kernel, the following vulnerability has been resolved: mm/ksm: fix userfaultfd protection during merge and unmerge KSM loses userfaultfd protectio…","summary":"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->vm_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.\n\nReferences:\nhttps://git.kernel.org/stable/c/5cf7267b79f276c27825a2ebb95deda788a29e77\nhttps://git.kernel.org/stable/c/990d6c2194a938a19a8cf94c6cfd75171345089b","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99701","published_at":"2026-11-20T06:18:05.773000Z","updated_at":"2026-11-20T06:18:05.773000Z","fetched_at":"2026-11-21T19:15:31.485089Z","severity":"medium","cvss_score":5.3,"epss":0.00156,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2026-99701","vuln_ids":["CVE-2026-99701"],"tags":[],"cluster_id":659,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9518","html":"https://vulnwatch.ve1ve2.com/item/9518"}},{"id":920,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-99701: kernel: kernel: memory protection bypass via KSM page merging and unmerging","summary":"kernel: kernel: memory protection bypass via KSM page merging and unmerging","url":"https://access.redhat.com/security/cve/cve-2026-99701","published_at":"2026-11-20T05:50:43Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.893177Z","severity":"medium","cvss_score":5.3,"epss":0.00156,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-99701","vuln_ids":["CVE-2026-99701"],"tags":["redhat"],"cluster_id":659,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/920","html":"https://vulnwatch.ve1ve2.com/item/920"}}]}