{"id":"CVE-2026-99451","state":"PUBLISHED","title":"wifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement\n\nmt7996_mac_add_twt_setup() links a new flow into dev->twt_list before\nasking the MCU to add the agreement, but exits without unlinking the flow\nif the request fails. The flow-ID and table masks are only committed\nafter MCU success, so the still-linked flow is invisible to the\nmask-gated teardown paths.\n\nIf the station retries the setup, the same slot is cleared and its\nembedded list node reinitialized while it is still linked, corrupting\ndev->twt_list. If the station disassociates instead, teardown skips the\nflow and station storage can be freed while the node remains linked. A\nlater scheduling or debugfs twt_stats walk can then dereference the\nfreed flow, resulting in a use-after-free.\n\nUnlink the flow when the MCU rejects the agreement. This restores the\nlist to its pre-request state while leaving the unchanged mask and\nagreement accounting untouched.","publishedAt":"2026-11-19T14:41:47.595Z","updatedAt":"2026-11-22T11:08:20.147Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"dd0978ebf56ee9dda9fc0ff36db91511c01fa716","versionType":"git"},{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"26dc15da08f15e8320514d700d6a4c449d1bb047","versionType":"git"},{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"40e3d300cc7e27b12e3307099247d6c5cc1fa009","versionType":"git"},{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"022f5f8b7a0580da50fcbc34da853d03d4321fe2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/mac.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/mac.c"]}],"references":["https://git.kernel.org/stable/c/dd0978ebf56ee9dda9fc0ff36db91511c01fa716","https://git.kernel.org/stable/c/26dc15da08f15e8320514d700d6a4c449d1bb047","https://git.kernel.org/stable/c/40e3d300cc7e27b12e3307099247d6c5cc1fa009","https://git.kernel.org/stable/c/022f5f8b7a0580da50fcbc34da853d03d4321fe2"],"weaknesses":[],"ingestedAt":"2026-11-22T11:18:06.032Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99451.json","commit":"247cc9beefd85903834df0592e88a44f4d599223","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99451","state":"PUBLISHED","datePublished":"2026-11-19T14:41:47.595Z","dateUpdated":"2026-11-22T11:08:20.147Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.416Z"},"containers":{"cna":{"title":"wifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement\n\nmt7996_mac_add_twt_setup() links a new flow into dev->twt_list before\nasking the MCU to add the agreement, but exits without unlinking the flow\nif the request fails. The flow-ID and table masks are only committed\nafter MCU success, so the still-linked flow is invisible to the\nmask-gated teardown paths.\n\nIf the station retries the setup, the same slot is cleared and its\nembedded list node reinitialized while it is still linked, corrupting\ndev->twt_list. If the station disassociates instead, teardown skips the\nflow and station storage can be freed while the node remains linked. A\nlater scheduling or debugfs twt_stats walk can then dereference the\nfreed flow, resulting in a use-after-free.\n\nUnlink the flow when the MCU rejects the agreement. This restores the\nlist to its pre-request state while leaving the unchanged mask and\nagreement accounting untouched."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"dd0978ebf56ee9dda9fc0ff36db91511c01fa716","versionType":"git"},{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"26dc15da08f15e8320514d700d6a4c449d1bb047","versionType":"git"},{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"40e3d300cc7e27b12e3307099247d6c5cc1fa009","versionType":"git"},{"version":"98686cd21624c75a043e96812beadddf4f6f48e5","status":"affected","lessThan":"022f5f8b7a0580da50fcbc34da853d03d4321fe2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/mac.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/mac.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dd0978ebf56ee9dda9fc0ff36db91511c01fa716"},{"url":"https://git.kernel.org/stable/c/26dc15da08f15e8320514d700d6a4c449d1bb047"},{"url":"https://git.kernel.org/stable/c/40e3d300cc7e27b12e3307099247d6c5cc1fa009"},{"url":"https://git.kernel.org/stable/c/022f5f8b7a0580da50fcbc34da853d03d4321fe2"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - A WiFi peer triggers mt7996_mac_add_twt_setup by sending a WLAN_S1G_TWT_SETUP action frame. ieee80211_rx_h_action queues it from ieee80211_process_rx_twt_action, and ieee80211_s1g_rx_twt_setup calls drv_add_twt_setup. The agreement parameters ride in that 802.11 action frame, so the sender must be in radio range of the AP.\nAC:H - The flow stays on dev->twt_list with flowid_mask clear only when mt7996_mcu_twt_agrt_update returns non-zero. Requests the driver already treats as unsupported (sta->mlo, min_twt_dur < MT7996_MIN_TWT_DUR, and mt7996_mac_check_twt_req) return before the list insert. The remaining failure is a non-zero UNI event->status or -ETIMEDOUT from mt7996_mcu_parse_response, and the tree shows no TWT field that produces that status.\nPR:N - ieee80211_process_rx_twt_action requires rx->sta but not WLAN_STA_AUTHORIZED. _ieee80211_is_robust_mgmt_frame excludes WLAN_CATEGORY_S1G, so ieee80211_drop_unencrypted_mgmt keeps the unprotected setup. Open-system authentication inserts the station before any PSK or 802.1X handshake.\nUI:N - The attacker completes open-system authentication, transmits the TWT Setup, and then either retries the setup or deauthenticates. The subsequent list walk is caused by that second setup frame.\nS:U - The dangling mt7996_twt_flow is embedded in the sta_info object from __sta_info_alloc and released by sta_info_free, while dev->twt_list is state of that same AP kernel.\nC:H - On disassociation mt7996_mac_twt_teardown_flow returns without list_del because the flowid_mask bit was never set, then sta_info_free kfree's the station. The next mt7996_mac_twt_sched_list_add walk reads that freed embedded flow, a heap use-after-free.\nI:H - mt7996_mac_twt_sched_list_add calls list_add through the freed flow's list pointers, and a retry memset's and INIT_LIST_HEAD's flow[flowid] while that node is still on dev->twt_list. Reusing the freed sta_info slot turns those stores into an attacker-controlled write.\nA:H - Retrying setup turns the still-linked flow into a self-loop, so mt7996_mac_twt_sched_list_add never finishes and holds dev->mt76.mutex. Disassociation instead leaves the node linked until sta_info_free, and the same walk or mt7996_twt_stats then dereferences freed memory."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-22T11:08:20.147Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}