Skip to contentSkip to conversation

CVE-2022-49263: brcmfmac: pcie: Release firmwares in the brcmf_pcie_setup error path

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

lore
Share & tools
lore
#0 lore raw

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

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

brcmfmac: pcie: Release firmwares in the brcmf_pcie_setup error path

This avoids leaking memory if brcmf_chip_get_raminfo fails. Note that the CLM blob is released in the device remove path.

The Linux kernel CVE team has assigned CVE-2022-49263 to this issue.

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

	Issue introduced in 5.4 with commit 82f93cf46d6007ffa003b2d4a2834563b6b84d21 and fixed in 5.4.189 with commit d0ab87f8dcdfe72dc1d763be3392c1fc51a1ace2
	Issue introduced in 5.4 with commit 82f93cf46d6007ffa003b2d4a2834563b6b84d21 and fixed in 5.10.110 with commit f3820ddaf4f3ac80c7401ccc6a42e663c9317f31
	Issue introduced in 5.4 with commit 82f93cf46d6007ffa003b2d4a2834563b6b84d21 and fixed in 5.15.33 with commit a88337a06966f2d733ad9a97714b874469133f14
	Issue introduced in 5.4 with commit 82f93cf46d6007ffa003b2d4a2834563b6b84d21 and fixed in 5.16.19 with commit 4e0b507597e1a86e9b4c056ab274c427223cf8ea
	Issue introduced in 5.4 with commit 82f93cf46d6007ffa003b2d4a2834563b6b84d21 and fixed in 5.17.2 with commit 0347bdfdb1529994ac3a4cb425087c477a74eb2c
	Issue introduced in 5.4 with commit 82f93cf46d6007ffa003b2d4a2834563b6b84d21 and fixed in 5.18 with commit 5e90f0f3ead014867dade7a22f93958119f5efab

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-2022-49263

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/brcmfmac/pcie.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/d0ab87f8dcdfe72dc1d763be3392c1fc51a1ace2
	https://git.kernel.org/stable/c/f3820ddaf4f3ac80c7401ccc6a42e663c9317f31
	https://git.kernel.org/stable/c/a88337a06966f2d733ad9a97714b874469133f14
	https://git.kernel.org/stable/c/4e0b507597e1a86e9b4c056ab274c427223cf8ea
	https://git.kernel.org/stable/c/0347bdfdb1529994ac3a4cb425087c477a74eb2c
	https://git.kernel.org/stable/c/5e90f0f3ead014867dade7a22f93958119f5efab