{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "fc922bb0dd9406dd9897fd47df958789891c380e"
            },
            {
              "fixed": "c2c75c45b54f3b12eafb28a4eb47f8821512c1aa"
            },
            {
              "fixed": "7203ac71d3895fa5948b319dd724f0e1cffbc4a1"
            },
            {
              "fixed": "f6454a5fbf2224ad30ec70e686a6c592561da1f2"
            },
            {
              "fixed": "220d41bdce41fe5a39a7f419faab1e907b4093c2"
            },
            {
              "fixed": "9e4a6185679922305ea1df68403f00ccc512656b"
            },
            {
              "fixed": "3a2b47d1b4b3de54d030a7fdb6a322c970513ee3"
            },
            {
              "fixed": "8adebf07b46df79a0e49a6d4ae384f0db7c91db6"
            },
            {
              "fixed": "21cf8dc478a49e8de039c2739b1646a774cb1944"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.14.0"
            },
            {
              "fixed": "5.10.261"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.212"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.178"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.97"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.40"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72307.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()\n\nWhen mlxsw_sp_vrs_lpm_tree_replace() fails after replacing some VRs,\nthe error rollback loop does not correctly revert the preceding\nreplacements. The loop decrements the index but fails to update the\nvr pointer, which still points to the VR that caused the failure. As\na result, the condition and the rollback call always operate on the\nsame VR, potentially calling mlxsw_sp_vr_lpm_tree_replace() multiple\ntimes on it while never rolling back the earlier VRs. Those VRs\ncontinue to hold a reference to new_tree acquired via\nmlxsw_sp_lpm_tree_hold(), leaking the reference count of new_tree.\n\nFix by reinitializing vr inside the error loop with the updated index:\n\n\tvr = \u0026mlxsw_sp-\u003erouter-\u003evrs[i];\n\nso that the loop correctly iterates over all VRs that were actually\nreplaced.",
  "id": "CVE-2026-72307",
  "modified": "2026-08-16T03:31:09.440894833Z",
  "published": "2026-08-15T05:55:24.622Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/21cf8dc478a49e8de039c2739b1646a774cb1944"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/220d41bdce41fe5a39a7f419faab1e907b4093c2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3a2b47d1b4b3de54d030a7fdb6a322c970513ee3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7203ac71d3895fa5948b319dd724f0e1cffbc4a1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8adebf07b46df79a0e49a6d4ae384f0db7c91db6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9e4a6185679922305ea1df68403f00ccc512656b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c2c75c45b54f3b12eafb28a4eb47f8821512c1aa"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f6454a5fbf2224ad30ec70e686a6c592561da1f2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72307.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72307"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()"
}