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

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

wifi: mt76: fix wcid->pktid corruption in mt76wcidcleanup()

mt76wcidcleanup() releases dev->statuslock before calling idrdestroy(&wcid->pktid) to tear down the pktid idr. Meanwhile, mt76txstatusskbadd() from tx.c can concurrently insert into that same idr during tx completion handling:

spinlockbh(&dev->statuslock);

pid = idralloc(&wcid->pktid, skb, MTPACKETIDFIRST, MTPACKETIDMASK, GFPATOMIC);

Since idrdestroy() runs outside the lock, it can execute concurrently with idralloc() 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 idrdestroy() before releasing dev->statuslock, so that the table teardown and any concurrent insertion are mutually exclusive.

Affected Software

9 affected componentsFixes available
Linux Linux kernel (mt76 driver)
linux/kernel>=5.16.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux*
debian/linux<7.3.6-1
7.3.6-1
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1, <=6.12.118-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  6. Compensating control

    Call idr_destroy(&wcid->pktid) before releasing dev->status_lock, so teardown is mutually exclusive with concurrent idr_alloc() calls.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
Data Sourced
via OSV·01:35 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description
Dec 1, 2026
Updated
via OSV·04:01 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel mt76 Wi-Fi driver are exposed when the affected cleanup path can run concurrently with transmit-completion handling that adds packet status entries.

2

What conditions are needed to trigger the corruption?

A race is required between mt76_wcid_cleanup() destroying a WCID packet-ID IDR and mt76_tx_status_skb_add() inserting into that same IDR during TX completion processing. The vulnerable behavior occurs because the destruction previously happened after dev->status_lock was released.

3

What is the likely operational impact?

The race can corrupt internal IDR data structures. Because corrupted IDR nodes are freed through the generic slab allocator, the visible result may be a later, unrelated-looking kernel crash when that memory is reused.

4

How can this be remediated?

Apply a kernel update containing the mt76 fix that performs idr_destroy(&wcid->pktid) before releasing dev->status_lock. This makes IDR teardown mutually exclusive with concurrent packet-ID insertion.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203