{"id":"CVE-2026-139497","state":"PUBLISHED","title":"wifi: mt76: fix wcid teardown ordering in mt76_reset_device()","description":"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->wcid[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->wcid[i] before calling mt76_wcid_cleanup(), reproducing\nthe ordering mac80211 already enforces for normal sta removal (where\nmt76_sta_pre_rcu_remove() clears dev->wcid[idx] before\nmt76_wcid_cleanup() runs via the .sta_state callback).","publishedAt":"2026-11-30T13:35:17.901Z","updatedAt":"2026-11-30T13:35:17.901Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6d40c15d70c2dba2f68dd50e452255bfa1b016f0","status":"affected","lessThan":"caa6cabdc6058db7e0153b74bc9184f26797634a","versionType":"git"},{"version":"6826728f9fd7e7db57cd9647932eea47cbc645c6","status":"affected","lessThan":"ccc0d9b2594551c8b4db3c4a862820146327db0d","versionType":"git"},{"version":"065c79df595af21d6d1b27d642860faa1d938774","status":"affected","lessThan":"043b145a5a18d47080334d2ed7fca8a1da2535a8","versionType":"git"},{"version":"065c79df595af21d6d1b27d642860faa1d938774","status":"affected","lessThan":"31302510436cf903fe32e28bb833b3ce1774e4bd","versionType":"git"},{"version":"065c79df595af21d6d1b27d642860faa1d938774","status":"affected","lessThan":"5cebbd7a87df834efe002c8e54211e6adc99703a","versionType":"git"},{"version":"8fa8eb52bc2eb08d93202863b5fc478e0bebc00c","status":"affected","versionType":"git"},{"version":"6.6.160","status":"affected","lessThan":"6.6.163","versionType":"semver"},{"version":"6.12.114","status":"affected","lessThan":"6.12.119","versionType":"semver"},{"version":"6.16.6","status":"affected","lessThan":"6.17","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mac80211.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","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/mac80211.c"]}],"references":["https://git.kernel.org/stable/c/caa6cabdc6058db7e0153b74bc9184f26797634a","https://git.kernel.org/stable/c/ccc0d9b2594551c8b4db3c4a862820146327db0d","https://git.kernel.org/stable/c/043b145a5a18d47080334d2ed7fca8a1da2535a8","https://git.kernel.org/stable/c/31302510436cf903fe32e28bb833b3ce1774e4bd","https://git.kernel.org/stable/c/5cebbd7a87df834efe002c8e54211e6adc99703a"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139497.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139497","state":"PUBLISHED","datePublished":"2026-11-30T13:35:17.901Z","dateUpdated":"2026-11-30T13:35:17.901Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.937Z"},"containers":{"cna":{"title":"wifi: mt76: fix wcid teardown ordering in mt76_reset_device()","descriptions":[{"lang":"en","value":"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->wcid[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->wcid[i] before calling mt76_wcid_cleanup(), reproducing\nthe ordering mac80211 already enforces for normal sta removal (where\nmt76_sta_pre_rcu_remove() clears dev->wcid[idx] before\nmt76_wcid_cleanup() runs via the .sta_state callback)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6d40c15d70c2dba2f68dd50e452255bfa1b016f0","status":"affected","lessThan":"caa6cabdc6058db7e0153b74bc9184f26797634a","versionType":"git"},{"version":"6826728f9fd7e7db57cd9647932eea47cbc645c6","status":"affected","lessThan":"ccc0d9b2594551c8b4db3c4a862820146327db0d","versionType":"git"},{"version":"065c79df595af21d6d1b27d642860faa1d938774","status":"affected","lessThan":"043b145a5a18d47080334d2ed7fca8a1da2535a8","versionType":"git"},{"version":"065c79df595af21d6d1b27d642860faa1d938774","status":"affected","lessThan":"31302510436cf903fe32e28bb833b3ce1774e4bd","versionType":"git"},{"version":"065c79df595af21d6d1b27d642860faa1d938774","status":"affected","lessThan":"5cebbd7a87df834efe002c8e54211e6adc99703a","versionType":"git"},{"version":"8fa8eb52bc2eb08d93202863b5fc478e0bebc00c","status":"affected","versionType":"git"},{"version":"6.6.160","status":"affected","lessThan":"6.6.163","versionType":"semver"},{"version":"6.12.114","status":"affected","lessThan":"6.12.119","versionType":"semver"},{"version":"6.16.6","status":"affected","lessThan":"6.17","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mac80211.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","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/mac80211.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/caa6cabdc6058db7e0153b74bc9184f26797634a"},{"url":"https://git.kernel.org/stable/c/ccc0d9b2594551c8b4db3c4a862820146327db0d"},{"url":"https://git.kernel.org/stable/c/043b145a5a18d47080334d2ed7fca8a1da2535a8"},{"url":"https://git.kernel.org/stable/c/31302510436cf903fe32e28bb833b3ce1774e4bd"},{"url":"https://git.kernel.org/stable/c/5cebbd7a87df834efe002c8e54211e6adc99703a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:17.901Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.160","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.114","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}