{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99651","id":"CVE-2026-99651","title":"Linux kernel use-after-free in KSM unstable trees","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/ksm: reset the unstable trees of all nodes\n\nEach full scan resets ksm_nr_node_ids unstable tree roots. Enabling\nmerge_across_nodes resets this count to 1, even if per-node roots were\npreviously allocated.\n\nSo when toggling \"merge_across_nodes\" 0 -> 1 -> 0, a scan that starts\nwhile the setting is 1 and continues after switching","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/ksm: reset the unstable trees of all nodes\n\nEach full scan resets ksm_nr_node_ids unstable tree roots. Enabling\nmerge_across_nodes resets this count to 1, even if per-node roots were\npreviously allocated.\n\nSo when toggling \"merge_across_nodes\" 0 -> 1 -> 0, a scan that starts\nwhile the setting is 1 and continues after switching back to 0 can\nencounter stale unstable tree roots, resulting in UAF.\n\nOnly root is allowed to change \"merge_across_nodes\", and the documented\nsequence is: \"merge_across_nodes setting can be changed only when there\nare no ksm shared pages in the system: set run 2 to unmerge pages first,\nthen to 1 after changing merge_across_nodes, to remerge according to the\nnew setting.\"\n\nLet's fix it by tracking in ksm_nr_node_ids the actual number of\nallocated tree roots.\n\nremove_all_stable_nodes() and ksm_check_stable_tree() will now scan\nmore tree roots (skipping the empty ones), which is harmless.","published":"2026-11-20T05:50:04.565Z","updated":"2026-11-20T07:01:00.248686932Z","reserved":"2026-09-25T10:25:14.427Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef53d16cded7f89b3843b7a96970dab897843ea5","lessThan":"7e5793cedeb444dc96b3b90e799d16f2f55d51b3","status":"affected","versionType":"git"},{"version":"ef53d16cded7f89b3843b7a96970dab897843ea5","lessThan":"1e59e96a064a6ca44e6fccb7a21f21d41614ff03","status":"affected","versionType":"git"},{"version":"ef53d16cded7f89b3843b7a96970dab897843ea5","lessThan":"31a2ba635adae60d23f744db2fef7ad318cdafa1","status":"affected","versionType":"git"},{"version":"ef53d16cded7f89b3843b7a96970dab897843ea5","lessThan":"890e118e95bfc2aae4432ec2a95192d6f9193211","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","lessThan":"3.9","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/7e5793cedeb444dc96b3b90e799d16f2f55d51b3","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1e59e96a064a6ca44e6fccb7a21f21d41614ff03","tags":["web"]},{"url":"https://git.kernel.org/stable/c/31a2ba635adae60d23f744db2fef7ad318cdafa1","tags":["web"]},{"url":"https://git.kernel.org/stable/c/890e118e95bfc2aae4432ec2a95192d6f9193211","tags":["web"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99651.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99651","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99651","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99651","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99651","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99651","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}