CVE-2024-38575

wifi: brcmfmac: pcie: handle randbuf allocation failure

MEDIUM
5.5
CVSS Score
Published: June 19, 2024 at 01:37 PM UTC
Updated: June 17, 2026 at 07:40 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: pcie: handle randbuf allocation failure The kzalloc() in brcmf_pcie_download_fw_nvram() will return null if the physical memory has run out. As a result, if we use get_random_bytes() to generate random bytes in the randbuf, the null pointer dereference bug will happen. In order to prevent allocation failure, this patch adds a separate function using buffer on kernel stack to generate random bytes in the randbuf, which could prevent the kernel stack from overflow.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.3.46.1.30 ≤ v < 6.1.936.3.4 ≤ v < 6.46.3.4 ≤ v < 6.6.336.4 ≤ v < 6.106.4 ≤ v < 6.6.336.4 ≤ v < 6.8.126.4 ≤ v < 6.9.36.7 ≤ v < 6.8.126.9 ≤ v < 6.9.36.1.306.3.46.491918ce88d9fef408bb12c46a27c73d79b604c20ba72baed066f3bfa8b489e4b58f1fcaf51c04f83c35105f375b530bc27e03ea9250b1c26dd4cae86
Vendor states this is fixed in 0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49 (fixed)
Vendor states this is fixed in 316f790ebcf94bdf59f794b7cdea4068dc676d4c (fixed)
Vendor states this is fixed in 3729ca9e48d19a03ae049e2bde510e161c2f3720 (fixed)
Vendor states this is fixed in 7c15eb344b0d4d3468c9b2a7591ad2b859b29b88 (fixed)
Vendor states this is fixed in c37466406f075476c2702ecc01917928af871f3b (fixed)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.4 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.8.12 (unaffected)
Vendor states this is fixed in 6.9.3 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card