{"id":"CVE-2026-98331","revision":"4c729196a9e14efda61dda3e2788bc0a","records":[{"revision":"4c729196a9e14efda61dda3e2788bc0a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98331","aliases":[],"title":"wifi: mac80211: unlist vifs when their netdev is unregistered","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: unlist vifs when their netdev is unregistered\n\nmac80211 only removes vifs from the local->interfaces list when\nan interface is removed via ieee80211_if_remove(), before it\nunregisters the netdev. However, it's possible for a netdev to\nbe unregistered without going through that: When the netns that\nholds the wiphy is destroyed, the wiphy is supposed to move to\nthe init_ns, but that can run into allocation failures.\n\nThen, mac80211 has an interface listed that doesn't exist, and\nwill eventually hit\n\n  BUG: failure at net/wireless/core.h:141/wiphy_to_rdev()!\n  ...\n  _cfg80211_unregister_wdev+0x24/0x36a [cfg80211]\n  cfg80211_unregister_wdev+0x15/0x1d [cfg80211]\n  ieee80211_remove_interfaces+0x1ff/0x257 [mac80211]\n  ieee80211_unregister_hw+0x73/0x1d1 [mac80211]\n  mac80211_hwsim_del_radio+0x114/0x166 [mac80211_hwsim]\n\nRemove the interface from the list in ->ndo_uninit if it's still\naround to avoid this.","state":0,"publishedAt":"2026-10-06T08:46:23.481+00:00","modifiedAt":"2026-10-19T09:17:41.508+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"net/mac80211/iface.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"463d018323851a608eef52a9427b0585005c647f\",\n                            \"lessThan\": \"a22c02863439993095acd0c3db97fa53cd515f4f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"463d018323851a608eef52a9427b0585005c647f\",\n                            \"lessThan\": \"20a56e96a6f7b4dfbd13f8732fd2673409fc7ba0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"463d018323851a608eef52a9427b0585005c647f\",\n                            \"lessThan\": \"b735ad1a9aca6080192c1316cf2706e5e1318762\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"463d018323851a608eef52a9427b0585005c647f\",\n                            \"lessThan\": \"d45bf731ec7085d2cc2c5d179d3b3b6c743d4fb1\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"463d018323851a608eef52a9427b0585005c647f\",\n                            \"lessThan\": \"821bab0456dfca12acef6df702c8f2477d313227\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"463d018323851a608eef52a9427b0585005c647f\",\n                            \"lessThan\": \"eee2efd82867b623982ac51925b5a1812a74c50d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"net/mac80211/iface.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"2.6.32\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"2.6.32\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.189\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.158\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.112\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.54\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.8\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/a22c02863439993095acd0c3db97fa53cd515f4f","https://git.kernel.org/stable/c/20a56e96a6f7b4dfbd13f8732fd2673409fc7ba0","https://git.kernel.org/stable/c/b735ad1a9aca6080192c1316cf2706e5e1318762","https://git.kernel.org/stable/c/d45bf731ec7085d2cc2c5d179d3b3b6c743d4fb1","https://git.kernel.org/stable/c/821bab0456dfca12acef6df702c8f2477d313227","https://git.kernel.org/stable/c/eee2efd82867b623982ac51925b5a1812a74c50d"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98331","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98331","identifiers":["CVE-2026-98331"]},"retained":false,"historicalAffected":[]}],"coverage":[]}