{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99651",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99651"
  ],
  "published": "2026-11-20T05:52:17Z",
  "summary": "mm/ksm: reset the unstable trees of all nodes",
  "details": "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": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.193",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99651"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/28f9a1c759fcf26383707fff784550d14420a72c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2cdc31f57af276e7f133fe1a7d0d6af12dfd192f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/431012d95a7a4cd1dfe535d8c18c5de2e085bf01"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/07067f250a267471c10133186c7f56e2ea46f864"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/7e5793cedeb444dc96b3b90e799d16f2f55d51b3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1e59e96a064a6ca44e6fccb7a21f21d41614ff03"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/31a2ba635adae60d23f744db2fef7ad318cdafa1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/890e118e95bfc2aae4432ec2a95192d6f9193211"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z"
  }
}
