{"id":"CVE-2026-139497","summary":"wifi: mt76: fix wcid teardown ordering in mt76_reset_device()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: fix wcid teardown ordering in mt76_reset_device()\n\nmt76_reset_device() tears down each wcid's pktid idr before clearing\ndev-\u003ewcid[i], which is the reverse of the ordering used on the\nsta removal path. Until the pointer is cleared, a concurrent lookup\nunder status_lock can still find the wcid and access its\nalready destroyed idr.\n\nClear dev-\u003ewcid[i] before calling mt76_wcid_cleanup(), reproducing\nthe ordering mac80211 already enforces for normal sta removal (where\nmt76_sta_pre_rcu_remove() clears dev-\u003ewcid[idx] before\nmt76_wcid_cleanup() runs via the .sta_state callback).","modified":"2026-11-30T15:02:28.843359727Z","published":"2026-11-30T13:35:17.901Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139497.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/043b145a5a18d47080334d2ed7fca8a1da2535a8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/31302510436cf903fe32e28bb833b3ce1774e4bd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5cebbd7a87df834efe002c8e54211e6adc99703a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/caa6cabdc6058db7e0153b74bc9184f26797634a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ccc0d9b2594551c8b4db3c4a862820146327db0d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139497.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139497"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6d40c15d70c2dba2f68dd50e452255bfa1b016f0"},{"fixed":"caa6cabdc6058db7e0153b74bc9184f26797634a"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6826728f9fd7e7db57cd9647932eea47cbc645c6"},{"fixed":"ccc0d9b2594551c8b4db3c4a862820146327db0d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"065c79df595af21d6d1b27d642860faa1d938774"},{"fixed":"043b145a5a18d47080334d2ed7fca8a1da2535a8"},{"fixed":"31302510436cf903fe32e28bb833b3ce1774e4bd"},{"fixed":"5cebbd7a87df834efe002c8e54211e6adc99703a"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8fa8eb52bc2eb08d93202863b5fc478e0bebc00c"}]}],"versions":["v6.6.162","v6.6.161","v6.6.160","v6.12.118","v6.12.117","v6.12.116","v6.12.115","v6.12.114","v6.16.12","v6.16.11","v6.16.10","v6.16.9","v6.16.8","v6.16.7","v6.16.6"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139497.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.160"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.114"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.16.6"},{"fixed":"6.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139497.json"}}],"schema_version":"1.9.2"}