KernelScan.io

HIGH Introduced in 6.18

mt7996 VifLink UAF

CVE-2026-90356

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7996: free vif links after clearing wcid entries on full reset mt7996_mac_reset_vif_iter() queues non-default vif links for kfree_rcu while dev->wcid[] still holds pointers to the wcid embedded in each freed link; mt76_reset_device() then dereferences those entries and runs mt76_wcid_cleanup() on them. If a grace period elapses in between, the cleanup operates on freed memory. Run mt76_reset_device() first, so the wcid entries are cleaned up and cleared while the links are still valid.

02

Engine v0.6.0

Risk summary

A use-after-free vulnerability exists in the MediaTek mt7996 WiFi driver's full hardware reset path. During reset, virtual interface links are freed while the device's wireless client ID table still holds pointers into them, and a subsequent cleanup step can dereference freed memory if an RCU grace period elapses in between. A local user with access to the WiFi subsystem on affected hardware could potentially trigger this race to corrupt kernel memory, leading to privilege escalation or a system crash.

Affecteddrivers/net/wireless/mediatek/mt76/mt7996/mac.c (mt76 wifi driver)

Vulnerability analysis

During a full hardware reset, the mt7996 driver iterates over active virtual interfaces and queues their non-default link structures for deferred freeing, while the device's wireless client ID array still contains pointers embedded within those links. The subsequent device reset step dereferences those pointers and runs cleanup on them; if an RCU grace period has already elapsed, the cleanup operates on freed memory. The fix reorders the reset sequence so that the device reset and wireless client ID cleanup run first, while the link structures are still valid, and only then are the links queued for freeing. This vulnerability is reachable locally on systems with MediaTek mt7996 WiFi hardware; a local user interacting with the WiFi subsystem can trigger the hardware reset path, though exploitation requires winning a narrow race window.

03

BranchIntroducedFixed inPatch commit
6.186.186.18.522b10eb3636d0
7.26.187.2.68826d7a5e2dd
mainline6.187.37e4208e9f6a8