CVE-2026-98190: wifi: wilc1000: fix out-of-bounds read in P2P public action frames
In the Linux kernel, the following vulnerability has been resolved:
wifi: wilc1000: fix out-of-bounds read in P2P public action frames
wilcwfip2prx() and mgmttx() start parsing a frame once ieee80211ispublicaction() returns true. That helper only verifies the frame is long enough for the action category field, that is offsetofend(struct ieee80211mgmt, u.action.category), 25 bytes. Both functions then read the P2P public action header up to ouisubtype at offset 30 and pass "size - ieoffset" to cfg80211findvendorie(), where ieoffset is offsetof(struct ieee80211mgmt, u) + sizeof(d), i.e. 32.
A public action frame of 25 to 31 bytes passes the check but is shorter than that 32 byte header, so ouisubtype can be read out of bounds, and because the length is unsigned, "size - ieoffset" underflows to a value close to 4 GiB. cfg80211findvendorie() takes an unsigned int length, so even the sizet subtraction in mgmttx() is truncated to the same value. It then walks far past the buffer searching for a vendor element until it reaches unmapped memory.
In the receive path the frame arrives over the air and needs no association, so a nearby unauthenticated device can crash the host while it is in P2P listen. Reject frames shorter than the P2P public action header in both paths before dereferencing it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In wilc_wfi_p2p_rx() and mgmt_tx(), reject P2P public action frames shorter than the 32-byte header and validate the complete P2P public action header before dereferencing it.