{"id":"CVE-2024-38575","state":"PUBLISHED","title":"wifi: brcmfmac: pcie: handle randbuf allocation failure","description":"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.","publishedAt":"2024-06-19T13:37:34.476Z","updatedAt":"2026-05-23T15:48:52.214Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c35105f375b530bc27e03ea9250b1c26dd4cae86","status":"affected","lessThan":"0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"c37466406f075476c2702ecc01917928af871f3b","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"7c15eb344b0d4d3468c9b2a7591ad2b859b29b88","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"3729ca9e48d19a03ae049e2bde510e161c2f3720","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"316f790ebcf94bdf59f794b7cdea4068dc676d4c","versionType":"git"},{"version":"ba72baed066f3bfa8b489e4b58f1fcaf51c04f83","status":"affected","versionType":"git"},{"version":"6.1.30","status":"affected","lessThan":"6.1.93","versionType":"semver"},{"version":"6.3.4","status":"affected","lessThan":"6.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.1.93","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.33","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.12","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9.3","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/38xxx/CVE-2024-38575.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-38575","state":"PUBLISHED","datePublished":"2024-06-19T13:37:34.476Z","dateUpdated":"2026-05-23T15:48:52.214Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-18T19:36:34.924Z"},"containers":{"cna":{"title":"wifi: brcmfmac: pcie: handle randbuf allocation failure","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c35105f375b530bc27e03ea9250b1c26dd4cae86","status":"affected","lessThan":"0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"c37466406f075476c2702ecc01917928af871f3b","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"7c15eb344b0d4d3468c9b2a7591ad2b859b29b88","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"3729ca9e48d19a03ae049e2bde510e161c2f3720","versionType":"git"},{"version":"91918ce88d9fef408bb12c46a27c73d79b604c20","status":"affected","lessThan":"316f790ebcf94bdf59f794b7cdea4068dc676d4c","versionType":"git"},{"version":"ba72baed066f3bfa8b489e4b58f1fcaf51c04f83","status":"affected","versionType":"git"},{"version":"6.1.30","status":"affected","lessThan":"6.1.93","versionType":"semver"},{"version":"6.3.4","status":"affected","lessThan":"6.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.1.93","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.33","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.12","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9.3","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49"},{"url":"https://git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b"},{"url":"https://git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88"},{"url":"https://git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720"},{"url":"https://git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:48:52.214Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.30","versionEndExcluding":"6.1.93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.8.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.9.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-20T14:58:36.238292Z","id":"CVE-2024-38575","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-20T14:58:48.031Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:12:25.861Z"}}]}}}