Bug 1226612 (CVE-2024-38575) - VUL-0: CVE-2024-38575: kernel: wifi: brcmfmac: pcie: handle randbuf allocation failure
Summary: VUL-0: CVE-2024-38575: kernel: wifi: brcmfmac: pcie: handle randbuf allocatio...
Status: RESOLVED FIXED
Alias: CVE-2024-38575
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/411400/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-38575:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-20 12:58 UTC by SMASH SMASH
Modified: 2024-07-08 15:12 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-20 12:58:11 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-38575
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-38575.mbox
https://git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49
https://git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b
https://git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88
https://git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720
https://git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c
https://www.cve.org/CVERecord?id=CVE-2024-38575