CVE-2026-139493
wifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup()
Check your servers for CVE-2026-139493
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139493 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720, before 881063c29779c737b0249748a9ea9453d233a353 affected from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720, before 4fb0a25ac84d15d20588d110faf9511e78626da8 affected from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720, before 4e5917e0ee83756868b9c0747c91e5ad0ee2177e affected from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720, before f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943 affected from bd1e3e7b693c17a04e7d2bd9119daa482b7c7720, before 158c1145fe7ddd82914011a00de7cc3262616b16
Other versions: unaffected
|
| Linux |
affected 5.16 unaffected before 5.16 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139493 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139493
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139493
trivy image --scanners vuln IMAGE | grep CVE-2026-139493
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/881063c29779c737b0249748a9ea9453d233a353 git.kernel.org
- https://git.kernel.org/stable/c/4fb0a25ac84d15d20588d110faf9511e78626da8 git.kernel.org
- https://git.kernel.org/stable/c/4e5917e0ee83756868b9c0747c91e5ad0ee2177e git.kernel.org
- https://git.kernel.org/stable/c/f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943 git.kernel.org
- https://git.kernel.org/stable/c/158c1145fe7ddd82914011a00de7cc3262616b16 git.kernel.org
Source: the record CVE-2026-139493 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse