wifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel dd0978ebf56ee9dda9fc0ff36db91511c01fa716, Kernel 022f5f8b7a0580da50fcbc34da853d03d4321fe2, Kernel 26dc15da08f15e8320514d700d6a4c449d1bb047 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement mt7996_mac_add_twt_setup() links a new flow into dev->twt_list before asking the MCU to add the agreement, but exits without unlinking the flow if the request fails. The flow-ID and table masks are only committed after MCU success, so the still-linked flow is invisible to the mask-gated teardown paths. If the station retries the setup, the same slot is cleared and its embedded list node reinitialized while it is still linked, corrupting dev->twt_list. If the station disassociates instead, teardown skips the flow and station storage can be freed while the node remains linked. A later scheduling or debugfs twt_stats walk can then dereference the freed flow, resulting in a use-after-free. Unlink the flow when the MCU rejects the agreement. This restores the list to its pre-request state while leaving the unchanged mask and agreement accounting untouched.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=98686cd21624c75a043e96812beadddf4f6f48e5 <dd0978ebf56ee9dda9fc0ff36db91511c01fa716, >=98686cd21624c75a043e96812beadddf4f6f48e5 <022f5f8b7a0580da50fcbc34da853d03d4321fe2, >=98686cd21624c75a043e96812beadddf4f6f48e5 <26dc15da08f15e8320514d700d6a4c449d1bb047, >=98686cd21624c75a043e96812beadddf4f6f48e5 <40e3d300cc7e27b12e3307099247d6c5cc1fa009, =6.2 | dd0978ebf56ee9dda9fc0ff36db91511c01fa716, 022f5f8b7a0580da50fcbc34da853d03d4321fe2, 26dc15da08f15e8320514d700d6a4c449d1bb047, 40e3d300cc7e27b12e3307099247d6c5cc1fa009 |
| linux-kernel: Kernel | >=6.19.0 <7.3.2, >=6.2.0 <6.12.117, >=6.13.0 <6.18.61 | 7.3.2, 6.12.117, 6.18.61 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket