linux/drivers/net/wireless/intel/ipw2x00
Pengpeng Hou 74ed3669f2 wifi: libipw: fix key index receive bound checks
libipw_rx() reads skb->data[hdrlen + 3] to extract the WEP key index in
both the software-decrypt key selection path and the hardware-decrypted
IV/ICV strip path. In both places the existing guard only checks
skb->len >= hdrlen + 3, which proves bytes up to hdrlen + 2 but not the
byte at hdrlen + 3.

Require hdrlen + 4 bytes before reading that item in both paths. This is
a local source-boundary check only; it does not change the key index
semantics.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260705083519.23567-1-pengpeng@iscas.ac.cn
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-07-06 14:11:09 +02:00
..
ipw.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ipw2100.c wifi: ipw2100: fix potential memory leak in ipw2100_pci_init_one() 2026-07-06 14:11:06 +02:00
ipw2100.h wifi: remove iw_public_data from struct net_device 2024-10-08 21:53:40 +02:00
ipw2200.c net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
ipw2200.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-10-31 18:10:07 -07:00
Kconfig wifi: ipw2x00: Use michael_mic() from cfg80211 2026-04-08 08:55:16 +02:00
libipw_crypto_ccmp.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
libipw_crypto_tkip.c wifi: ipw2x00: Use michael_mic() from cfg80211 2026-04-08 08:55:16 +02:00
libipw_crypto_wep.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
libipw_crypto.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
libipw_geo.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 507 2019-06-19 17:11:23 +02:00
libipw_module.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
libipw_rx.c wifi: libipw: fix key index receive bound checks 2026-07-06 14:11:09 +02:00
libipw_spy.c wifi: remove iw_public_data from struct net_device 2024-10-08 21:53:40 +02:00
libipw_tx.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
libipw_wx.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
libipw.h wifi: ipw2x00: Remove unused libipw_rx_any() 2025-01-28 20:15:05 +02:00
Makefile wifi: wext/libipw: move spy implementation to libipw 2024-10-08 21:53:18 +02:00