Linux: wifi: mac80211: account proxy paths against the mesh path limit
What fixes it
- 3b75831ceee76d32bb8e7ddd241904f92f9b5407LinuxCVE List
- 5a32409ed34a1868830899a5d2437f0b3bf3532cLinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: account proxy paths against the mesh path limit
Proxy-path churn can drive the interface path counter negative and let later mesh path additions exceed MESH_MAX_MPATHS.
mesh_path_free_rcu() decrements the interface mpaths counter for entries from both the mesh and proxy path tables, but mpp_path_add() never reserves a slot in that counter. Removing or expiring a proxy path therefore returns a slot that was never charged.
mesh_path_add() uses the same counter to enforce MESH_MAX_MPATHS, so once it falls below the number of installed paths the limit no longer holds.
Reserve the shared quota before allocating a proxy path and release it on every unsuccessful addition. Mesh and proxy paths now share one 1024-entry budget, so mpp_path_add() can return -ENOSPC at that limit.
Text from CVE List
Affected versions 12
- Linuxaffected: ece1a2e7e86078c8379937b546e32cb7f25fcb6c before c66ab4b94bb04c162485759196555e08c0965320CVE List
- Linuxaffected: ece1a2e7e86078c8379937b546e32cb7f25fcb6c before df072db65fdaa34ad15e1d66fc06a53e3e97f778CVE List
- Linuxaffected: ece1a2e7e86078c8379937b546e32cb7f25fcb6c before 3b75831ceee76d32bb8e7ddd241904f92f9b5407CVE List
- Linuxaffected: ece1a2e7e86078c8379937b546e32cb7f25fcb6c before 5a32409ed34a1868830899a5d2437f0b3bf3532cCVE List
- Linuxaffected: ece1a2e7e86078c8379937b546e32cb7f25fcb6c before a5f35d4b112af1415ff06bd501c8cc26cc08aa8bCVE List
- Linuxaffected: 3.2CVE List
- Linuxunaffected: all versions before 3.2CVE List
- Linuxunaffected: 6.6.160 through 6.6.*CVE List
- Linuxunaffected: 6.12.113 through 6.12.*CVE List
- Linuxunaffected: 6.18.56 through 6.18.*CVE List
- Linuxunaffected: 7.2.10 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/c66ab4b94bb04c162485759196555e08c0965320Referencevia CVE List
- git.kernel.org/stable/c/df072db65fdaa34ad15e1d66fc06a53e3e97f778Referencevia CVE List
- git.kernel.org/stable/c/3b75831ceee76d32bb8e7ddd241904f92f9b5407Referencevia CVE List
- git.kernel.org/stable/c/5a32409ed34a1868830899a5d2437f0b3bf3532cReferencevia CVE List
- git.kernel.org/stable/c/a5f35d4b112af1415ff06bd501c8cc26cc08aa8bReferencevia CVE List