CVE-2026-139497

wifi: mt76: fix wcid teardown ordering in mt76_reset_device()

Published Nov 30, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

wifi: mt76: fix wcid teardown ordering in mt76_reset_device()

mt76_reset_device() tears down each wcid's pktid idr before clearing
dev->wcid[i], which is the reverse of the ordering used on the
sta removal path. Until the pointer is cleared, a concurrent lookup
under status_lock can still find the wcid and access its
already destroyed idr.

Clear dev->wcid[i] before calling mt76_wcid_cleanup(), reproducing
the ordering mac80211 already enforces for normal sta removal (where
mt76_sta_pre_rcu_remove() clears dev->wcid[idx] before
mt76_wcid_cleanup() runs via the .sta_state callback).

Analysis

AI-generated

Technical impact

The mt76 WiFi driver contains a race condition in its device reset routine that can allow an attacker to access a removed wcid’s packet identifier table while it has already been torn down. This ordering flaw can lead to a use‑after‑free scenario, potentially corrupting kernel memory and causing a system crash.

Affected Systems

All Linux kernels using the mt76 WiFi driver are affected. The vulnerability is not limited to a specific kernel release; any kernel containing the old mt76_reset_device implementation may be vulnerable.

Risk and Exploitability

With a CVSS score of 4.7, the flaw has a moderate severity rating. The EPSS score is <1%, indicating a low probability of exploitation at present. The vulnerability is not listed in CISA’s KEV catalog. A local attacker who can trigger a device reset while another process accesses the driver may exploit the ordering bug, leading to a use‑after‑free that can corrupt kernel memory and potentially crash the system. Although exploitation is currently unlikely and no public exploits exist, the risk of a denial of service remains, warranting prompt patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the mt76 patch
  • If an immediate kernel upgrade is not possible, restart the system to ensure the WiFi driver is unloaded and prevent concurrent access to the torn‑down wcid table
  • Monitor system logs for kernel panics or Oops messages that might indicate exploitation attempts.

Generated by OpenCVE AI on December 2, 2026 at 15:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: fix wcid teardown ordering in mt76_reset_device() mt76_reset_device() tears down each wcid's pktid idr before clearing dev->wcid[i], which is the reverse of the ordering used on the sta removal path. Until the pointer is cleared, a concurrent lookup under status_lock can still find the wcid and access its already destroyed idr. Clear dev->wcid[i] before calling mt76_wcid_cleanup(), reproducing the ordering mac80211 already enforces for normal sta removal (where mt76_sta_pre_rcu_remove() clears dev->wcid[idx] before mt76_wcid_cleanup() runs via the .sta_state callback).
Title wifi: mt76: fix wcid teardown ordering in mt76_reset_device()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-366

    Race Condition within a Thread

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:35 PM