NULL pointer dereference in Linux
CVE-2024-38575
- CVSS v3
- 5.5 Medium
- Public exploits
- None known
- EPSS
- 0.002 · 13.3th percentile
- Published
- 2024-06-19
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- None
I:N - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.002, 13.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 6.1.30, 6.9.3, 6.4
- Linux Kernel
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (owenneal/lkml-patch-analysis). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49 (Patch)
- git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b (Patch)
- git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88 (Patch)
- git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720 (Patch)
- git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c (Patch)