Lucene search

K
redhatcveRedhat.comRH:CVE-2024-38575
HistoryJun 20, 2024 - 3:27 p.m.

CVE-2024-38575

2024-06-2015:27:19
redhat.com
access.redhat.com
9
linux kernel
wifi
vulnerability
cve-2024-38575
resolved
brcmfmac
pcie
randbuf allocation
kzalloc
null pointer dereference
get_random_bytes
prevention
kernel stack overflow

AI Score

6.8

Confidence

Low

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.