{"id":"CVE-2026-99651","aliases":[],"title":"mm/ksm: reset the unstable trees of all nodes","originalDescription":"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.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00211,"percentile":0.11957},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <07067f250a267471c10133186c7f56e2ea46f864","fixed":"07067f250a267471c10133186c7f56e2ea46f864"},{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <1e59e96a064a6ca44e6fccb7a21f21d41614ff03","fixed":"1e59e96a064a6ca44e6fccb7a21f21d41614ff03"},{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <28f9a1c759fcf26383707fff784550d14420a72c","fixed":"28f9a1c759fcf26383707fff784550d14420a72c"},{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <2cdc31f57af276e7f133fe1a7d0d6af12dfd192f","fixed":"2cdc31f57af276e7f133fe1a7d0d6af12dfd192f"},{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <31a2ba635adae60d23f744db2fef7ad318cdafa1","fixed":"31a2ba635adae60d23f744db2fef7ad318cdafa1"},{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <431012d95a7a4cd1dfe535d8c18c5de2e085bf01","fixed":"431012d95a7a4cd1dfe535d8c18c5de2e085bf01"},{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <7e5793cedeb444dc96b3b90e799d16f2f55d51b3","fixed":"7e5793cedeb444dc96b3b90e799d16f2f55d51b3"},{"ecosystem":"vendor","name":"Linux","range":">=ef53d16cded7f89b3843b7a96970dab897843ea5, <890e118e95bfc2aae4432ec2a95192d6f9193211","fixed":"890e118e95bfc2aae4432ec2a95192d6f9193211"}],"references":[{"url":"https://git.kernel.org/stable/c/7e5793cedeb444dc96b3b90e799d16f2f55d51b3","type":"other"},{"url":"https://git.kernel.org/stable/c/1e59e96a064a6ca44e6fccb7a21f21d41614ff03","type":"other"},{"url":"https://git.kernel.org/stable/c/31a2ba635adae60d23f744db2fef7ad318cdafa1","type":"other"},{"url":"https://git.kernel.org/stable/c/890e118e95bfc2aae4432ec2a95192d6f9193211","type":"other"},{"url":"https://git.kernel.org/stable/c/28f9a1c759fcf26383707fff784550d14420a72c","type":"other"},{"url":"https://git.kernel.org/stable/c/2cdc31f57af276e7f133fe1a7d0d6af12dfd192f","type":"other"},{"url":"https://git.kernel.org/stable/c/431012d95a7a4cd1dfe535d8c18c5de2e085bf01","type":"other"},{"url":"https://git.kernel.org/stable/c/07067f250a267471c10133186c7f56e2ea46f864","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.504Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99651","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.026Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:57.695Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99651","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:13.769Z"}],"firstSeenAt":"2026-11-20T06:28:13.769Z","publishedAt":"2026-11-20T05:50:04.565Z","modifiedAt":"2026-11-23T08:18:06.090Z"}