{"id":"CVE-2024-35811","published":"2024-05-17T13:23:17Z","modified":"2026-10-15T00:40:54Z","title":"wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach\n\nThis is the candidate patch of CVE-2023-47233 :\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-47233\n\nIn brcm80211 driver,it starts with the following invoking chain\nto start init a timeout worker:\n\n->brcmf_usb_probe\n  ->brcmf_usb_probe_cb\n    ->brcmf_attach\n      ->brcmf_bus_started\n        ->brcmf_cfg80211_attach\n          ->wl_init_priv\n            ->brcmf_init_escan\n              ->INIT_WORK(&cfg->escan_timeout_work,\n\t\t  brcmf_cfg80211_escan_timeout_worker);\n\nIf we disconnect the USB by hotplug, it will call\nbrcmf_usb_disconnect to make cleanup. The invoking chain is :\n\nbrcmf_usb_disconnect\n  ->brcmf_usb_disconnect_cb\n    ->brcmf_detach\n      ->brcmf_cfg80211_detach\n        ->kfree(cfg);\n\nWhile the timeout woker may still be running. This will cause\na use-after-free bug on cfg in brcmf_cfg80211_escan_timeout_worker.\n\nFix it by deleting the timer and canceling the worker in\nbrcmf_cfg80211_detach.\n\n[arend.vanspriel@broadcom.com: keep timer delete as is and cancel work just before free]","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00353,"percentile":0.29782,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/202c503935042272e2f9e1bb549d5f69a8681169","tags":[]},{"url":"https://git.kernel.org/stable/c/8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1","tags":[]},{"url":"https://git.kernel.org/stable/c/bacb8c3ab86dcd760c15903fcee58169bc3026aa","tags":[]},{"url":"https://git.kernel.org/stable/c/8c36205123dc57349b59b4f1a2301eb278cbc731","tags":[]},{"url":"https://git.kernel.org/stable/c/0b812f706fd7090be74812101114a0e165b36744","tags":[]},{"url":"https://git.kernel.org/stable/c/190794848e2b9d15de92d502b6ac652806904f5a","tags":[]},{"url":"https://git.kernel.org/stable/c/6678a1e7d896c00030b31491690e8ddc9a90767a","tags":[]},{"url":"https://git.kernel.org/stable/c/0a7591e14a8da794d0b93b5d1c6254ccb23adacb","tags":[]},{"url":"https://git.kernel.org/stable/c/0f7352557a35ab7888bc7831411ec8a3cbe20d78","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":5.96},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 202c503935042272e2f9e1bb549d5f69a8681169",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < bacb8c3ab86dcd760c15903fcee58169bc3026aa",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 8c36205123dc57349b59b4f1a2301eb278cbc731",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 0b812f706fd7090be74812101114a0e165b36744",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 190794848e2b9d15de92d502b6ac652806904f5a",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 6678a1e7d896c00030b31491690e8ddc9a90767a",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 0a7591e14a8da794d0b93b5d1c6254ccb23adacb",">= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 0f7352557a35ab7888bc7831411ec8a3cbe20d78"]},{"vendor":"Linux","product":"Linux","versions":["3.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:42:35.275433Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35803","exploited":false,"provenance":"source"}}