wifi: libipw: reject too-short beacon and probe responses
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b453872c35cfcbdbf5a794737817f7d4e7b1b579 · < 2c87bbc00dc93149d1dc4f803ad92d92e4ef3758| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: libipw: reject too-short beacon and probe responses
libipw_process_probe_response() and the libipw_network_init() call it makes assume the frame contains the full 36-byte beacon and probe response prefix, but the ipw2100 and ipw2200 receive paths only establish that a management frame carries the generic 24-byte three-address header.
libipw_network_init() then computes the information element length as
stats->len - sizeof(*beacon)
stats->len is a u16 and sizeof() has type size_t, so the subtraction is evaluated as size_t and wraps instead of going negative. Truncating that to the u16 length parameter of libipw_parse_info_param() yields 65524 for a 24-byte beacon, and the parser then walks the receive buffer as if it held almost 64 KiB of information elements, reading past the allocation.
Reject the frame before any fixed field is touched.
Found by an AI-assisted review of length arithmetic in management frame parsers. Verified with a KUnit case under Generic KASAN on arm64 under QEMU; I do not have the hardware, so it is not tested on a real device.
From the CVE record · Linux
The Linux kernel's libipw code accepts beacon and probe response frames shorter than the required 36-byte prefix. A short frame received through the ipw2100 or ipw2200 path can cause an out-of-bounds read. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with libipw and the ipw2100 or ipw2200 receive paths should check their exposure; affected versions are not specified.