Lucene search

K
cvelistLinuxCVELIST:CVE-2024-38575
HistoryJun 19, 2024 - 1:37 p.m.

CVE-2024-38575 wifi: brcmfmac: pcie: handle randbuf allocation failure

2024-06-1913:37:34
Linux
www.cve.org
1
linux kernel
wifi
randbuf allocation
null pointer dereference
kernel stack overflow

0.0004 Low

EPSS

Percentile

15.7%

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.

CNA Affected

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

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2024-38575