wifi: mac80211: defer link RX stats percpu free to RCU
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2aa1789880fa5e41049b0f6a74a4fc2fa1997610, Kernel a03fceae0c65b31ce31840dac5e26684ceecb65b, Kernel a5afc00280986063f1c355821544fabbb2a960f7 and 3 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: defer link RX stats percpu free to RCU sta_remove_link() frees a removed MLO link's RX stats percpu buffer right away, but defers only the link container to RCU: sta_info_free_link(&alloc->info); kfree_rcu(alloc, rcu_head); The RX fast path reads link_sta under rcu_read_lock and writes the percpu stats. A reader that resolved link_sta before the removal keeps the pointer. The container stays alive from the kfree_rcu, so the read still works. But the percpu block it points to is already freed. This needs uses_rss. That is when pcpu_rx_stats exists. The full STA teardown frees the deflink stats only after synchronize_net(). The link removal path had no such barrier. The race is hard to win in practice, but the free should still wait for RCU. Free the link together with its data from a single RCU callback, so the percpu block is reclaimed only after readers drain.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.0, >=c71420db653aba30a234d1e4cf86dde376e604fa <2aa1789880fa5e41049b0f6a74a4fc2fa1997610, >=c71420db653aba30a234d1e4cf86dde376e604fa <a03fceae0c65b31ce31840dac5e26684ceecb65b, >=c71420db653aba30a234d1e4cf86dde376e604fa <a5afc00280986063f1c355821544fabbb2a960f7, >=c71420db653aba30a234d1e4cf86dde376e604fa <aa2eb62525188269cdd402a583b9a8ed94657ff0, >=c71420db653aba30a234d1e4cf86dde376e604fa <acd5931d5adf12f0163f83dc00320e7011f4da92, >=c71420db653aba30a234d1e4cf86dde376e604fa <b679c1cffb2f3d0854b8b05ea9e909ad6489046f | 2aa1789880fa5e41049b0f6a74a4fc2fa1997610, a03fceae0c65b31ce31840dac5e26684ceecb65b, a5afc00280986063f1c355821544fabbb2a960f7, aa2eb62525188269cdd402a583b9a8ed94657ff0, acd5931d5adf12f0163f83dc00320e7011f4da92, b679c1cffb2f3d0854b8b05ea9e909ad6489046f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket