{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99912",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.444Z",
        "datePublished": "2026-11-30T13:18:12.927Z",
        "dateUpdated": "2026-11-30T13:18:12.927Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:18:12.927Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: mm: exclude invalid THP PMDs from page table check\n\nRISC-V THP splitting uses a temporary invalid PMD state where\npmd_mkinvalid() clears _PAGE_PRESENT and _PAGE_PROT_NONE but leaves\n_PAGE_LEAF set so the MM code can still recognize the PMD as a THP split\nin-progress entry.\n\nThat temporary state no longer describes a user-accessible mapping, but\npage_table_check currently treats it as one because the RISC-V PMD\nuser-accessibility test only checks whether the PMD is a leaf and has user\npermissions.\n\nAs a result, when a PMD-sized anonymous THP is split during a COW fault,\npage_table_check can account the invalid intermediate PMD as a live PMD\nmapping, and then account the replacement PTE mappings again when the\nsplit installs the PTE table.  This leaves stale PMD accounting behind and\nlater triggers page_table_check failures such as a non-zero anon_map_count\nwhen the folio is freed.\n\nFix this by tightening pmd_user_accessible_page() so PMD page-table-check\naccounting only considers leaf PMDs that still carry either _PAGE_PRESENT\nor _PAGE_PROT_NONE.  This preserves the THP split semantics required by\nthe MM code while preventing page_table_check from treating invalid split\nPMDs as live user mappings.\n\nWith CONFIG_PAGE_TABLE_CHECK=y and CONFIG_PAGE_TABLE_CHECK_ENFORCED=y,\ntools/testing/selftests/mm/cow completes successfully on RISC-V after this\nchange."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "arch/riscv/include/asm/pgtable.h"
                    ],
                    "versions": [
                        {
                            "version": "3fee229a8eb936b96933c6b2cd02d2e87a4cc997",
                            "lessThan": "c41f2ec5ff3c840e38922ac19d47808842b972b4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fee229a8eb936b96933c6b2cd02d2e87a4cc997",
                            "lessThan": "fd4d112f27c0ed7ea03d3868618d93fff29b9201",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fee229a8eb936b96933c6b2cd02d2e87a4cc997",
                            "lessThan": "24df68281795de4b8ee11b71ccc5b9ba746127bd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fee229a8eb936b96933c6b2cd02d2e87a4cc997",
                            "lessThan": "cb24274f7d304d992e940be51234a3d9cfc179b5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fee229a8eb936b96933c6b2cd02d2e87a4cc997",
                            "lessThan": "d1078b473e559875f1d2aeec1ef9792b89e35209",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fee229a8eb936b96933c6b2cd02d2e87a4cc997",
                            "lessThan": "bdda2887cbf3937c2d0f56589c2124c4167324e1",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "arch/riscv/include/asm/pgtable.h"
                    ],
                    "versions": [
                        {
                            "version": "5.19",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.19",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/c41f2ec5ff3c840e38922ac19d47808842b972b4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fd4d112f27c0ed7ea03d3868618d93fff29b9201"
                },
                {
                    "url": "https://git.kernel.org/stable/c/24df68281795de4b8ee11b71ccc5b9ba746127bd"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cb24274f7d304d992e940be51234a3d9cfc179b5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d1078b473e559875f1d2aeec1ef9792b89e35209"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bdda2887cbf3937c2d0f56589c2124c4167324e1"
                }
            ],
            "title": "riscv: mm: exclude invalid THP PMDs from page table check",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}