CVE-2026-72307

Source
https://cve.org/CVERecord?id=CVE-2026-72307
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72307.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72307
Downstream
Published
2026-08-15T05:55:24.622Z
Modified
2026-08-16T03:48:53.830229055Z
Summary
mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()
Details

In the Linux kernel, the following vulnerability has been resolved:

mlxsw: fix refcount leak in mlxswspvrslpmtree_replace()

When mlxswspvrslpmtreereplace() 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 mlxswspvrlpmtreereplace() multiple times on it while never rolling back the earlier VRs. Those VRs continue to hold a reference to newtree acquired via mlxswsplpmtreehold(), leaking the reference count of newtree.

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72307.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fc922bb0dd9406dd9897fd47df958789891c380e
Fixed
c2c75c45b54f3b12eafb28a4eb47f8821512c1aa
Fixed
7203ac71d3895fa5948b319dd724f0e1cffbc4a1
Fixed
f6454a5fbf2224ad30ec70e686a6c592561da1f2
Fixed
220d41bdce41fe5a39a7f419faab1e907b4093c2
Fixed
9e4a6185679922305ea1df68403f00ccc512656b
Fixed
3a2b47d1b4b3de54d030a7fdb6a322c970513ee3
Fixed
8adebf07b46df79a0e49a6d4ae384f0db7c91db6
Fixed
21cf8dc478a49e8de039c2739b1646a774cb1944

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72307.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72307.json"