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.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "c35105f375b5",
"lessThan": "0eb2c0528e23",
"versionType": "git"
},
{
"status": "affected",
"version": "91918ce88d9f",
"lessThan": "c37466406f07",
"versionType": "git"
},
{
"status": "affected",
"version": "91918ce88d9f",
"lessThan": "7c15eb344b0d",
"versionType": "git"
},
{
"status": "affected",
"version": "91918ce88d9f",
"lessThan": "3729ca9e48d1",
"versionType": "git"
},
{
"status": "affected",
"version": "91918ce88d9f",
"lessThan": "316f790ebcf9",
"versionType": "git"
}
],
"programFiles": [
"drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.4"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.4",
"versionType": "custom"
},
{
"status": "unaffected",
"version": "6.1.93",
"versionType": "custom",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.33",
"versionType": "custom",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.8.12",
"versionType": "custom",
"lessThanOrEqual": "6.8.*"
},
{
"status": "unaffected",
"version": "6.9.3",
"versionType": "custom",
"lessThanOrEqual": "6.9.*"
},
{
"status": "unaffected",
"version": "6.10",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c"
],
"defaultStatus": "affected"
}
]
git.kernel.org/stable/c/0eb2c0528e232b3c32cde9d5e1c9f80ba2996e49
git.kernel.org/stable/c/316f790ebcf94bdf59f794b7cdea4068dc676d4c
git.kernel.org/stable/c/3729ca9e48d19a03ae049e2bde510e161c2f3720
git.kernel.org/stable/c/7c15eb344b0d4d3468c9b2a7591ad2b859b29b88
git.kernel.org/stable/c/c37466406f075476c2702ecc01917928af871f3b