wifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 98686cd21624c75a043e96812beadddf4f6f48e5, before 3e5327940a2a72f1f81d167eb5e9176341c89e45; from 98686cd21624c75a043e96812beadddf4f6f48e5, before dd0978ebf56ee9dda9fc0ff36db91511c01fa716; from 98686cd21624c75a043e96812beadddf4f6f48e5, before 26dc15da08f15e8320514d700d6a4c449d1bb047; from 98686cd21624c75a043e96812beadddf4f6f48e5, before 40e3d300cc7e27b12e3307099247d6c5cc1fa009; from 98686cd21624c75a043e96812beadddf4f6f48e5, before 022f5f8b7a0580da50fcbc34da853d03d4321fe2 | 3e5327940a2a72f1f81d167eb5e9176341c89e45; dd0978ebf56ee9dda9fc0ff36db91511c01fa716; 26dc15da08f15e8320514d700d6a4c449d1bb047; 40e3d300cc7e27b12e3307099247d6c5cc1fa009 |
| Linux Linux | Software | 6.2 | not recorded |
The 7.5 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Nearby network | The attacker has to be on the same local network (office Wi-Fi or the same hosting network). |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.6 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 5 sources for this flaw, none tagged as a vendor patch.