# CVE-2026-139493: wifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:15.699Z
- Modified: 2026-11-30T14:19:24.123Z
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 before 881063c29779c737b0249748a9ea9453d233a353; from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 before 4fb0a25ac84d15d20588d110faf9511e78626da8; from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 before 4e5917e0ee83756868b9c0747c91e5ad0ee2177e; from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 before f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943; from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 before 158c1145fe7ddd82914011a00de7cc3262616b16; 5.16 (not affected: before 5.16; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/881063c29779c737b0249748a9ea9453d233a353>
- <https://git.kernel.org/stable/c/4fb0a25ac84d15d20588d110faf9511e78626da8>
- <https://git.kernel.org/stable/c/4e5917e0ee83756868b9c0747c91e5ad0ee2177e>
- <https://git.kernel.org/stable/c/f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943>
- <https://git.kernel.org/stable/c/158c1145fe7ddd82914011a00de7cc3262616b16>

## Sources

- CVE List: [CVE-2026-139493](https://www.cve.org/CVERecord?id=CVE-2026-139493), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139493](https://nvd.nist.gov/vuln/detail/CVE-2026-139493), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139493 · Whole record: https://cve.day/CVE-2026-139493.json · Rebuilt by cve.day 2026-11-30T14:33:27.188Z
