{"api_version":"1","generated_at":"2026-11-20T07:29:58+00:00","cve":"CVE-2026-99701","urls":{"html":"https://cve.report/CVE-2026-99701","api":"https://cve.report/api/cve/CVE-2026-99701.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99701","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99701"},"summary":{"title":"mm/ksm: fix userfaultfd protection during merge and unmerge","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:05","updated_at":"2026-11-20 06:18:05"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/5cf7267b79f276c27825a2ebb95deda788a29e77","name":"https://git.kernel.org/stable/c/5cf7267b79f276c27825a2ebb95deda788a29e77","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/990d6c2194a938a19a8cf94c6cfd75171345089b","name":"https://git.kernel.org/stable/c/990d6c2194a938a19a8cf94c6cfd75171345089b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99701","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99701","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 5cf7267b79f276c27825a2ebb95deda788a29e77 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 990d6c2194a938a19a8cf94c6cfd75171345089b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/ksm.c","mm/memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"5cf7267b79f276c27825a2ebb95deda788a29e77","status":"affected","version":"63b2d4174c4ad1f40b48d7138e71bcb564c1fe03","versionType":"git"},{"lessThan":"990d6c2194a938a19a8cf94c6cfd75171345089b","status":"affected","version":"63b2d4174c4ad1f40b48d7138e71bcb564c1fe03","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/ksm.c","mm/memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.7"},{"lessThan":"5.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:50:43.269Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5cf7267b79f276c27825a2ebb95deda788a29e77"},{"url":"https://git.kernel.org/stable/c/990d6c2194a938a19a8cf94c6cfd75171345089b"}],"title":"mm/ksm: fix userfaultfd protection during merge and unmerge","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99701","datePublished":"2026-11-20T05:50:43.269Z","dateReserved":"2026-09-25T10:25:14.429Z","dateUpdated":"2026-11-20T05:50:43.269Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:05","lastModifiedDate":"2026-11-20 06:18:05","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99701","Ordinal":"1","Title":"mm/ksm: fix userfaultfd protection during merge and unmerge","CVE":"CVE-2026-99701","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99701","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"mm/ksm: fix userfaultfd protection during merge and unmerge"}]}}}