CVE-2026-99651
mm/ksm: reset the unstable trees of all nodes
Check your servers for CVE-2026-99651
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-99651 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:
mm/ksm: reset the unstable trees of all nodes
Each full scan resets ksm_nr_node_ids unstable tree roots. Enabling merge_across_nodes resets this count to 1, even if per-node roots were previously allocated.
So when toggling "merge_across_nodes" 0 -> 1 -> 0, a scan that starts while the setting is 1 and continues after switching back to 0 can encounter stale unstable tree roots, resulting in UAF.
Only root is allowed to change "merge_across_nodes", and the documented sequence is: "merge_across_nodes setting can be changed only when there are no ksm shared pages in the system: set run 2 to unmerge pages first, then to 1 after changing merge_across_nodes, to remerge according to the new setting."
Let's fix it by tracking in ksm_nr_node_ids the actual number of allocated tree roots.
remove_all_stable_nodes() and ksm_check_stable_tree() will now scan more tree roots (skipping the empty ones), which is harmless.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 28f9a1c759fcf26383707fff784550d14420a72c affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 2cdc31f57af276e7f133fe1a7d0d6af12dfd192f affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 431012d95a7a4cd1dfe535d8c18c5de2e085bf01 affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 07067f250a267471c10133186c7f56e2ea46f864 affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 7e5793cedeb444dc96b3b90e799d16f2f55d51b3 affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 1e59e96a064a6ca44e6fccb7a21f21d41614ff03 affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 31a2ba635adae60d23f744db2fef7ad318cdafa1 affected from ef53d16cded7f89b3843b7a96970dab897843ea5, before 890e118e95bfc2aae4432ec2a95192d6f9193211
Other versions: unaffected
|
| Linux |
affected 3.9 unaffected before 3.9 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* 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.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.5 up to and including 7.3.* unaffected 7.4-rc2 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-99651 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99651
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-99651
trivy image --scanners vuln IMAGE | grep CVE-2026-99651
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/28f9a1c759fcf26383707fff784550d14420a72c git.kernel.org
- https://git.kernel.org/stable/c/2cdc31f57af276e7f133fe1a7d0d6af12dfd192f git.kernel.org
- https://git.kernel.org/stable/c/431012d95a7a4cd1dfe535d8c18c5de2e085bf01 git.kernel.org
- https://git.kernel.org/stable/c/07067f250a267471c10133186c7f56e2ea46f864 git.kernel.org
- https://git.kernel.org/stable/c/7e5793cedeb444dc96b3b90e799d16f2f55d51b3 git.kernel.org
- https://git.kernel.org/stable/c/1e59e96a064a6ca44e6fccb7a21f21d41614ff03 git.kernel.org
- https://git.kernel.org/stable/c/31a2ba635adae60d23f744db2fef7ad318cdafa1 git.kernel.org
- https://git.kernel.org/stable/c/890e118e95bfc2aae4432ec2a95192d6f9193211 git.kernel.org
Source: the record CVE-2026-99651 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