Skip to contentSkip to conversation

CVE-2026-98185: wifi: mwifiex: validate scan response extents

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: mwifiex: validate scan response extents

mwifiex_ret_802_11_scan() subtracts the fixed response fields and the firmware-provided BSS length from resp->size without first proving that either extent fits. A short response or oversized BSS length can therefore underflow tlv_buf_size and make the TLV parser walk beyond the command response.

Compute the fixed extent from the selected normal or background scan response. Validate that the fixed fields and BSS data fit before deriving the TLV extent and entering the parser.

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

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

	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 5.10.271 with commit 25217c5f6ce0bf3004f80c129464cd35fe9a420f
	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 5.15.222 with commit 48312f0085aa1577d6d41af2a079b34de17c1a57
	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 6.1.189 with commit dccf5ecaad4d8d43c545921f20328e8f91af8698
	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 6.6.158 with commit c4943323fda22ef27bb6479b9d328ae48c63f64c
	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 6.12.112 with commit cb0008480ed7d5cf76f3ad9668a91bbb7d0b4417
	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 6.18.54 with commit 9cff2f39ed38a32070b08364c4c9346e85b8f9ec
	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 7.2.8 with commit 7106ad8b74f50cca1ef36131f327d2c78f556daa
	Issue introduced in 3.0 with commit 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e and fixed in 7.3-rc4 with commit 3687d7d48070838cc2953431b3a27717cab0aaf6

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-98185

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/marvell/mwifiex/scan.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/25217c5f6ce0bf3004f80c129464cd35fe9a420f
	https://git.kernel.org/stable/c/48312f0085aa1577d6d41af2a079b34de17c1a57
	https://git.kernel.org/stable/c/dccf5ecaad4d8d43c545921f20328e8f91af8698
	https://git.kernel.org/stable/c/c4943323fda22ef27bb6479b9d328ae48c63f64c
	https://git.kernel.org/stable/c/cb0008480ed7d5cf76f3ad9668a91bbb7d0b4417
	https://git.kernel.org/stable/c/9cff2f39ed38a32070b08364c4c9346e85b8f9ec
	https://git.kernel.org/stable/c/7106ad8b74f50cca1ef36131f327d2c78f556daa
	https://git.kernel.org/stable/c/3687d7d48070838cc2953431b3a27717cab0aaf6