# CVE-2024-38575: wifi: brcmfmac: pcie: handle randbuf allocation failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-06-19T13:37:34.476Z
- Modified: 2026-06-17T07:40:37.083Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c35105f375b530bc27e03ea9250b1c26dd4cae86 before 0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49; from 91918ce88d9fef408bb12c46a27c73d79b604c20 before c37466406f075476c2702ecc01917928af871f3b; from 91918ce88d9fef408bb12c46a27c73d79b604c20 before 7c15eb344b0d4d3468c9b2a7591ad2b859b29b88; from 91918ce88d9fef408bb12c46a27c73d79b604c20 before 3729ca9e48d19a03ae049e2bde510e161c2f3720; from 91918ce88d9fef408bb12c46a27c73d79b604c20 before 316f790ebcf94bdf59f794b7cdea4068dc676d4c; ba72baed066f3bfa8b489e4b58f1fcaf51c04f83; from 6.1.30 before 6.1.93; from 6.3.4 before 6.4; 6.4 (not affected: before 6.4; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.1.30 before 6.1.93; from 6.3.4 before 6.6.33; from 6.7 before 6.8.12; from 6.9 before 6.9.3

## References

- <https://git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49> (patch)
- <https://git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b> (patch)
- <https://git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88> (patch)
- <https://git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720> (patch)
- <https://git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c> (patch)

## Sources

- CVE List: [CVE-2024-38575](https://www.cve.org/CVERecord?id=CVE-2024-38575), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-38575](https://nvd.nist.gov/vuln/detail/CVE-2024-38575), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38575 · Whole record: https://cve.day/CVE-2024-38575.json · Rebuilt by cve.day 2026-11-25T22:58:42.023Z
