wifi: mac80211: shut down RX BA session timer on teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a87f736d942c86255e3088c606f0e3eab6bbf784 · < 09b7d5e4f88504e62ddf4ff31ebeebb3b87578ba| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: shut down RX BA session timer on teardown
Tearing down an RX BA session can leave the session timer queued on a freed tid_rx. Later timer-wheel processing and the timer callback itself then run against freed memory.
An RX BAR handler can dereference tid_rx under RCU before teardown unpublishes it and stay in its read-side critical section while teardown deletes the session timer. The stale handler can then rearm the timer after timer_delete_sync() returns and before the RCU callback frees tid_rx.
Use timer_shutdown_sync() so rearm attempts become ineffective once teardown starts. Keep reorder_timer unchanged: teardown marks the session removed under reorder_lock and its release path checks that state before rearming. session_timer has no equivalent guard because ieee80211_rx_h_ctrl() rearms it before taking reorder_lock.
From the CVE record · Linux
The Linux kernel's mac80211 RX BA session timer can be rearmed during teardown and later access freed memory. This can occur when an RX BAR handler overlaps with session teardown; the input does not specify attacker access, authentication requirements, or user interaction.
Operators running Linux kernels with mac80211 should check whether their kernel includes the fix; affected versions are not specified.