# CVE-2026-72307: mlxsw: fix refcount leak in mlxsw\_sp\_vrs\_lpm\_tree\_replace()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-08-15T05:55:24.622Z
- **Modified:** 2026-08-17T06:18:33.787Z

## Who should check

- Anyone running Linux \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< c2c75c45b54f3b12eafb28a4eb47f8821512c1aa; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 7203ac71d3895fa5948b319dd724f0e1cffbc4a1; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< f6454a5fbf2224ad30ec70e686a6c592561da1f2; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 220d41bdce41fe5a39a7f419faab1e907b4093c2; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 9e4a6185679922305ea1df68403f00ccc512656b; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 8adebf07b46df79a0e49a6d4ae384f0db7c91db6; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 21cf8dc478a49e8de039c2739b1646a774cb1944
- Anyone running Linux 4.14

## 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.

## Affected and fixed versions

- Linux: \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< c2c75c45b54f3b12eafb28a4eb47f8821512c1aa; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 7203ac71d3895fa5948b319dd724f0e1cffbc4a1; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< f6454a5fbf2224ad30ec70e686a6c592561da1f2; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 220d41bdce41fe5a39a7f419faab1e907b4093c2; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 9e4a6185679922305ea1df68403f00ccc512656b; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 8adebf07b46df79a0e49a6d4ae384f0db7c91db6; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 21cf8dc478a49e8de039c2739b1646a774cb1944 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 21cf8dc478a49e8de039c2739b1646a774cb1944 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72307. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72307.md
Affected: Linux >= fc922bb0dd9406dd9897fd47df958789891c380e, < c2c75c45b54f3b12eafb28a4eb47f8821512c1aa; >= fc922bb0dd9406dd9897fd47df958789891c380e, < 7203ac71d3895fa5948b319dd724f0e1cffbc4a1; >= fc922bb0dd9406dd9897fd47df958789891c380e, < f6454a5fbf2224ad30ec70e686a6c592561da1f2; >= fc922bb0dd9406dd9897fd4…
Fixed in: Linux 7203ac71d3895fa5948b319dd724f0e1cffbc4a1, Linux 220d41bdce41fe5a39a7f419faab1e907b4093c2, Linux 9e4a6185679922305ea1df68403f00ccc512656b, Linux 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3, Linux 8adebf07b46df79a0e49a6d4ae384f0db7c91db6, Linux 21cf8dc478a49e8de039c2739b1646a774cb1944

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72307 being exploited?

There is no confirmed exploitation: CVE-2026-72307 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-72307?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-72307?

Linux \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< c2c75c45b54f3b12eafb28a4eb47f8821512c1aa; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 7203ac71d3895fa5948b319dd724f0e1cffbc4a1; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< f6454a5fbf2224ad30ec70e686a6c592561da1f2; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 220d41bdce41fe5a39a7f419faab1e907b4093c2; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 9e4a6185679922305ea1df68403f00ccc512656b; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 8adebf07b46df79a0e49a6d4ae384f0db7c91db6; \>= fc922bb0dd9406dd9897fd47df958789891c380e, \< 21cf8dc478a49e8de039c2739b1646a774cb1944; Linux 4.14.

### Is there a fix for CVE-2026-72307?

Yes. Fixed in Linux 7203ac71d3895fa5948b319dd724f0e1cffbc4a1, Linux 220d41bdce41fe5a39a7f419faab1e907b4093c2, Linux 9e4a6185679922305ea1df68403f00ccc512656b, Linux 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3, Linux 8adebf07b46df79a0e49a6d4ae384f0db7c91db6, Linux 21cf8dc478a49e8de039c2739b1646a774cb1944. Upgrade Linux to 21cf8dc478a49e8de039c2739b1646a774cb1944 or later.

### How do I check if I'm affected by CVE-2026-72307?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/c2c75c45b54f3b12eafb28a4eb47f8821512c1aa>
- other: <https://git.kernel.org/stable/c/7203ac71d3895fa5948b319dd724f0e1cffbc4a1>
- other: <https://git.kernel.org/stable/c/f6454a5fbf2224ad30ec70e686a6c592561da1f2>
- other: <https://git.kernel.org/stable/c/220d41bdce41fe5a39a7f419faab1e907b4093c2>
- other: <https://git.kernel.org/stable/c/9e4a6185679922305ea1df68403f00ccc512656b>
- other: <https://git.kernel.org/stable/c/3a2b47d1b4b3de54d030a7fdb6a322c970513ee3>
- other: <https://git.kernel.org/stable/c/8adebf07b46df79a0e49a6d4ae384f0db7c91db6>
- other: <https://git.kernel.org/stable/c/21cf8dc478a49e8de039c2739b1646a774cb1944>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72307>

HTML: <https://flawdb.com/CVE-2026-72307> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72307>
