mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] wifi: ath11k/ath12k: validate firmware array lengths
@ 2026-10-19 10:00 Jiale Yao
  2026-10-19 10:00 ` [PATCH 1/4] wifi: ath11k: validate extended regulatory capability count Jiale Yao
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jiale Yao @ 2026-10-19 10:00 UTC (permalink / raw)
  To: Jeff Johnson, Manikanta Pubbisetty, Sathishkumar Muruganandam,
	Anilkumar Kolli, John Crispin, Kalle Valo, P Praneesh,
	Balamurugan Selvarajan, Karthikeyan Periyasamy,
	Vasanthakumar Thiagarajan, linux-wireless, ath11k, linux-kernel,
	ath12k
  Cc: Jiale Yao

From: Jiale Yao <jiale.yao@example.com>

ath11k and ath12k consume two firmware-provided arrays without fully
validating their lengths. The service-ready-ext parser accepts fewer
extended regulatory capability entries than the separately reported PHY
count, while the ready-event parser trusts the reported extra MAC address
count without checking the fixed-structure array length.

Malformed firmware data can therefore make both drivers read beyond the
corresponding TLV arrays. Add matching validation to each driver before
the arrays are indexed.

The four patches are independent and each addresses one parsing path in
one driver.

Jiale Yao (4):
  wifi: ath11k: validate extended regulatory capability count
  wifi: ath12k: validate extended regulatory capability count
  wifi: ath11k: validate ready event MAC address array length
  wifi: ath12k: validate ready event MAC address array length

 drivers/net/wireless/ath/ath11k/wmi.c | 10 ++++++++++
 drivers/net/wireless/ath/ath12k/wmi.c | 10 ++++++++++
 2 files changed, 20 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/4] wifi: ath11k/ath12k: validate firmware array lengths
@ 2026-10-19 10:05 Jiale Yao
  2026-10-19 10:05 ` [PATCH 2/4] wifi: ath12k: validate extended regulatory capability count Jiale Yao
  0 siblings, 1 reply; 7+ messages in thread
From: Jiale Yao @ 2026-10-19 10:05 UTC (permalink / raw)
  To: Jeff Johnson, Shashidhar Lakkavalli, kbuild test robot,
	Anilkumar Kolli, Govindaraj Saminathan, Julia Lawall,
	Vasanthakumar Thiagarajan, Bhagavathi Perumal S,
	Balamurugan Selvarajan, Karthikeyan Periyasamy, Baochen Qiang,
	linux-wireless, ath11k, linux-kernel, ath12k
  Cc: Jiale Yao

ath11k and ath12k consume two firmware-provided arrays without fully
validating their lengths. The service-ready-ext parser accepts fewer
extended regulatory capability entries than the separately reported PHY
count, while the ready-event parser trusts the reported extra MAC address
count without checking the fixed-structure array length.

Malformed firmware data can therefore make both drivers read beyond the
corresponding TLV arrays. Add matching validation to each driver before
the arrays are indexed.

The four patches are independent and each addresses one parsing path in
one driver.

Jiale Yao (4):
  wifi: ath11k: validate extended regulatory capability count
  wifi: ath12k: validate extended regulatory capability count
  wifi: ath11k: validate ready event MAC address array length
  wifi: ath12k: validate ready event MAC address array length

 drivers/net/wireless/ath/ath11k/wmi.c | 10 ++++++++++
 drivers/net/wireless/ath/ath12k/wmi.c | 10 ++++++++++
 2 files changed, 20 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-20  2:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 10:00 [PATCH 0/4] wifi: ath11k/ath12k: validate firmware array lengths Jiale Yao
2026-10-19 10:00 ` [PATCH 1/4] wifi: ath11k: validate extended regulatory capability count Jiale Yao
2026-10-19 10:00 ` [PATCH 2/4] wifi: ath12k: " Jiale Yao
2026-10-19 10:00 ` [PATCH 3/4] wifi: ath11k: validate ready event MAC address array length Jiale Yao
2026-10-19 10:00 ` [PATCH 4/4] wifi: ath12k: " Jiale Yao
2026-10-20  2:19 ` Re:[PATCH 0/4] wifi: ath11k/ath12k: validate firmware array lengths jiale yao
2026-10-19 10:05 [PATCH " Jiale Yao
2026-10-19 10:05 ` [PATCH 2/4] wifi: ath12k: validate extended regulatory capability count Jiale Yao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®