All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-138885: wifi: mt76: take rcu_read_lock in the USB/SDIO tx completion path
@ 2026-11-30 13:26 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-30 13:26 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

wifi: mt76: take rcu_read_lock in the USB/SDIO tx completion path

The USB and SDIO completion path reads a station pointer that RCU
protects, without holding the read lock. Lockdep catches it on the
first association:

  mt76.h:1305 suspicious rcu_dereference_check() usage!
  no locks held by mt76-usb-status/1254.
   mt7925_usb_sdio_tx_complete_skb+0x119/0x130 [mt7925_common]
   mt76_queue_tx_complete+0x27/0x60 [mt76]
   mt76u_status_worker+0xed/0x1e0 [mt76_usb]

  mt7925/mac.c:856 suspicious rcu_dereference_check() usage!
   mt7925_tx_check_aggr.part.0+0xc2/0xe0 [mt7925_common]
   mt7925_usb_sdio_tx_complete_skb+0xa0/0x130 [mt7925_common]

mt7921 does the same, and warns once instead of twice because its
aggregation check reads the default link directly. The DMA path makes
the same reads but completes from softirq, so it stays quiet.

Take the read lock around the lookup and the check.

Tested on 7.2-rc5 with lockdep, fresh module load per arm, 4000
packets each and no change to the link:

                             splats before   after
    MT7925  Netgear A9000          2           0
    MT7921  Alfa                   1           0
    mt7921e same kernel            0           0

The Linux kernel CVE team has assigned CVE-2026-138885 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.12.46 with commit a001c2f6a40c162f59059156b74c3831fb201ea2 and fixed in 6.12.120 with commit fa99f662158801704628e0e4efc825c9b5b77b64
	Issue introduced in 6.16 with commit dc66a129adf1f25e944d0b93cd2df2ee0f0bd4d6 and fixed in 6.18.64 with commit 104acda59872786902ef4b40e50b0795bea45551
	Issue introduced in 6.16 with commit dc66a129adf1f25e944d0b93cd2df2ee0f0bd4d6 and fixed in 7.3.4 with commit e31af818bf5bc66b2d170a4ed9c28175890c8f7b
	Issue introduced in 6.16 with commit dc66a129adf1f25e944d0b93cd2df2ee0f0bd4d6 and fixed in 7.4-rc1 with commit a7871a7ae5a8625f0ba0a89454ac734c383dd538

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-138885
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/net/wireless/mediatek/mt76/mt7921/mac.c
	drivers/net/wireless/mediatek/mt76/mt7925/mac.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/fa99f662158801704628e0e4efc825c9b5b77b64
	https://git.kernel.org/stable/c/104acda59872786902ef4b40e50b0795bea45551
	https://git.kernel.org/stable/c/e31af818bf5bc66b2d170a4ed9c28175890c8f7b
	https://git.kernel.org/stable/c/a7871a7ae5a8625f0ba0a89454ac734c383dd538

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:26 CVE-2026-138885: wifi: mt76: take rcu_read_lock in the USB/SDIO tx completion path Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.