CVE-2026-72307
mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()
Check your servers for CVE-2026-72307
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-72307 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fc922bb0dd9406dd9897fd47df958789891c380e, before c2c75c45b54f3b12eafb28a4eb47f8821512c1aa affected from fc922bb0dd9406dd9897fd47df958789891c380e, before 7203ac71d3895fa5948b319dd724f0e1cffbc4a1 affected from fc922bb0dd9406dd9897fd47df958789891c380e, before f6454a5fbf2224ad30ec70e686a6c592561da1f2 affected from fc922bb0dd9406dd9897fd47df958789891c380e, before 220d41bdce41fe5a39a7f419faab1e907b4093c2 affected from fc922bb0dd9406dd9897fd47df958789891c380e, before 9e4a6185679922305ea1df68403f00ccc512656b affected from fc922bb0dd9406dd9897fd47df958789891c380e, before 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3 affected from fc922bb0dd9406dd9897fd47df958789891c380e, before 8adebf07b46df79a0e49a6d4ae384f0db7c91db6 affected from fc922bb0dd9406dd9897fd47df958789891c380e, before 21cf8dc478a49e8de039c2739b1646a774cb1944
Other versions: unaffected
|
| Linux |
affected 4.14 unaffected before 4.14 unaffected from 5.10.261 up to and including 5.10.* unaffected from 5.15.212 up to and including 5.15.* unaffected from 6.1.178 up to and including 6.1.* unaffected from 6.6.145 up to and including 6.6.* unaffected from 6.12.97 up to and including 6.12.* unaffected from 6.18.40 up to and including 6.18.* unaffected from 7.1.5 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-72307 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-72307
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-72307
trivy image --scanners vuln IMAGE | grep CVE-2026-72307
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c2c75c45b54f3b12eafb28a4eb47f8821512c1aa git.kernel.org
- https://git.kernel.org/stable/c/7203ac71d3895fa5948b319dd724f0e1cffbc4a1 git.kernel.org
- https://git.kernel.org/stable/c/f6454a5fbf2224ad30ec70e686a6c592561da1f2 git.kernel.org
- https://git.kernel.org/stable/c/220d41bdce41fe5a39a7f419faab1e907b4093c2 git.kernel.org
- https://git.kernel.org/stable/c/9e4a6185679922305ea1df68403f00ccc512656b git.kernel.org
- https://git.kernel.org/stable/c/3a2b47d1b4b3de54d030a7fdb6a322c970513ee3 git.kernel.org
- https://git.kernel.org/stable/c/8adebf07b46df79a0e49a6d4ae384f0db7c91db6 git.kernel.org
- https://git.kernel.org/stable/c/21cf8dc478a49e8de039c2739b1646a774cb1944 git.kernel.org
Source: the record CVE-2026-72307 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse