CVE-2026-139502: wifi: mt76: check the owner of a remain-on-channel request
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: check the owner of a remain-on-channel request
mvif->rocphy points to the phy of the request that started last for the interface. That request can end, and the phy can start a request for a different interface. The driver does not always clear the pointer.
Two callers trust the pointer:
- mt76vifcleanup() aborts the request on that phy when the driver removes the interface. - mt76cancelremainonchannel() aborts the request on that phy for the interface.
If the phy holds a request for a different interface, both callers abort the wrong request. The request of the interface stays active. Its work then runs after the driver removes the interface. The work tears the link down through the freed bssconf.
Compare phy->rocvif with the interface in both callers before the abort.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the mt76 driver, compare `phy->roc_vif` with the interface in both `mt76_cancel_remain_on_channel()` and `mt76_vif_cleanup()` before aborting the remain-on-channel request.
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The affected mt76 driver must have remain-on-channel requests involving different interfaces on the same PHY. A request for one interface must end and be followed by a request for another interface while the first interface retains a stale roc_phy pointer; later interface cleanup or cancellation can then abort the other interface's request.
What is the consequence if the stale request is not handled correctly?
The original interface's remain-on-channel request can stay active after that interface is removed. Its later work may tear down a link through a freed bss_conf, creating a use-after-free condition.
How can administrators determine whether their kernel includes the fix?
Check whether the kernel source or applied stable patches include any of the referenced commits: 991a458d9848d33f814abbe0f6e85ac925c4c895, 29035e4450d7d2f6bfec428d0e548baaef40b6a5, or d6173b8b36e5cefc7cce34c31a0cc63fb3bd77f4. The fix verifies that phy->roc_vif matches the interface before aborting a remain-on-channel request.