VDB

CVE-2026-72307

CVE-2026-72307 PUBLISHED

mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()

Reported by linux · Published August 15, 2026

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.

EPSS 0.22% · 12.6th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxf6454a5fbf2224ad30ec70e686a6c592561da1f2, c2c75c45b54f3b12eafb28a4eb47f8821512c1aa, 9e4a6185679922305ea1df68403f00ccc512656b, 8adebf07b46df79a0e49a6d4ae384f0db7c91db6, 7203ac71d3895fa5948b319dd724f0e1cffbc4a1, 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3, 220d41bdce41fe5a39a7f419faab1e907b4093c2, 21cf8dc478a49e8de039c2739b1646a774cb1944

Risk scores

EPSS Score
0.22%
12.6th percentile

Affected products

VendorProductVersions
LinuxLinuxfc922bb0dd9406dd9897fd47df958789891c380e, fc922bb0dd9406dd9897fd47df958789891c380e, fc922bb0dd9406dd9897fd47df958789891c380e
LinuxLinux4.14, 0, 5.10.261
LinuxLinux7.2, 0, 5.10.261
linuxlinux_kernel4.14, 4.14, 4.14

Timeline

  • Aug 15, 2026 Coalition ESS Score
  • Aug 15, 2026 CVE Published
  • Aug 17, 2026 CVE Updated
  • Aug 19, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score (16 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-72307
vulnetix vdb fixes CVE-2026-72307

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-72307/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›