{"api_version":"1","generated_at":"2026-11-30T17:09:45+00:00","cve":"CVE-2026-99875","urls":{"html":"https://cve.report/CVE-2026-99875","api":"https://cve.report/api/cve/CVE-2026-99875.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99875","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99875"},"summary":{"title":"arm64/mm: restrict transparent contpte mappings to valid PTEs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64/mm: restrict transparent contpte mappings to valid PTEs\n\nThe transparent contpte layer treats PTE_CONT as software grouping state.\nWhen a valid PTE has PTE_CONT set, the contpte helpers may align an\noperation to a CONT_PTE_SIZE block and operate on the whole block. The\ncurrent single-PTE helpers use pte_valid_cont() to identify such groups;\nthis is a helper contract, not an architectural restriction on using\nPTE_CONT with present-invalid descriptors. Explicit users such as hugetlb\nmanage their contiguous encodings separately.\n\ncontpte_set_ptes() currently sets PTE_CONT from alignment alone. Batched\nset_ptes() users can therefore install present-invalid PTEs with\nPTE_CONT set, for example mprotect(PROT_NONE), NUMA hinting through\nmodify_prot_commit_ptes(), fork() copying a PROT_NONE large folio, or a\nPMD split installing PAGE_NONE PTEs.\n\nThis is not a hardware programming problem: invalid descriptors are not\ntranslated, so the hardware ignores descriptor bits such as PTE_CONT. It\nis a software-state problem. Some arm64 fast paths, such as\ntest_and_clear_young_ptes(), test pte_cont() directly instead of\npte_valid_cont().\n\nIn the observed failure, mprotect(PROT_NONE) installed a full\nCONT_PTE_SIZE range of present-invalid PTEs with PTE_CONT set.\nMADV_GUARD_INSTALL then zapped one PTE. The nr == 1 clear_full_ptes()\npath only unfolds pte_valid_cont() entries, so the neighbouring\npresent-invalid entries kept PTE_CONT while the target entry became a\nguard marker.\n\nclear_refs_pte_range() then reached the marker through:\n\n  ptep_test_and_clear_young()\n  test_and_clear_young_ptes()\n  contpte_test_and_clear_young_ptes()\n  contpte_align_addr_ptep()\n  __ptep_test_and_clear_young()\n\nThe marker changed from old_pte=0x00000000000047c0 to\nnew_pte=0x00000000000043c0 by clearing PTE_AF. For swap PTEs, bit 10 is\npart of the swap type field, bits 6-10: 0x47c0 is SWP_PTE_MARKER with\noffset 4, while 0x43c0 has type 15 and is decoded as an ordinary swap\nentry. Zap later warned in swap_put_entries_direct() with a bad swap\nentry.\n\nPresent-invalid PTEs could retain PTE_CONT as software grouping state,\nbut their single-PTE modification paths would then need to recognize\nand unfold those groups consistently. Since current helpers mostly use\npte_valid_cont() for membership, avoid creating present-invalid\ntransparent contpte groups in contpte_set_ptes(). They bring no hardware\nbenefit while invalid, and eligible valid ranges can be grouped again\nwhen they are installed.\n\nThe public set_ptes() wrapper already clears PTE_CONT before calling\ncontpte_set_ptes(). Return invalid PTEs through __set_ptes() directly,\nand warn if a future direct caller unexpectedly passes an invalid PTE\nwith PTE_CONT set.\n\nThis is triggerable by a user process against its own address space. On\nsystems running with panic_on_warn, the warning becomes a denial of\nservice.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:21","updated_at":"2026-11-30 14:20:21"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/4dedc1a5554ab3163cb97a9446bddf8e357c98a1","name":"https://git.kernel.org/stable/c/4dedc1a5554ab3163cb97a9446bddf8e357c98a1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2465a3c31b39f9129539b0f88d28dceb44928fa9","name":"https://git.kernel.org/stable/c/2465a3c31b39f9129539b0f88d28dceb44928fa9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1e70a9c88381bb29fc64acc427afc1e09d0a8b9d","name":"https://git.kernel.org/stable/c/1e70a9c88381bb29fc64acc427afc1e09d0a8b9d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/486d396b19e93f6e56e0a0ba96c14a9ccc1a5977","name":"https://git.kernel.org/stable/c/486d396b19e93f6e56e0a0ba96c14a9ccc1a5977","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99875","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99875","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4602e5757bcceb231c3a13c36c373ad4a750eddb 4dedc1a5554ab3163cb97a9446bddf8e357c98a1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4602e5757bcceb231c3a13c36c373ad4a750eddb 1e70a9c88381bb29fc64acc427afc1e09d0a8b9d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4602e5757bcceb231c3a13c36c373ad4a750eddb 2465a3c31b39f9129539b0f88d28dceb44928fa9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4602e5757bcceb231c3a13c36c373ad4a750eddb 486d396b19e93f6e56e0a0ba96c14a9ccc1a5977 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * 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":["arch/arm64/include/asm/pgtable.h","arch/arm64/mm/contpte.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"4dedc1a5554ab3163cb97a9446bddf8e357c98a1","status":"affected","version":"4602e5757bcceb231c3a13c36c373ad4a750eddb","versionType":"git"},{"lessThan":"1e70a9c88381bb29fc64acc427afc1e09d0a8b9d","status":"affected","version":"4602e5757bcceb231c3a13c36c373ad4a750eddb","versionType":"git"},{"lessThan":"2465a3c31b39f9129539b0f88d28dceb44928fa9","status":"affected","version":"4602e5757bcceb231c3a13c36c373ad4a750eddb","versionType":"git"},{"lessThan":"486d396b19e93f6e56e0a0ba96c14a9ccc1a5977","status":"affected","version":"4602e5757bcceb231c3a13c36c373ad4a750eddb","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["arch/arm64/include/asm/pgtable.h","arch/arm64/mm/contpte.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.9"},{"lessThan":"6.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64/mm: restrict transparent contpte mappings to valid PTEs\n\nThe transparent contpte layer treats PTE_CONT as software grouping state.\nWhen a valid PTE has PTE_CONT set, the contpte helpers may align an\noperation to a CONT_PTE_SIZE block and operate on the whole block. The\ncurrent single-PTE helpers use pte_valid_cont() to identify such groups;\nthis is a helper contract, not an architectural restriction on using\nPTE_CONT with present-invalid descriptors. Explicit users such as hugetlb\nmanage their contiguous encodings separately.\n\ncontpte_set_ptes() currently sets PTE_CONT from alignment alone. Batched\nset_ptes() users can therefore install present-invalid PTEs with\nPTE_CONT set, for example mprotect(PROT_NONE), NUMA hinting through\nmodify_prot_commit_ptes(), fork() copying a PROT_NONE large folio, or a\nPMD split installing PAGE_NONE PTEs.\n\nThis is not a hardware programming problem: invalid descriptors are not\ntranslated, so the hardware ignores descriptor bits such as PTE_CONT. It\nis a software-state problem. Some arm64 fast paths, such as\ntest_and_clear_young_ptes(), test pte_cont() directly instead of\npte_valid_cont().\n\nIn the observed failure, mprotect(PROT_NONE) installed a full\nCONT_PTE_SIZE range of present-invalid PTEs with PTE_CONT set.\nMADV_GUARD_INSTALL then zapped one PTE. The nr == 1 clear_full_ptes()\npath only unfolds pte_valid_cont() entries, so the neighbouring\npresent-invalid entries kept PTE_CONT while the target entry became a\nguard marker.\n\nclear_refs_pte_range() then reached the marker through:\n\n  ptep_test_and_clear_young()\n  test_and_clear_young_ptes()\n  contpte_test_and_clear_young_ptes()\n  contpte_align_addr_ptep()\n  __ptep_test_and_clear_young()\n\nThe marker changed from old_pte=0x00000000000047c0 to\nnew_pte=0x00000000000043c0 by clearing PTE_AF. For swap PTEs, bit 10 is\npart of the swap type field, bits 6-10: 0x47c0 is SWP_PTE_MARKER with\noffset 4, while 0x43c0 has type 15 and is decoded as an ordinary swap\nentry. Zap later warned in swap_put_entries_direct() with a bad swap\nentry.\n\nPresent-invalid PTEs could retain PTE_CONT as software grouping state,\nbut their single-PTE modification paths would then need to recognize\nand unfold those groups consistently. Since current helpers mostly use\npte_valid_cont() for membership, avoid creating present-invalid\ntransparent contpte groups in contpte_set_ptes(). They bring no hardware\nbenefit while invalid, and eligible valid ranges can be grouped again\nwhen they are installed.\n\nThe public set_ptes() wrapper already clears PTE_CONT before calling\ncontpte_set_ptes(). Return invalid PTEs through __set_ptes() directly,\nand warn if a future direct caller unexpectedly passes an invalid PTE\nwith PTE_CONT set.\n\nThis is triggerable by a user process against its own address space. On\nsystems running with panic_on_warn, the warning becomes a denial of\nservice."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:17:52.456Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/4dedc1a5554ab3163cb97a9446bddf8e357c98a1"},{"url":"https://git.kernel.org/stable/c/1e70a9c88381bb29fc64acc427afc1e09d0a8b9d"},{"url":"https://git.kernel.org/stable/c/2465a3c31b39f9129539b0f88d28dceb44928fa9"},{"url":"https://git.kernel.org/stable/c/486d396b19e93f6e56e0a0ba96c14a9ccc1a5977"}],"title":"arm64/mm: restrict transparent contpte mappings to valid PTEs","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99875","datePublished":"2026-11-30T13:17:52.456Z","dateReserved":"2026-09-25T10:25:14.440Z","dateUpdated":"2026-11-30T13:17:52.456Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:21","lastModifiedDate":"2026-11-30 14:20:21","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99875","Ordinal":"1","Title":"arm64/mm: restrict transparent contpte mappings to valid PTEs","CVE":"CVE-2026-99875","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99875","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64/mm: restrict transparent contpte mappings to valid PTEs\n\nThe transparent contpte layer treats PTE_CONT as software grouping state.\nWhen a valid PTE has PTE_CONT set, the contpte helpers may align an\noperation to a CONT_PTE_SIZE block and operate on the whole block. The\ncurrent single-PTE helpers use pte_valid_cont() to identify such groups;\nthis is a helper contract, not an architectural restriction on using\nPTE_CONT with present-invalid descriptors. Explicit users such as hugetlb\nmanage their contiguous encodings separately.\n\ncontpte_set_ptes() currently sets PTE_CONT from alignment alone. Batched\nset_ptes() users can therefore install present-invalid PTEs with\nPTE_CONT set, for example mprotect(PROT_NONE), NUMA hinting through\nmodify_prot_commit_ptes(), fork() copying a PROT_NONE large folio, or a\nPMD split installing PAGE_NONE PTEs.\n\nThis is not a hardware programming problem: invalid descriptors are not\ntranslated, so the hardware ignores descriptor bits such as PTE_CONT. It\nis a software-state problem. Some arm64 fast paths, such as\ntest_and_clear_young_ptes(), test pte_cont() directly instead of\npte_valid_cont().\n\nIn the observed failure, mprotect(PROT_NONE) installed a full\nCONT_PTE_SIZE range of present-invalid PTEs with PTE_CONT set.\nMADV_GUARD_INSTALL then zapped one PTE. The nr == 1 clear_full_ptes()\npath only unfolds pte_valid_cont() entries, so the neighbouring\npresent-invalid entries kept PTE_CONT while the target entry became a\nguard marker.\n\nclear_refs_pte_range() then reached the marker through:\n\n  ptep_test_and_clear_young()\n  test_and_clear_young_ptes()\n  contpte_test_and_clear_young_ptes()\n  contpte_align_addr_ptep()\n  __ptep_test_and_clear_young()\n\nThe marker changed from old_pte=0x00000000000047c0 to\nnew_pte=0x00000000000043c0 by clearing PTE_AF. For swap PTEs, bit 10 is\npart of the swap type field, bits 6-10: 0x47c0 is SWP_PTE_MARKER with\noffset 4, while 0x43c0 has type 15 and is decoded as an ordinary swap\nentry. Zap later warned in swap_put_entries_direct() with a bad swap\nentry.\n\nPresent-invalid PTEs could retain PTE_CONT as software grouping state,\nbut their single-PTE modification paths would then need to recognize\nand unfold those groups consistently. Since current helpers mostly use\npte_valid_cont() for membership, avoid creating present-invalid\ntransparent contpte groups in contpte_set_ptes(). They bring no hardware\nbenefit while invalid, and eligible valid ranges can be grouped again\nwhen they are installed.\n\nThe public set_ptes() wrapper already clears PTE_CONT before calling\ncontpte_set_ptes(). Return invalid PTEs through __set_ptes() directly,\nand warn if a future direct caller unexpectedly passes an invalid PTE\nwith PTE_CONT set.\n\nThis is triggerable by a user process against its own address space. On\nsystems running with panic_on_warn, the warning becomes a denial of\nservice.","Type":"Description","Title":"arm64/mm: restrict transparent contpte mappings to valid PTEs"}]}}}