{"id":"CVE-2021-47225","published":"2024-05-21T14:19:30Z","modified":"2026-05-11T13:50:22Z","title":"mac80211: fix deadlock in AP/VLAN handling","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmac80211: fix deadlock in AP/VLAN handling\n\nSyzbot reports that when you have AP_VLAN interfaces that are up\nand close the AP interface they belong to, we get a deadlock. No\nsurprise - since we dev_close() them with the wiphy mutex held,\nwhich goes back into the netdev notifier in cfg80211 and tries to\nacquire the wiphy mutex there.\n\nTo fix this, we need to do two things:\n 1) prevent changing iftype while AP_VLANs are up, we can't\n    easily fix this case since cfg80211 already calls us with\n    the wiphy mutex held, but change_interface() is relatively\n    rare in drivers anyway, so changing iftype isn't used much\n    (and userspace has to fall back to down/change/up anyway)\n 2) pull the dev_close() loop over VLANs out of the wiphy mutex\n    section in the normal stop case","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00147,"percentile":0.03967,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8043903fcb72f545c52e3ec74d6fd82ef79ce7c5","tags":[]},{"url":"https://git.kernel.org/stable/c/d5befb224edbe53056c2c18999d630dafb4a08b9","tags":[]}],"priority":{"score":4.6,"factors":[{"name":"EPSS percentile","points":0.79},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a05829a7222e9d10c416dd2dbbf3929fe6646b89, < 8043903fcb72f545c52e3ec74d6fd82ef79ce7c5",">= a05829a7222e9d10c416dd2dbbf3929fe6646b89, < d5befb224edbe53056c2c18999d630dafb4a08b9"]},{"vendor":"Linux","product":"Linux","versions":["5.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-31T18:48:57.781631Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33873","exploited":false,"provenance":"source"}}