From: Maoyi Xie <maoyixie.tju@gmail.com>
To: Felix Fietkau <nbd@nbd.name>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Ryder Lee <ryder.lee@mediatek.com>
Cc: Shayne Chen <shayne.chen@mediatek.com>,
Sean Wang <sean.wang@mediatek.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
linux-wireless@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: [PATCH mt76 0/3] wifi: mt76: bound the TXS walk by the head buffer in three drivers
Date: Wed, 2 Dec 2026 09:01:27 +0800 [thread overview]
Message-ID: <20261202010130.442099-1-maoyixie.tju@gmail.com> (raw)
This is the same fix as the mt7921 and mt7925 patches at [1] and [2],
for mt7603, mt7915 and mt7996.
Found with a CodeQL-based static analysis tool that we are developing.
Each case was reproduced in a userspace harness under AddressSanitizer.
Not tested on hardware. Compile-tested with W=1 on the mt76 tree.
I used an LLM to help write the harnesses and these patches.
[1] https://lore.kernel.org/linux-wireless/20261129193131.3367661-17-nbd@nbd.name/
[2] https://lore.kernel.org/linux-wireless/20261129193131.3367661-18-nbd@nbd.name/
Maoyi Xie (3):
wifi: mt76: mt7603: fix out-of-bounds read in mt7603_mac_add_txs
wifi: mt76: mt7915: fix out-of-bounds read in mt7915_mac_add_txs
wifi: mt76: mt7996: fix out-of-bounds read in mt7996_mac_add_txs
drivers/net/wireless/mediatek/mt76/mt7603/dma.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--
2.34.1
next reply other threads:[~2026-12-02 1:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 1:01 Maoyi Xie [this message]
2026-12-02 1:01 ` [PATCH mt76 1/3] wifi: mt76: mt7603: fix out-of-bounds read in mt7603_mac_add_txs Maoyi Xie
2026-12-02 1:01 ` [PATCH mt76 2/3] wifi: mt76: mt7915: fix out-of-bounds read in mt7915_mac_add_txs Maoyi Xie
2026-12-02 1:01 ` [PATCH mt76 3/3] wifi: mt76: mt7996: fix out-of-bounds read in mt7996_mac_add_txs Maoyi Xie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202010130.442099-1-maoyixie.tju@gmail.com \
--to=maoyixie.tju@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
--cc=shayne.chen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox