AZL-117181: CVE-2026-139493 affecting package kernel 6.6.161.1-1
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mt76_wcid_cleanup(), call idr_destroy(&wcid->pktid) before releasing dev->status_lock, so teardown and concurrent insertion into the IDR are mutually exclusive.
Event History
Frequently Asked Questions
Does the advisory identify an external attack vector or attacker privileges required to trigger the issue?
No. The available information describes an internal race between wireless transmit-status handling and WCID cleanup, but does not specify an attack vector, required privileges, or user interaction requirements.
Is a workaround available when an updated kernel cannot be deployed immediately?
No workaround or temporary mitigation is provided in the supplied advisory data. The documented resolution is to ensure pktid IDR destruction occurs while dev->status_lock is still held.
Does the advisory provide a fixed package version or an affected version range?
No fixed version or complete affected-version range is stated. The supplied data identifies the azure-linux/kernel package and references version 6.6.161.1-1.