CVE-2026-74325

wifi: mt76: use kfree_rcu for offchannel link in mt76_put_vif_phy_link

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

wifi: mt76: use kfree_rcu for offchannel link in mt76_put_vif_phy_link

mt76_put_vif_phy_link() frees the offchannel mlink with plain kfree()
after rcu_assign_pointer(NULL). However, rcu_assign_pointer only prevents
future RCU readers from obtaining the pointer -- it does not wait for
existing readers that already hold it via rcu_dereference.

The TX datapath (e.g. mt7996_mac_write_txwi) dereferences mlink->wcid
and mlink->idx under rcu_read_lock. If a TX softirq obtained the pointer
via rcu_dereference just before the NULL assignment, it will dereference
freed memory after the kfree.

struct mt76_vif_link already contains an rcu_head field that is unused at
this free site -- a developer oversight, since the adjacent
kfree_rcu_mightsleep call for rx_sc in the same function shows the
pattern was understood.

Replace kfree(mlink) with kfree_rcu(mlink, rcu_head).

Analysis

AI-generated

Technical impact

The mt76 Wi‑Fi driver frees an offchannel link structure with a plain kfree() immediately after assigning NULL via rcu_assign_pointer. RCU only blocks future readers, not those already holding the pointer, so a TX softirq that dereferences the link just before the NULL assignment will access freed memory under rcu_read_lock. This use‑after‑free can corrupt memory, trigger a kernel panic, or provide an opportunity for code execution or privilege escalation.

Affected Systems

All Linux kernel builds that contain the unpatched mt76 driver are potentially affected. No specific kernel release numbers are supplied, but any kernel importing the Linux:Linux vendor product and including the mt76 driver before the patch commit risk exposure.

Risk and Exploitability

The CVSS score of 7.8 indicates a high‑severity use‑after‑free in this kernel driver, posing a significant risk to kernel stability and security. The EPSS score is < 1%, indicating a very low exploitation probability at present. The vulnerability is not listed in the CISA KEV catalog, indicating no known active exploitation at this time. Attackers would need to trigger the TX datapath while the freed object is still referenced; the exact remote or local attack vector is not specified, so the risk is treated as a potential local privilege escalation that could expand if an attacker gains sufficient control over network traffic handled by the device.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the mt76 patch that replaces the kfree call with kfree_rcu; the patch can be found in commit 50e700ac0edce72dee5c3a9755865d9423696ac7 and subsequent kernel releases.
  • If a direct kernel upgrade is not possible, backport the specific mt76 patch to your current source; build the driver with the updated code and install the patched module or reboot into the patched kernel.
  • Monitor kernel logs for WARN/BUG messages related to mt76 and for any kernel panics that could indicate lingering issues; investigate any failures promptly.

Generated by OpenCVE AI on August 22, 2026 at 00:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: use kfree_rcu for offchannel link in mt76_put_vif_phy_link mt76_put_vif_phy_link() frees the offchannel mlink with plain kfree() after rcu_assign_pointer(NULL). However, rcu_assign_pointer only prevents future RCU readers from obtaining the pointer -- it does not wait for existing readers that already hold it via rcu_dereference. The TX datapath (e.g. mt7996_mac_write_txwi) dereferences mlink->wcid and mlink->idx under rcu_read_lock. If a TX softirq obtained the pointer via rcu_dereference just before the NULL assignment, it will dereference freed memory after the kfree. struct mt76_vif_link already contains an rcu_head field that is unused at this free site -- a developer oversight, since the adjacent kfree_rcu_mightsleep call for rx_sc in the same function shows the pattern was understood. Replace kfree(mlink) with kfree_rcu(mlink, rcu_head).
Title wifi: mt76: use kfree_rcu for offchannel link in mt76_put_vif_phy_link
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 6:55 PM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 16, 2026, 7:17 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM