{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99651","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.427Z","datePublished":"2026-11-20T05:50:04.565Z","dateUpdated":"2026-11-20T05:50:04.565Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-20T05:50:04.565Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/ksm.c"],"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"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/ksm.c"],"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"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/7e5793cedeb444dc96b3b90e799d16f2f55d51b3"},{"url":"https://git.kernel.org/stable/c/1e59e96a064a6ca44e6fccb7a21f21d41614ff03"},{"url":"https://git.kernel.org/stable/c/31a2ba635adae60d23f744db2fef7ad318cdafa1"},{"url":"https://git.kernel.org/stable/c/890e118e95bfc2aae4432ec2a95192d6f9193211"}],"title":"mm/ksm: reset the unstable trees of all nodes","x_generator":{"engine":"bippy-1.2.0"}}}}