CVE-2026-99912
riscv: mm: exclude invalid THP PMDs from page table check
Check your servers for CVE-2026-99912
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99912 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
riscv: mm: exclude invalid THP PMDs from page table check
RISC-V THP splitting uses a temporary invalid PMD state where pmd_mkinvalid() clears _PAGE_PRESENT and _PAGE_PROT_NONE but leaves _PAGE_LEAF set so the MM code can still recognize the PMD as a THP split in-progress entry.
That temporary state no longer describes a user-accessible mapping, but page_table_check currently treats it as one because the RISC-V PMD user-accessibility test only checks whether the PMD is a leaf and has user permissions.
As a result, when a PMD-sized anonymous THP is split during a COW fault, page_table_check can account the invalid intermediate PMD as a live PMD mapping, and then account the replacement PTE mappings again when the split installs the PTE table. This leaves stale PMD accounting behind and later triggers page_table_check failures such as a non-zero anon_map_count when the folio is freed.
Fix this by tightening pmd_user_accessible_page() so PMD page-table-check accounting only considers leaf PMDs that still carry either _PAGE_PRESENT or _PAGE_PROT_NONE. This preserves the THP split semantics required by the MM code while preventing page_table_check from treating invalid split PMDs as live user mappings.
With CONFIG_PAGE_TABLE_CHECK=y and CONFIG_PAGE_TABLE_CHECK_ENFORCED=y, tools/testing/selftests/mm/cow completes successfully on RISC-V after this change.
Exploitation
EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 26.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3fee229a8eb936b96933c6b2cd02d2e87a4cc997, before c41f2ec5ff3c840e38922ac19d47808842b972b4 affected from 3fee229a8eb936b96933c6b2cd02d2e87a4cc997, before fd4d112f27c0ed7ea03d3868618d93fff29b9201 affected from 3fee229a8eb936b96933c6b2cd02d2e87a4cc997, before 24df68281795de4b8ee11b71ccc5b9ba746127bd affected from 3fee229a8eb936b96933c6b2cd02d2e87a4cc997, before cb24274f7d304d992e940be51234a3d9cfc179b5 affected from 3fee229a8eb936b96933c6b2cd02d2e87a4cc997, before d1078b473e559875f1d2aeec1ef9792b89e35209 affected from 3fee229a8eb936b96933c6b2cd02d2e87a4cc997, before bdda2887cbf3937c2d0f56589c2124c4167324e1
Other versions: unaffected
|
| Linux |
affected 5.19 unaffected before 5.19 unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99912 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99912
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99912
trivy image --scanners vuln IMAGE | grep CVE-2026-99912
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c41f2ec5ff3c840e38922ac19d47808842b972b4 git.kernel.org
- https://git.kernel.org/stable/c/fd4d112f27c0ed7ea03d3868618d93fff29b9201 git.kernel.org
- https://git.kernel.org/stable/c/24df68281795de4b8ee11b71ccc5b9ba746127bd git.kernel.org
- https://git.kernel.org/stable/c/cb24274f7d304d992e940be51234a3d9cfc179b5 git.kernel.org
- https://git.kernel.org/stable/c/d1078b473e559875f1d2aeec1ef9792b89e35209 git.kernel.org
- https://git.kernel.org/stable/c/bdda2887cbf3937c2d0f56589c2124c4167324e1 git.kernel.org
Source: the record CVE-2026-99912 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse