Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 0/5] wifi: ath11k/ath12k: validate capability TLV lengths
@ 2026-10-28  5:12 Jiale Yao
  2026-10-28  5:12 ` [PATCH 1/5] wifi: ath11k: validate DMA buffer release " Jiale Yao
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Jiale Yao @ 2026-10-28  5:12 UTC (permalink / raw)
  To: Jeff Johnson, Kalle Valo, Karthikeyan Periyasamy,
	Maharaja Kennadyrajan, Miles Hu, Sathishkumar Muruganandam,
	Carl Huang, Balamurugan Selvarajan, Pradeep Kumar Chitrapu,
	Ramya Gnanasekar, Bhagavathi Perumal S, Wen Gong, Aloka Dixit,
	linux-wireless, ath11k, linux-kernel, ath12k

Several ath11k and ath12k WMI parsers count firmware TLVs and later
consume them as arrays of complete capability structures.  The generic
iterator validates that a TLV fits in its enclosing message, but these
tags have no minimum-length policies, so a short element can still cause
an out-of-bounds structure read.

Add policies for the DMA buffer release, hardware mode, DMA ring, and
extended MAC/PHY capability TLVs used by these paths.

Jiale Yao (5):
  wifi: ath11k: validate DMA buffer release TLV lengths
  wifi: ath11k: validate hardware mode capability TLVs
  wifi: ath11k: validate DMA ring capability TLVs
  wifi: ath12k: validate DMA buffer release fixed TLV length
  wifi: ath12k: validate service-ready capability TLV lengths

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

-- 
2.34.1


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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-28  5:12 [PATCH 0/5] wifi: ath11k/ath12k: validate capability TLV lengths Jiale Yao
2026-10-28  5:12 ` [PATCH 1/5] wifi: ath11k: validate DMA buffer release " Jiale Yao
2026-10-28  5:12 ` [PATCH 2/5] wifi: ath11k: validate hardware mode capability TLVs Jiale Yao
2026-10-28  5:12 ` [PATCH 3/5] wifi: ath11k: validate DMA ring " Jiale Yao
2026-10-28  5:12 ` [PATCH 4/5] wifi: ath12k: validate DMA buffer release fixed TLV length Jiale Yao
2026-10-28  5:12 ` [PATCH 5/5] wifi: ath12k: validate service-ready capability TLV lengths Jiale Yao
2026-10-28 14:55 ` [PATCH 0/5] wifi: ath11k/ath12k: validate " Jeff Johnson
2026-10-29  0:28 ` Jeff Johnson
2026-10-29  4:20   ` jiale yao

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