# CVE-2026-99651: mm/ksm: reset the unstable trees of all nodes

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-20T05:50:04.565Z
- **Modified:** 2026-11-23T08:18:06.090Z

## Who should check

- Anyone running Linux \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 28f9a1c759fcf26383707fff784550d14420a72c; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 2cdc31f57af276e7f133fe1a7d0d6af12dfd192f; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 431012d95a7a4cd1dfe535d8c18c5de2e085bf01; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 07067f250a267471c10133186c7f56e2ea46f864; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 7e5793cedeb444dc96b3b90e799d16f2f55d51b3; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 1e59e96a064a6ca44e6fccb7a21f21d41614ff03; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 31a2ba635adae60d23f744db2fef7ad318cdafa1; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 890e118e95bfc2aae4432ec2a95192d6f9193211
- Anyone running Linux 3.9

## 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.

## Affected and fixed versions

- Linux: \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 28f9a1c759fcf26383707fff784550d14420a72c; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 2cdc31f57af276e7f133fe1a7d0d6af12dfd192f; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 431012d95a7a4cd1dfe535d8c18c5de2e085bf01; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 07067f250a267471c10133186c7f56e2ea46f864; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 7e5793cedeb444dc96b3b90e799d16f2f55d51b3; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 1e59e96a064a6ca44e6fccb7a21f21d41614ff03; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 31a2ba635adae60d23f744db2fef7ad318cdafa1; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 890e118e95bfc2aae4432ec2a95192d6f9193211 (cvelist)
- Linux: 3.9 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 890e118e95bfc2aae4432ec2a95192d6f9193211 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99651. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99651.md
Affected: Linux >= ef53d16cded7f89b3843b7a96970dab897843ea5, < 28f9a1c759fcf26383707fff784550d14420a72c; >= ef53d16cded7f89b3843b7a96970dab897843ea5, < 2cdc31f57af276e7f133fe1a7d0d6af12dfd192f; >= ef53d16cded7f89b3843b7a96970dab897843ea5, < 431012d95a7a4cd1dfe535d8c18c5de2e085bf01; >= ef53d16cded7f89b3843b7a…
Fixed in: Linux 28f9a1c759fcf26383707fff784550d14420a72c, Linux 2cdc31f57af276e7f133fe1a7d0d6af12dfd192f, Linux 431012d95a7a4cd1dfe535d8c18c5de2e085bf01, Linux 07067f250a267471c10133186c7f56e2ea46f864, Linux 7e5793cedeb444dc96b3b90e799d16f2f55d51b3, Linux 1e59e96a064a6ca44e6fccb7a21f21d41614ff03, Linux 31a2b…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99651 being exploited?

There is no confirmed exploitation: CVE-2026-99651 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99651?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99651?

Linux \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 28f9a1c759fcf26383707fff784550d14420a72c; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 2cdc31f57af276e7f133fe1a7d0d6af12dfd192f; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 431012d95a7a4cd1dfe535d8c18c5de2e085bf01; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 07067f250a267471c10133186c7f56e2ea46f864; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 7e5793cedeb444dc96b3b90e799d16f2f55d51b3; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 1e59e96a064a6ca44e6fccb7a21f21d41614ff03; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 31a2ba635adae60d23f744db2fef7ad318cdafa1; \>= ef53d16cded7f89b3843b7a96970dab897843ea5, \< 890e118e95bfc2aae4432ec2a95192d6f9193211; Linux 3.9.

### Is there a fix for CVE-2026-99651?

Yes. Fixed in Linux 28f9a1c759fcf26383707fff784550d14420a72c, Linux 2cdc31f57af276e7f133fe1a7d0d6af12dfd192f, Linux 431012d95a7a4cd1dfe535d8c18c5de2e085bf01, Linux 07067f250a267471c10133186c7f56e2ea46f864, Linux 7e5793cedeb444dc96b3b90e799d16f2f55d51b3, Linux 1e59e96a064a6ca44e6fccb7a21f21d41614ff03, Linux 31a2ba635adae60d23f744db2fef7ad318cdafa1, Linux 890e118e95bfc2aae4432ec2a95192d6f9193211. Upgrade Linux to 890e118e95bfc2aae4432ec2a95192d6f9193211 or later.

### How do I check if I'm affected by CVE-2026-99651?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/28f9a1c759fcf26383707fff784550d14420a72c>
- other: <https://git.kernel.org/stable/c/2cdc31f57af276e7f133fe1a7d0d6af12dfd192f>
- other: <https://git.kernel.org/stable/c/431012d95a7a4cd1dfe535d8c18c5de2e085bf01>
- other: <https://git.kernel.org/stable/c/07067f250a267471c10133186c7f56e2ea46f864>
- other: <https://git.kernel.org/stable/c/7e5793cedeb444dc96b3b90e799d16f2f55d51b3>
- other: <https://git.kernel.org/stable/c/1e59e96a064a6ca44e6fccb7a21f21d41614ff03>
- other: <https://git.kernel.org/stable/c/31a2ba635adae60d23f744db2fef7ad318cdafa1>
- other: <https://git.kernel.org/stable/c/890e118e95bfc2aae4432ec2a95192d6f9193211>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99651>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99651> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99651>
