linux/drivers/net/wireless/silabs/wfx
Aamir Ahmed ce67ebe9d8 wifi: wfx: validate MIB read length before copying to caller
wfx_hif_read_mib() copies reply->length bytes from the firmware
response into the caller-provided buffer without checking that
reply->length does not exceed val_len. A firmware response with
a length field larger than expected overruns the caller buffer and
reads past the end of the reply allocation.

Replace the dead -ENOMEM check with an active validation that
reply->length fits within val_len before the memcpy.

Fixes: f95a29d407 ("staging: wfx: add HIF commands helpers")
Assisted-by: LLM
Signed-off-by: Aamir Ahmed <elb12345@hotmail.co.uk>
Link: https://patch.msgid.link/AS8P251MB000155034FC391A2A54B9803C8BD2@AS8P251MB0001.EURP251.PROD.OUTLOOK.COM
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-21 14:37:37 +02:00
..
bh.c
bh.h
bus_sdio.c wifi: wfx: allow to enable WoWLAN using NL80211 2025-03-07 09:24:22 +01:00
bus_spi.c wifi: wfx: allow to enable WoWLAN using NL80211 2025-03-07 09:24:22 +01:00
bus.h wifi: wfx: allow to enable WoWLAN using NL80211 2025-03-07 09:24:22 +01:00
data_rx.c wifi: move action code from per-type frame structs 2026-03-06 10:36:26 +01:00
data_rx.h
data_tx.c wifi: wfx: fix case where rates are out of order 2023-10-09 09:54:14 +03:00
data_tx.h wifi: wfx: allow to send frames during ROC 2023-10-09 09:53:07 +03:00
debug.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
debug.h
fwio.c kernel.h: drop hex.h and update all hex.h users 2026-01-20 19:44:19 -08:00
fwio.h
hif_api_cmd.h
hif_api_general.h
hif_api_mib.h
hif_rx.c
hif_rx.h
hif_tx_mib.c
hif_tx_mib.h
hif_tx.c wifi: wfx: validate MIB read length before copying to caller 2026-09-21 14:37:37 +02:00
hif_tx.h wifi: wfx: introduce hif_scan_uniq() 2023-10-09 09:53:07 +03:00
hwio.c
hwio.h
Kconfig
key.c wfx: use container_of() to get vif 2022-05-11 08:32:57 +03:00
key.h
main.c wifi: wfx: add WQ_PERCPU to alloc_workqueue users 2025-11-20 10:25:46 +01:00
main.h
Makefile
queue.c wifi: wfx: allow to send frames during ROC 2023-10-09 09:53:07 +03:00
queue.h wifi: wfx: allow to send frames during ROC 2023-10-09 09:53:07 +03:00
scan.c wifi: wfx: implement wfx_remain_on_channel() 2023-10-09 09:53:08 +03:00
scan.h wifi: wfx: implement wfx_remain_on_channel() 2023-10-09 09:53:08 +03:00
sta.c wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
sta.h wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
traces.h
wfx.h wifi: wfx: implement wfx_remain_on_channel() 2023-10-09 09:53:08 +03:00