Skip to contentSkip to conversation

CVE-2026-31661: wifi: brcmsmac: Fix dma_free_coherent() size

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

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: brcmsmac: Fix dma_free_coherent() size

dma_alloc_consistent() may change the size to align it. The new size is saved in alloced.

Change the free size to match the allocation size.

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

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

	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 5.10.253 with commit f449676bab54fea1440775c8c915dadb323fe015
	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 5.15.203 with commit 3c204a0fd079fa7a867151a47d830ad1c2db5177
	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 6.1.169 with commit 0f87777b74bcce29b966ec42d9aa8f9edd9b1667
	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 6.6.135 with commit 4bf41c2731a0549e21f66180ff780b1e036639ab
	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 6.12.82 with commit 77263f053963dea9f3962505ac0c768853d7dc59
	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 6.18.23 with commit b27fa888e4a426a3bcf6f6ab24701d888d9bf5aa
	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 6.19.13 with commit 01f1330d3d1bee07e0c42d40cc48b7be8b6dad84
	Issue introduced in 3.2 with commit 5b435de0d786869c95d1962121af0d7df2542009 and fixed in 7.0 with commit 12cd7632757a54ce586e36040210b1a738a0fc53

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

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/broadcom/brcm80211/brcmsmac/dma.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/f449676bab54fea1440775c8c915dadb323fe015
	https://git.kernel.org/stable/c/3c204a0fd079fa7a867151a47d830ad1c2db5177
	https://git.kernel.org/stable/c/0f87777b74bcce29b966ec42d9aa8f9edd9b1667
	https://git.kernel.org/stable/c/4bf41c2731a0549e21f66180ff780b1e036639ab
	https://git.kernel.org/stable/c/77263f053963dea9f3962505ac0c768853d7dc59
	https://git.kernel.org/stable/c/b27fa888e4a426a3bcf6f6ab24701d888d9bf5aa
	https://git.kernel.org/stable/c/01f1330d3d1bee07e0c42d40cc48b7be8b6dad84
	https://git.kernel.org/stable/c/12cd7632757a54ce586e36040210b1a738a0fc53