wifi: mac80211: fix mesh fast xmit path deletion UAF
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.113, 6.18.56, 7.2.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix mesh fast xmit path deletion UAF mesh_fast_tx_cache() stores raw mesh_path pointers. Path deletion flushes the cache and then frees the path with kfree_rcu(), but a lookup that already holds the path can insert a new cache entry after the flush. The cache then points at freed memory. Set MESH_PATH_DELETED before flushing, and skip inserting a cache entry if the path or MPP path is already deleted. Check this under the cache walk lock so it is ordered with the flush. Use WRITE_ONCE() for the deletion flag updates because the cache check reads flags without taking state_lock.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From d5edb9ae8d568745f893c5c5fa3837d85311b131 · fixed in ebb7cba623d38733d33d79a8c7442f5ea04c0fb0; From d5edb9ae8d568745f893c5c5fa3837d85311b131 · fixed in 0117f1aa189495e6f1ff608681678817995aee39; From d5edb9ae8d568745f893c5c5fa3837d85311b131 · fixed in 128e800a41270ab197b1cc8043637a2924865608; From d5edb9ae8d568745f893c5c5fa3837d85311b131 · fixed in 93da3ec938bfdcfb3899428f04c6d0c56fe32952; From d5edb9ae8d568745f893c5c5fa3837d85311b131 · fixed in ee3aadc43ea69d98f666431e787137ac0badbb85
- Linux Linux
6.4
- KernelLinux
From 6.4.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10