Skip to contentSkip to conversation

CVE-2024-58014: wifi: brcmsmac: add gain range check to wlc_phy_iqcal_gainparams_nphy()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 27, 2025

lore
Share & tools
lore
#0 lore raw

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

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

wifi: brcmsmac: add gain range check to wlc_phy_iqcal_gainparams_nphy()

In 'wlc_phy_iqcal_gainparams_nphy()', add gain range check to WARN() instead of possible out-of-bounds 'tbl_iqcal_gainparams_nphy' access. Compile tested only.

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

The Linux kernel CVE team has assigned CVE-2024-58014 to this issue.

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

	Fixed in 6.1.129 with commit ada9df08b3ef683507e75b92f522fb659260147f
	Fixed in 6.6.78 with commit 093286c33409bf38896f2dab0c0bb6ca388afb33
	Fixed in 6.12.14 with commit c27ce584d274f6ad3cba2294497de824a3c66646
	Fixed in 6.13.3 with commit 6f6e293246dc1f5b2b6b3d0f2d757598489cda79
	Fixed in 6.14-rc1 with commit 3f4a0948c3524ae50f166dbc6572a3296b014e62

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-2024-58014

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/phy/phy_n.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/ada9df08b3ef683507e75b92f522fb659260147f
	https://git.kernel.org/stable/c/093286c33409bf38896f2dab0c0bb6ca388afb33
	https://git.kernel.org/stable/c/c27ce584d274f6ad3cba2294497de824a3c66646
	https://git.kernel.org/stable/c/6f6e293246dc1f5b2b6b3d0f2d757598489cda79
	https://git.kernel.org/stable/c/3f4a0948c3524ae50f166dbc6572a3296b014e62