Skip to contentSkip to conversation

CVE-2026-98887: wifi: mac80211_hwsim: reject undersized HWSIM_ATTR_TX_INFO

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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: mac80211_hwsim: reject undersized HWSIM_ATTR_TX_INFO

hwsim_tx_info_frame_received_nl() casts the HWSIM_ATTR_TX_INFO payload to a struct hwsim_tx_rate * and unconditionally reads IEEE80211_TX_MAX_RATES entries (8 bytes) from it. The policy only bounds the attribute from above (NLA_BINARY .len is a maximum) and the op sets GENL_DONT_VALIDATE_STRICT, so a short or zero-length attribute is accepted and the loop reads past the payload.

Require the exact length in the policy, so a malformed attribute is rejected before the handler runs.

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

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

	Fixed in 5.10.271 with commit 3a96bb65b4b820d8b41fa155781ec1c29e3479d4
	Fixed in 5.15.222 with commit 59e1f2a0242232b4a3af144ae317d3913fc09046
	Fixed in 6.1.189 with commit 1ae85bb34fe3510659b86d6a5f8036dd498233f8
	Fixed in 6.6.158 with commit 6f6368b20f8c9481fa7ba7b672dcb3c9f36b2695
	Fixed in 6.12.111 with commit b5b1234bbfa25537fb9a5c0d62c328ed4547f721
	Fixed in 6.18.53 with commit 13edd8ea7ff2ce6a964b290ef2034cd8cbed96c7
	Fixed in 7.2 with commit 3dc723ac78a6e4fa0fd49e27e487ed319da40a9f

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

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/virtual/mac80211_hwsim_main.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/3a96bb65b4b820d8b41fa155781ec1c29e3479d4
	https://git.kernel.org/stable/c/59e1f2a0242232b4a3af144ae317d3913fc09046
	https://git.kernel.org/stable/c/1ae85bb34fe3510659b86d6a5f8036dd498233f8
	https://git.kernel.org/stable/c/6f6368b20f8c9481fa7ba7b672dcb3c9f36b2695
	https://git.kernel.org/stable/c/b5b1234bbfa25537fb9a5c0d62c328ed4547f721
	https://git.kernel.org/stable/c/13edd8ea7ff2ce6a964b290ef2034cd8cbed96c7
	https://git.kernel.org/stable/c/3dc723ac78a6e4fa0fd49e27e487ed319da40a9f