wifi: mac80211: capture fast-RX rate before mesh reuses skb->cb
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0cd37e746e98ab0baa6d8b812955220775b080d6, Kernel 2fb64f94f9afb774f2fa0c7835727d7a67f89f07, Kernel 5fe97797412aa8bc0184f78379fafb594bcb7f66 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: capture fast-RX rate before mesh reuses skb->cb ieee80211_invoke_fast_rx() reads RX status through IEEE80211_SKB_RXCB(skb), which aliases the same skb->cb storage that ieee80211_rx_mesh_data() reuses as IEEE80211_TX_INFO. In the unicast forward path, mesh_data does: info = IEEE80211_SKB_CB(fwd_skb); memset(info, 0, sizeof(*info)); on the same skb the caller still names via rx->skb, then either queues the skb for TX (success) or kfree_skb()'s it (no-route) before returning RX_QUEUED. The caller's RX_QUEUED arm then calls sta_stats_encode_rate(status) on memory that is either zeroed (success path) or freed (no-route path). The latter is KASAN slab-use-after-free in ieee80211_prepare_and_rx_handle. Fix by encoding the rate from status before invoking ieee80211_rx_mesh_data(), so the RX_QUEUED arm consumes a value captured while status was still backed by valid memory.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.4, >=3468e1e0c639032a603450f0830ccabfa76f5806 <0cd37e746e98ab0baa6d8b812955220775b080d6, >=3468e1e0c639032a603450f0830ccabfa76f5806 <2fb64f94f9afb774f2fa0c7835727d7a67f89f07, >=3468e1e0c639032a603450f0830ccabfa76f5806 <5fe97797412aa8bc0184f78379fafb594bcb7f66, >=3468e1e0c639032a603450f0830ccabfa76f5806 <a2650f8461cd8ba287fee2992b36abe733c2bd5e, >=3468e1e0c639032a603450f0830ccabfa76f5806 <d71c841be5d9e586ee7f36c0dc8ed4db0d9a1349 | 0cd37e746e98ab0baa6d8b812955220775b080d6, 2fb64f94f9afb774f2fa0c7835727d7a67f89f07, 5fe97797412aa8bc0184f78379fafb594bcb7f66, a2650f8461cd8ba287fee2992b36abe733c2bd5e, d71c841be5d9e586ee7f36c0dc8ed4db0d9a1349 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket