{"id":"CVE-2026-139081","state":"PUBLISHED","title":"mm/hugetlb: disable PMD sharing for UFFD missing mode","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: disable PMD sharing for UFFD missing mode\n\nFor UFFDIO_POISON to install a poison marker in a hugetlb mapping, it is\nsufficient to have the VMA registered for missing mode.\n\nHowever, UFFD missing mode does currently not block PMD table sharing, so\ninstalling the marker will be visible to everyone using the shared PMD\ntable, which is wrong as UFFDIO_POISON must stay local to the process.\n\nTo fix it, make uffd_disable_huge_pmd_share() cover VM_UFFD_MISSING as\nwell. With missing mode covered, hugetlb PMD sharing is disabled for all\nuserfaultfd registered VMAs, so the helper can simply return whether the\nVMA has a userfaultfd context instead of testing individual UFFD mode\nflags. Add a debug check on the marker installation path.\n\nThe existing registration path will then unshare PMD tables, and\nsubsequent faults will not share them while the mapping remains\nregistered.\n\nThe alternative would be to unshare PMD tables selectively when\ninstalling poison markers, which results in way more complexity. Or\nalternatively, simply failing the marker installation, which might break\nsome use cases.\n\nThis also disables PMD sharing for userfaultfd registrations that never\nuse UFFDIO_POISON.","publishedAt":"2026-11-30T13:31:24.087Z","updatedAt":"2026-11-30T13:31:24.087Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"d05e6e0f7f0472d6a67c6518aeea60962e1ce4be","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"981dd1db69270455ab197ca9d5e36782227cb291","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"16c9d99a670bfcd77e158dda3e49d977c3615a5f","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"f9b393b166296deac27e48e02cf0125a81d2704c","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"809cbe72ace890f75a9b126eb6a8b533081666d8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/userfaultfd_k.h","mm/hugetlb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/userfaultfd_k.h","mm/hugetlb.c"]}],"references":["https://git.kernel.org/stable/c/d05e6e0f7f0472d6a67c6518aeea60962e1ce4be","https://git.kernel.org/stable/c/981dd1db69270455ab197ca9d5e36782227cb291","https://git.kernel.org/stable/c/16c9d99a670bfcd77e158dda3e49d977c3615a5f","https://git.kernel.org/stable/c/f9b393b166296deac27e48e02cf0125a81d2704c","https://git.kernel.org/stable/c/809cbe72ace890f75a9b126eb6a8b533081666d8"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139081.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139081","state":"PUBLISHED","datePublished":"2026-11-30T13:31:24.087Z","dateUpdated":"2026-11-30T13:31:24.087Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.913Z"},"containers":{"cna":{"title":"mm/hugetlb: disable PMD sharing for UFFD missing mode","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: disable PMD sharing for UFFD missing mode\n\nFor UFFDIO_POISON to install a poison marker in a hugetlb mapping, it is\nsufficient to have the VMA registered for missing mode.\n\nHowever, UFFD missing mode does currently not block PMD table sharing, so\ninstalling the marker will be visible to everyone using the shared PMD\ntable, which is wrong as UFFDIO_POISON must stay local to the process.\n\nTo fix it, make uffd_disable_huge_pmd_share() cover VM_UFFD_MISSING as\nwell. With missing mode covered, hugetlb PMD sharing is disabled for all\nuserfaultfd registered VMAs, so the helper can simply return whether the\nVMA has a userfaultfd context instead of testing individual UFFD mode\nflags. Add a debug check on the marker installation path.\n\nThe existing registration path will then unshare PMD tables, and\nsubsequent faults will not share them while the mapping remains\nregistered.\n\nThe alternative would be to unshare PMD tables selectively when\ninstalling poison markers, which results in way more complexity. Or\nalternatively, simply failing the marker installation, which might break\nsome use cases.\n\nThis also disables PMD sharing for userfaultfd registrations that never\nuse UFFDIO_POISON."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"d05e6e0f7f0472d6a67c6518aeea60962e1ce4be","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"981dd1db69270455ab197ca9d5e36782227cb291","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"16c9d99a670bfcd77e158dda3e49d977c3615a5f","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"f9b393b166296deac27e48e02cf0125a81d2704c","versionType":"git"},{"version":"8a13897fb0daa8f56821f263f0c63661e1c6acae","status":"affected","lessThan":"809cbe72ace890f75a9b126eb6a8b533081666d8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/userfaultfd_k.h","mm/hugetlb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/userfaultfd_k.h","mm/hugetlb.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d05e6e0f7f0472d6a67c6518aeea60962e1ce4be"},{"url":"https://git.kernel.org/stable/c/981dd1db69270455ab197ca9d5e36782227cb291"},{"url":"https://git.kernel.org/stable/c/16c9d99a670bfcd77e158dda3e49d977c3615a5f"},{"url":"https://git.kernel.org/stable/c/f9b393b166296deac27e48e02cf0125a81d2704c"},{"url":"https://git.kernel.org/stable/c/809cbe72ace890f75a9b126eb6a8b533081666d8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:24.087Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}