GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-72307 (GCVE-0-2026-72307)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:55 – Updated: 2026-08-17 05:12
VLAI
Title
mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()
Summary
In the Linux kernel, the following vulnerability has been resolved: mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace() When mlxsw_sp_vrs_lpm_tree_replace() fails after replacing some VRs, the error rollback loop does not correctly revert the preceding replacements. The loop decrements the index but fails to update the vr pointer, which still points to the VR that caused the failure. As a result, the condition and the rollback call always operate on the same VR, potentially calling mlxsw_sp_vr_lpm_tree_replace() multiple times on it while never rolling back the earlier VRs. Those VRs continue to hold a reference to new_tree acquired via mlxsw_sp_lpm_tree_hold(), leaking the reference count of new_tree. Fix by reinitializing vr inside the error loop with the updated index: vr = &mlxsw_sp->router->vrs[i]; so that the loop correctly iterates over all VRs that were actually replaced.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < c2c75c45b54f3b12eafb28a4eb47f8821512c1aa (git)
Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < 7203ac71d3895fa5948b319dd724f0e1cffbc4a1 (git)
Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < f6454a5fbf2224ad30ec70e686a6c592561da1f2 (git)
Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < 220d41bdce41fe5a39a7f419faab1e907b4093c2 (git)
Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < 9e4a6185679922305ea1df68403f00ccc512656b (git)
Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3 (git)
Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < 8adebf07b46df79a0e49a6d4ae384f0db7c91db6 (git)
Affected: fc922bb0dd9406dd9897fd47df958789891c380e , < 21cf8dc478a49e8de039c2739b1646a774cb1944 (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.14
Unaffected: 0 , < 4.14 (semver)
Unaffected: 5.10.261 , ≤ 5.10.* (semver)
Unaffected: 5.15.212 , ≤ 5.15.* (semver)
Unaffected: 6.1.178 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.97 , ≤ 6.12.* (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c2c75c45b54f3b12eafb28a4eb47f8821512c1aa",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            },
            {
              "lessThan": "7203ac71d3895fa5948b319dd724f0e1cffbc4a1",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            },
            {
              "lessThan": "f6454a5fbf2224ad30ec70e686a6c592561da1f2",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            },
            {
              "lessThan": "220d41bdce41fe5a39a7f419faab1e907b4093c2",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            },
            {
              "lessThan": "9e4a6185679922305ea1df68403f00ccc512656b",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            },
            {
              "lessThan": "3a2b47d1b4b3de54d030a7fdb6a322c970513ee3",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            },
            {
              "lessThan": "8adebf07b46df79a0e49a6d4ae384f0db7c91db6",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            },
            {
              "lessThan": "21cf8dc478a49e8de039c2739b1646a774cb1944",
              "status": "affected",
              "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.14"
            },
            {
              "lessThan": "4.14",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.261",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.212",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.261",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.212",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.178",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.97",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:12:11.806Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c2c75c45b54f3b12eafb28a4eb47f8821512c1aa"
        },
        {
          "url": "https://git.kernel.org/stable/c/7203ac71d3895fa5948b319dd724f0e1cffbc4a1"
        },
        {
          "url": "https://git.kernel.org/stable/c/f6454a5fbf2224ad30ec70e686a6c592561da1f2"
        },
        {
          "url": "https://git.kernel.org/stable/c/220d41bdce41fe5a39a7f419faab1e907b4093c2"
        },
        {
          "url": "https://git.kernel.org/stable/c/9e4a6185679922305ea1df68403f00ccc512656b"
        },
        {
          "url": "https://git.kernel.org/stable/c/3a2b47d1b4b3de54d030a7fdb6a322c970513ee3"
        },
        {
          "url": "https://git.kernel.org/stable/c/8adebf07b46df79a0e49a6d4ae384f0db7c91db6"
        },
        {
          "url": "https://git.kernel.org/stable/c/21cf8dc478a49e8de039c2739b1646a774cb1944"
        }
      ],
      "title": "mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72307",
    "datePublished": "2026-08-15T05:55:24.622Z",
    "dateReserved": "2026-08-09T03:40:39.918Z",
    "dateUpdated": "2026-08-17T05:12:11.806Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72307",
      "date": "2026-09-05",
      "epss": "0.0022",
      "percentile": "0.12397"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72307\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:22:03.440\",\"lastModified\":\"2026-08-17T06:18:33.787\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"c2c75c45b54f3b12eafb28a4eb47f8821512c1aa\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"7203ac71d3895fa5948b319dd724f0e1cffbc4a1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"f6454a5fbf2224ad30ec70e686a6c592561da1f2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"220d41bdce41fe5a39a7f419faab1e907b4093c2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"9e4a6185679922305ea1df68403f00ccc512656b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"3a2b47d1b4b3de54d030a7fdb6a322c970513ee3\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"8adebf07b46df79a0e49a6d4ae384f0db7c91db6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fc922bb0dd9406dd9897fd47df958789891c380e\",\"lessThan\":\"21cf8dc478a49e8de039c2739b1646a774cb1944\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"4.14\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"4.14\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.261\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.212\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.178\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.145\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.97\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.40\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/21cf8dc478a49e8de039c2739b1646a774cb1944\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/220d41bdce41fe5a39a7f419faab1e907b4093c2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3a2b47d1b4b3de54d030a7fdb6a322c970513ee3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7203ac71d3895fa5948b319dd724f0e1cffbc4a1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8adebf07b46df79a0e49a6d4ae384f0db7c91db6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9e4a6185679922305ea1df68403f00ccc512656b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c2c75c45b54f3b12eafb28a4eb47f8821512c1aa\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f6454a5fbf2224ad30ec70e686a6c592561da1f2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-08-19T05:25:19+00:00",
      "cve": "CVE-2026-72307",
      "id": "CVE-2026-72307",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72307.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…