CVE-2026-139493
publishedwifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxbd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 881063c29779c737b0249748a9ea9453d233a353 · bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 4fb0a25ac84d15d20588d110faf9511e78626da8 · bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 4e5917e0ee83756868b9c0747c91e5ad0ee2177e · bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943 · bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 158c1145fe7ddd82914011a00de7cc3262616b16 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.16 (affected) · 0 to < 5.16 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup() mt76_wcid_cleanup() releases dev->status_lock before calling idr_destroy(&wcid->pktid) to tear down the pktid idr. Meanwhile, mt76_tx_status_skb_add() from tx.c can concurrently insert into that same idr during tx completion handling: spin_lock_bh(&dev->status_lock); pid = idr_alloc(&wcid->pktid, skb, MT_PACKET_ID_FIRST, MT_PACKET_ID_MASK, GFP_ATOMIC); Since idr_destroy() runs outside the lock, it can execute concurrently with idr_alloc() on the same idr, corrupting its internal data structures. Because idr nodes are freed through the generic slab allocator, this corruption can resurface later as an unrelated-looking crash anywhere in the kernel that happens to reuse the same freed memory. Fix this by calling idr_destroy() before releasing dev->status_lock, so that the table teardown and any concurrent insertion are mutually exclusive.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 881063c29779c737b0249748a9ea9453d233a353 (affected · git)bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 4fb0a25ac84d15d20588d110faf9511e78626da8 (affected · git)bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 4e5917e0ee83756868b9c0747c91e5ad0ee2177e (affected · git)bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943 (affected · git)bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 to < 158c1145fe7ddd82914011a00de7cc3262616b16 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.16 (affected)0 to < 5.16 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/158c1145fe7ddd82914011a00de7cc3262616b16
- https://git.kernel.org/stable/c/4e5917e0ee83756868b9c0747c91e5ad0ee2177e
- https://git.kernel.org/stable/c/4fb0a25ac84d15d20588d110faf9511e78626da8
- https://git.kernel.org/stable/c/881063c29779c737b0249748a9ea9453d233a353
- https://git.kernel.org/stable/c/f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943
Provider assertions
1Linux · cna
wifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5d571aae5055d301b25cfc16b7f50538fdb1dc3b5584de1a0b18aef3dbfb485f
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record