linux/drivers/net/wireless/virtual
Ibrahim Hashimov 3dc723ac78 wifi: mac80211_hwsim: reject undersized HWSIM_ATTR_TX_INFO
hwsim_tx_info_frame_received_nl() casts the HWSIM_ATTR_TX_INFO payload
to a struct hwsim_tx_rate * and unconditionally reads
IEEE80211_TX_MAX_RATES entries (8 bytes) from it. The policy only bounds
the attribute from above (NLA_BINARY .len is a maximum) and the op sets
GENL_DONT_VALIDATE_STRICT, so a short or zero-length attribute is
accepted and the loop reads past the payload.

Require the exact length in the policy, so a malformed attribute is
rejected before the handler runs.

Signed-off-by: Ibrahim Hashimov <security@auditcode.ai>
Assisted-by: AuditCode-AI:2026.07
Link: https://patch.msgid.link/20260721115346.17236-1-security@auditcode.ai
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-07-21 14:09:21 +02:00
..
Kconfig
mac80211_hwsim_i.h wifi: mac80211_hwsim: implement NAN schedule callbacks 2026-05-06 11:41:50 +02:00
mac80211_hwsim_main.c wifi: mac80211_hwsim: reject undersized HWSIM_ATTR_TX_INFO 2026-07-21 14:09:21 +02:00
mac80211_hwsim_nan.c wifi: mac80211_hwsim: Support Tx of multicast data on NAN 2026-05-06 11:42:12 +02:00
mac80211_hwsim_nan.h wifi: mac80211_hwsim: add NAN data path TX/RX support 2026-05-06 11:41:51 +02:00
mac80211_hwsim.h wifi: mac80211_hwsim: background CAC support 2026-03-02 09:10:28 +01:00
Makefile wifi: mac80211_hwsim: split NAN handling into separate file 2026-05-05 12:10:15 +02:00
virt_wifi.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-04-02 11:03:13 -07:00