CVE-2024-35811
wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach
Check your servers for CVE-2024-35811
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35811 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach
This is the candidate patch of CVE-2023-47233 : https://nvd.nist.gov/vuln/detail/CVE-2023-47233
In brcm80211 driver,it starts with the following invoking chain to start init a timeout worker:
->brcmf_usb_probe ->brcmf_usb_probe_cb ->brcmf_attach ->brcmf_bus_started ->brcmf_cfg80211_attach ->wl_init_priv ->brcmf_init_escan ->INIT_WORK(&cfg->escan_timeout_work, brcmf_cfg80211_escan_timeout_worker);
If we disconnect the USB by hotplug, it will call brcmf_usb_disconnect to make cleanup. The invoking chain is :
brcmf_usb_disconnect ->brcmf_usb_disconnect_cb ->brcmf_detach ->brcmf_cfg80211_detach ->kfree(cfg);
While the timeout woker may still be running. This will cause a use-after-free bug on cfg in brcmf_cfg80211_escan_timeout_worker.
Fix it by deleting the timer and canceling the worker in brcmf_cfg80211_detach.
[arend.vanspriel@broadcom.com: keep timer delete as is and cancel work just before free]
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 31.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 202c503935042272e2f9e1bb549d5f69a8681169 affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1 affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before bacb8c3ab86dcd760c15903fcee58169bc3026aa affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 8c36205123dc57349b59b4f1a2301eb278cbc731 affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 0b812f706fd7090be74812101114a0e165b36744 affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 190794848e2b9d15de92d502b6ac652806904f5a affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 6678a1e7d896c00030b31491690e8ddc9a90767a affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 0a7591e14a8da794d0b93b5d1c6254ccb23adacb affected from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, before 0f7352557a35ab7888bc7831411ec8a3cbe20d78
Other versions: unaffected
|
| Linux |
affected 3.7 unaffected before 3.7 unaffected from 4.19.312 up to and including 4.19.* unaffected from 5.4.274 up to and including 5.4.* unaffected from 5.10.215 up to and including 5.10.* unaffected from 5.15.154 up to and including 5.15.* unaffected from 6.1.84 up to and including 6.1.* unaffected from 6.6.24 up to and including 6.6.* unaffected from 6.7.12 up to and including 6.7.* unaffected from 6.8.3 up to and including 6.8.* unaffected 6.9 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35811 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35811
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-35811
trivy image --scanners vuln IMAGE | grep CVE-2024-35811
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/202c503935042272e2f9e1bb549d5f69a8681169 git.kernel.org
- https://git.kernel.org/stable/c/8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1 git.kernel.org
- https://git.kernel.org/stable/c/bacb8c3ab86dcd760c15903fcee58169bc3026aa git.kernel.org
- https://git.kernel.org/stable/c/8c36205123dc57349b59b4f1a2301eb278cbc731 git.kernel.org
- https://git.kernel.org/stable/c/0b812f706fd7090be74812101114a0e165b36744 git.kernel.org
- https://git.kernel.org/stable/c/190794848e2b9d15de92d502b6ac652806904f5a git.kernel.org
- https://git.kernel.org/stable/c/6678a1e7d896c00030b31491690e8ddc9a90767a git.kernel.org
- https://git.kernel.org/stable/c/0a7591e14a8da794d0b93b5d1c6254ccb23adacb git.kernel.org
- https://git.kernel.org/stable/c/0f7352557a35ab7888bc7831411ec8a3cbe20d78 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
Source: the record CVE-2024-35811 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse