{"id":"CVE-2024-38575","published":"2024-06-19T13:37:34Z","modified":"2026-05-23T15:48:52Z","title":"wifi: brcmfmac: pcie: handle randbuf allocation failure","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: brcmfmac: pcie: handle randbuf allocation failure\n\nThe kzalloc() in brcmf_pcie_download_fw_nvram() will return null\nif the physical memory has run out. As a result, if we use\nget_random_bytes() to generate random bytes in the randbuf, the\nnull pointer dereference bug will happen.\n\nIn order to prevent allocation failure, this patch adds a separate\nfunction using buffer on kernel stack to generate random bytes in\nthe randbuf, which could prevent the kernel stack from overflow.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00225,"percentile":0.13449,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49","tags":[]},{"url":"https://git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b","tags":[]},{"url":"https://git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88","tags":[]},{"url":"https://git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720","tags":[]},{"url":"https://git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c","tags":[]}],"priority":{"score":2.7,"factors":[{"name":"EPSS percentile","points":2.69}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c35105f375b530bc27e03ea9250b1c26dd4cae86, < 0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49",">= 91918ce88d9fef408bb12c46a27c73d79b604c20, < c37466406f075476c2702ecc01917928af871f3b",">= 91918ce88d9fef408bb12c46a27c73d79b604c20, < 7c15eb344b0d4d3468c9b2a7591ad2b859b29b88",">= 91918ce88d9fef408bb12c46a27c73d79b604c20, < 3729ca9e48d19a03ae049e2bde510e161c2f3720",">= 91918ce88d9fef408bb12c46a27c73d79b604c20, < 316f790ebcf94bdf59f794b7cdea4068dc676d4c","ba72baed066f3bfa8b489e4b58f1fcaf51c04f83",">= 6.1.30, < 6.1.93",">= 6.3.4, < 6.4"]},{"vendor":"Linux","product":"Linux","versions":["6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-20T14:58:36.238292Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-37438","exploited":false,"provenance":"source"}}