{"id":"CVE-2026-99701","aliases":[],"cve":{"records":[{"id":"CVE-2026-99701","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.429Z","published":"2026-11-20T05:50:43.269Z","modified":"2026-11-20T05:50:43.269Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-20T05:50:43.269Z"}],"references":[{"url":"https://git.kernel.org/stable/c/5cf7267b79f276c27825a2ebb95deda788a29e77","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/990d6c2194a938a19a8cf94c6cfd75171345089b","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.4-rc2"}]}]}]}],"prioritization":[]},"title":"mm/ksm: fix userfaultfd protection during merge and unmerge","titleSource":"Linux","descriptionSource":"Linux","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.","score":null,"severity":"unknown","published":"2026-11-20T05:50:43.269Z","modified":"2026-11-20T05:50:43.269Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"63b2d4174c4ad1f40b48d7138e71bcb564c1fe03","status":"affected","lessThan":"5cf7267b79f276c27825a2ebb95deda788a29e77","versionType":"git"},{"version":"63b2d4174c4ad1f40b48d7138e71bcb564c1fe03","status":"affected","lessThan":"990d6c2194a938a19a8cf94c6cfd75171345089b","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99701"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99701"}],"remediation":[],"references":["https://git.kernel.org/stable/c/5cf7267b79f276c27825a2ebb95deda788a29e77","https://git.kernel.org/stable/c/990d6c2194a938a19a8cf94c6cfd75171345089b"],"sources":[{"name":"CVE","id":"CVE-2026-99701","modified":"2026-11-20T05:50:43.269Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99701"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-20T06:18:12.606Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T12:45:32.449Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-21T10:45:35.355Z","attemptedAt":"2026-11-21T10:45:35.355Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-21T10:30:38.000Z","attemptedAt":"2026-11-21T10:30:38.000Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-21T09:45:36.352Z","attemptedAt":"2026-11-21T09:45:36.352Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-21T09:30:32.970Z","attemptedAt":"2026-11-21T09:30:32.970Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-99701","url":"https://www.first.org/epss/","probability":0.00156,"percentile":0.04834,"date":"2026-11-20","checkedAt":"2026-11-21T09:30:32.970Z"},{"source":"ENISA EUVD","id":"EUVD-2026-130994","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130994","modified":"Nov 20, 2026, 5:50:43 AM","checkedAt":"2026-11-21T09:45:36.352Z"},{"source":"GitHub Advisory Database","id":"GHSA-rg9v-572c-3q97","url":"https://github.com/advisories/GHSA-rg9v-572c-3q97","modified":"2026-11-20T06:32:08Z","checkedAt":"2026-11-21T10:30:38.000Z"},{"source":"NVD","id":"CVE-2026-99701","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99701","modified":"2026-11-20T06:18:05.773","checkedAt":"2026-11-21T10:45:35.355Z"}],"aiSummary":null}