CVE-2024-38575

wifi: brcmfmac: pcie: handle randbuf allocation failure

No CVSS score yet EPSS 0.22%

Published 19 Jun 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-38575

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38575 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 20 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c35105f375b530bc27e03ea9250b1c26dd4cae86, before 0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49
affected from 91918ce88d9fef408bb12c46a27c73d79b604c20, before c37466406f075476c2702ecc01917928af871f3b
affected from 91918ce88d9fef408bb12c46a27c73d79b604c20, before 7c15eb344b0d4d3468c9b2a7591ad2b859b29b88
affected from 91918ce88d9fef408bb12c46a27c73d79b604c20, before 3729ca9e48d19a03ae049e2bde510e161c2f3720
affected from 91918ce88d9fef408bb12c46a27c73d79b604c20, before 316f790ebcf94bdf59f794b7cdea4068dc676d4c
affected ba72baed066f3bfa8b489e4b58f1fcaf51c04f83
affected from 6.1.30, before 6.1.93
affected from 6.3.4, before 6.4
Other versions: unaffected
Linux
affected 6.4
unaffected before 6.4
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.8.12 up to and including 6.8.*
unaffected from 6.9.3 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38575 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38575

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-38575
trivy image --scanners vuln IMAGE | grep CVE-2024-38575

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-38575 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.