{"id":"CVE-2024-38575","aliases":["CVE-2024-38575"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: brcmfmac: pcie: handle randbuf allocation failure","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: brcmfmac: pcie: manejar fallo de asignación de randbuf El kzalloc() en brcmf_pcie_download_fw_nvram() devolverá nulo si la memoria física se ha agotado. Como resultado, si usamos get_random_bytes() para generar bytes aleatorios en randbuf, se producirá el error de desreferencia del puntero nulo. Para evitar fallas en la asignación, este parche agrega una función separada que utiliza el búfer en la pila del kernel para generar bytes aleatorios en randbuf, lo que podría evitar que la pila del kernel se desborde.","source":"nvd"}],"published":"2024-06-19T13:37:34.476Z","modified":"2026-06-17T07:40:37.083Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"c35105f375b530bc27e03ea9250b1c26dd4cae86","fixed":"0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49","status":"affected"},{"type":"git","introduced":"91918ce88d9fef408bb12c46a27c73d79b604c20","fixed":"c37466406f075476c2702ecc01917928af871f3b","status":"affected"},{"type":"git","introduced":"91918ce88d9fef408bb12c46a27c73d79b604c20","fixed":"7c15eb344b0d4d3468c9b2a7591ad2b859b29b88","status":"affected"},{"type":"git","introduced":"91918ce88d9fef408bb12c46a27c73d79b604c20","fixed":"3729ca9e48d19a03ae049e2bde510e161c2f3720","status":"affected"},{"type":"git","introduced":"91918ce88d9fef408bb12c46a27c73d79b604c20","fixed":"316f790ebcf94bdf59f794b7cdea4068dc676d4c","status":"affected"},{"type":"git","version":"ba72baed066f3bfa8b489e4b58f1fcaf51c04f83","status":"affected"},{"type":"semver","introduced":"6.1.30","fixed":"6.1.93","status":"affected"},{"type":"semver","introduced":"6.3.4","fixed":"6.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1.30","fixed":"6.1.93"},{"status":"affected","introduced":"6.3.4","fixed":"6.6.33"},{"status":"affected","introduced":"6.7","fixed":"6.8.12"},{"status":"affected","introduced":"6.9","fixed":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-20T14:58:36.238Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38575","url":"https://www.cve.org/CVERecord?id=CVE-2024-38575","licence":"CVE Terms of Use","modified":"2026-05-23T15:48:52.214Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38575","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38575","licence":"Public domain","modified":"2026-06-17T07:40:37.083Z"}],"updatedAt":"2026-11-25T22:58:42.023Z","epss":{"score":0.00225,"percentile":0.14047,"date":"2026-12-01T12:00:22.000Z"}}