Skip to contentSkip to conversation

CVE-2026-98190: wifi: wilc1000: fix out-of-bounds read in P2P public action frames

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

wifi: wilc1000: fix out-of-bounds read in P2P public action frames

wilc_wfi_p2p_rx() and mgmt_tx() start parsing a frame once ieee80211_is_public_action() returns true. That helper only verifies the frame is long enough for the action category field, that is offsetofend(struct ieee80211_mgmt, u.action.category), 25 bytes. Both functions then read the P2P public action header up to oui_subtype at offset 30 and pass "size - ie_offset" to cfg80211_find_vendor_ie(), where ie_offset is offsetof(struct ieee80211_mgmt, 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 oui_subtype can be read out of bounds, and because the length is unsigned, "size - ie_offset" underflows to a value close to 4 GiB. cfg80211_find_vendor_ie() takes an unsigned int length, so even the size_t subtraction in mgmt_tx() 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.

The Linux kernel CVE team has assigned CVE-2026-98190 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 5.10.271 with commit e98ad9f4c59f2e836f8d971b57763a4277680422
	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 5.15.222 with commit f0c46f8111a479b97b8ab17747c528cade6257f1
	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 6.1.189 with commit a5b827dad8a3037cef04d0240d1c2acb1557101e
	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 6.6.158 with commit 491df93b10d76aebaf6aa4bb05a6ba897f4fccfb
	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 6.12.112 with commit cc2ee642ebeac8699b671ddb6d5955a785e5ff43
	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 6.18.54 with commit 68b786691ce24c5c94e28811db243e573c50f9c1
	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 7.2.8 with commit 6fbe76eb2796d2aee45cc6a2dd16e85d3cc96304
	Issue introduced in 5.7 with commit 4fb8b5aa2a1126783ae00bae544d6f3c519408ef and fixed in 7.3-rc4 with commit ba6cb7c0868a412c2eb68e8efd5aa38bfb258a14

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98190

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/net/wireless/microchip/wilc1000/cfg80211.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/e98ad9f4c59f2e836f8d971b57763a4277680422
	https://git.kernel.org/stable/c/f0c46f8111a479b97b8ab17747c528cade6257f1
	https://git.kernel.org/stable/c/a5b827dad8a3037cef04d0240d1c2acb1557101e
	https://git.kernel.org/stable/c/491df93b10d76aebaf6aa4bb05a6ba897f4fccfb
	https://git.kernel.org/stable/c/cc2ee642ebeac8699b671ddb6d5955a785e5ff43
	https://git.kernel.org/stable/c/68b786691ce24c5c94e28811db243e573c50f9c1
	https://git.kernel.org/stable/c/6fbe76eb2796d2aee45cc6a2dd16e85d3cc96304
	https://git.kernel.org/stable/c/ba6cb7c0868a412c2eb68e8efd5aa38bfb258a14