* [PATCH v2] wifi: ath9k: fix OOB access from firmware tx status queue ID
@ 2026-04-15 22:23 Tristan Madani
2026-04-16 19:15 ` Toke Høiland-Jørgensen
2026-04-30 21:30 ` Jeff Johnson
0 siblings, 2 replies; 5+ messages in thread
From: Tristan Madani @ 2026-04-15 22:23 UTC (permalink / raw)
To: Toke Hoiland-Jorgensen; +Cc: Johannes Berg, linux-wireless, linux-kernel
From: Tristan Madani <tristan@talencesecurity.com>
ath_tx_edma_tasklet() accesses sc->tx.txq[ts.qid] where ts.qid is a
4-bit hardware field (0-15), but the txq array only has
ATH9K_NUM_TX_QUEUES (10) entries. A qid >= 10 causes an OOB array
access.
Add a bounds check on ts.qid before using it as an array index.
Fixes: fce041beb03f ("ath9k: unify edma and non-edma tx code, improve tx fifo handling")
Signed-off-by: Tristan Madani <tristan@talencesecurity.com>
---
Note: v2 resubmission -- original sent via Gmail had HTML rendering
issues. This version uses git send-email for plain-text formatting.
drivers/net/wireless/ath/ath9k/xmit.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index XXXXXXX..XXXXXXX 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -2755,6 +2755,11 @@ static void ath_tx_edma_tasklet(struct ath_softc *sc)
continue;
}
+ if (ts.qid >= ATH9K_NUM_TX_QUEUES) {
+ ath_dbg(common, XMIT, "invalid qid %d\n", ts.qid);
+ continue;
+ }
+
txq = &sc->tx.txq[ts.qid];
ath_txq_lock(sc, txq);
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v2] wifi: ath9k: fix OOB access from firmware tx status queue ID
2026-04-15 22:23 [PATCH v2] wifi: ath9k: fix OOB access from firmware tx status queue ID Tristan Madani
@ 2026-04-16 19:15 ` Toke Høiland-Jørgensen
2026-04-30 21:30 ` Jeff Johnson
1 sibling, 0 replies; 5+ messages in thread
From: Toke Høiland-Jørgensen @ 2026-04-16 19:15 UTC (permalink / raw)
To: Tristan Madani; +Cc: Johannes Berg, linux-wireless, linux-kernel
Tristan Madani <tristmd@gmail.com> writes:
> From: Tristan Madani <tristan@talencesecurity.com>
>
> ath_tx_edma_tasklet() accesses sc->tx.txq[ts.qid] where ts.qid is a
> 4-bit hardware field (0-15), but the txq array only has
> ATH9K_NUM_TX_QUEUES (10) entries. A qid >= 10 causes an OOB array
> access.
>
> Add a bounds check on ts.qid before using it as an array index.
>
> Fixes: fce041beb03f ("ath9k: unify edma and non-edma tx code, improve tx fifo handling")
> Signed-off-by: Tristan Madani <tristan@talencesecurity.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v2] wifi: ath9k: fix OOB access from firmware tx status queue ID
2026-04-15 22:23 [PATCH v2] wifi: ath9k: fix OOB access from firmware tx status queue ID Tristan Madani
2026-04-16 19:15 ` Toke Høiland-Jørgensen
@ 2026-04-30 21:30 ` Jeff Johnson
2026-05-04 18:40 ` Tristan Madani
1 sibling, 1 reply; 5+ messages in thread
From: Jeff Johnson @ 2026-04-30 21:30 UTC (permalink / raw)
To: Toke Hoiland-Jorgensen, Tristan Madani
Cc: Johannes Berg, linux-wireless, linux-kernel
On Wed, 15 Apr 2026 22:23:43 +0000, Tristan Madani wrote:
> ath_tx_edma_tasklet() accesses sc->tx.txq[ts.qid] where ts.qid is a
> 4-bit hardware field (0-15), but the txq array only has
> ATH9K_NUM_TX_QUEUES (10) entries. A qid >= 10 causes an OOB array
> access.
>
> Add a bounds check on ts.qid before using it as an array index.
>
> [...]
Applied, thanks!
[1/1] wifi: ath9k: fix OOB access from firmware tx status queue ID
commit: 7ce2f118a2389e8f0a64068c6fe7cc7d40639be0
Best regards,
--
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-05-05 18:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 22:23 [PATCH v2] wifi: ath9k: fix OOB access from firmware tx status queue ID Tristan Madani
2026-04-16 19:15 ` Toke Høiland-Jørgensen
2026-04-30 21:30 ` Jeff Johnson
2026-05-04 18:40 ` Tristan Madani
2026-05-05 18:21 ` Jeff Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox