Skip to contentSkip to conversation

CVE-2026-31779: wifi: iwlwifi: mvm: fix potential out-of-bounds read in iwl_mvm_nd_match_info_handler()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

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: iwlwifi: mvm: fix potential out-of-bounds read in iwl_mvm_nd_match_info_handler()

The memcpy function assumes the dynamic array notif->matches is at least as large as the number of bytes to copy. Otherwise, results->matches may contain unwanted data. To guarantee safety, extend the validation in one of the checks to ensure sufficient packet length.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

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

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

	Issue introduced in 6.1 with commit 5ac54afd4d97ad8d94fe250c83b1924eb6d2268c and fixed in 6.1.168 with commit f6abac936a0dfd31d6c3e49205ec0ee75a8f887f
	Issue introduced in 6.1 with commit 5ac54afd4d97ad8d94fe250c83b1924eb6d2268c and fixed in 6.6.134 with commit ffbed27ba15ef80d1c622eeedbfef03e501ae134
	Issue introduced in 6.1 with commit 5ac54afd4d97ad8d94fe250c83b1924eb6d2268c and fixed in 6.12.81 with commit e67d8c626ace80b0fa2b48c8ec0a46b508c93442
	Issue introduced in 6.1 with commit 5ac54afd4d97ad8d94fe250c83b1924eb6d2268c and fixed in 6.18.22 with commit dd90880eb5ec5442b37eb2b95688f4a63f4883e3
	Issue introduced in 6.1 with commit 5ac54afd4d97ad8d94fe250c83b1924eb6d2268c and fixed in 6.19.12 with commit ca0e9491b98ca4c5b44204b0b3dd8062a3b5fba2
	Issue introduced in 6.1 with commit 5ac54afd4d97ad8d94fe250c83b1924eb6d2268c and fixed in 7.0 with commit 744fabc338e87b95c4d1ff7c95bc8c0f834c6d99

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

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/intel/iwlwifi/mvm/d3.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/f6abac936a0dfd31d6c3e49205ec0ee75a8f887f
	https://git.kernel.org/stable/c/ffbed27ba15ef80d1c622eeedbfef03e501ae134
	https://git.kernel.org/stable/c/e67d8c626ace80b0fa2b48c8ec0a46b508c93442
	https://git.kernel.org/stable/c/dd90880eb5ec5442b37eb2b95688f4a63f4883e3
	https://git.kernel.org/stable/c/ca0e9491b98ca4c5b44204b0b3dd8062a3b5fba2
	https://git.kernel.org/stable/c/744fabc338e87b95c4d1ff7c95bc8c0f834c6d99