{"id":"CVE-2026-68404","state":"PUBLISHED","title":"wifi: cfg80211: use wiphy work for socket owner autodisconnect","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: use wiphy work for socket owner autodisconnect\n\nnl80211_netlink_notify() walks the cfg80211 wireless device list when a\nNETLINK_GENERIC socket is released. If the socket owns a connection, the\nnotifier queues the embedded wdev->disconnect_wk work item.\n\nThat work is a plain work_struct today. NETDEV_GOING_DOWN cancels it, but a\nNETLINK_URELEASE notifier that already observed conn_owner_nlportid can\nqueue it after that cancel returns. _cfg80211_unregister_wdev() then\nremoves the wdev from the list and waits for RCU readers, but\nsynchronize_net() does not drain work queued by such a reader.\n\nMake the autodisconnect work a wiphy_work instead. The callback already\nneeds the wiphy mutex, and wiphy_work runs under that mutex. This lets\nteardown cancel pending autodisconnect work while holding the mutex,\nwithout a cancel_work_sync() vs. worker locking concern.\n\nAlso cancel the wiphy work after list_del_rcu() and synchronize_net(). Any\nNETLINK_URELEASE notifier that had already reached the wdev list has then\neither queued the work and it is removed, or can no longer find the wdev.","publishedAt":"2026-08-10T12:04:24.241Z","updatedAt":"2026-10-30T12:28:29.915Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"23517673b1eecaec95e61dde285220d5a980cf3f","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"c55590e4c69e0fd194df6d20bc35381c201d99e1","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"4087a9ba4ece70297a4174afaa41c0b700302b65","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"c2ddd180bbee766cf7359473d623423ea9485d93","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"6d6123fef5a4af175cc6b6b12a03dd0f3c240b79","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"0c2ed186bbe14304415476d6707b747dddcd8583","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/cfg80211.h","net/wireless/core.c","net/wireless/core.h","net/wireless/nl80211.c","net/wireless/sme.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/cfg80211.h","net/wireless/core.c","net/wireless/core.h","net/wireless/nl80211.c","net/wireless/sme.c"]}],"references":["https://git.kernel.org/stable/c/23517673b1eecaec95e61dde285220d5a980cf3f","https://git.kernel.org/stable/c/c55590e4c69e0fd194df6d20bc35381c201d99e1","https://git.kernel.org/stable/c/4087a9ba4ece70297a4174afaa41c0b700302b65","https://git.kernel.org/stable/c/c2ddd180bbee766cf7359473d623423ea9485d93","https://git.kernel.org/stable/c/6d6123fef5a4af175cc6b6b12a03dd0f3c240b79","https://git.kernel.org/stable/c/0c2ed186bbe14304415476d6707b747dddcd8583"],"weaknesses":["CWE-662"],"ingestedAt":"2026-10-30T12:46:06.359Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68404.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68404","state":"PUBLISHED","datePublished":"2026-08-10T12:04:24.241Z","dateUpdated":"2026-10-30T12:28:29.915Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.390Z"},"containers":{"cna":{"title":"wifi: cfg80211: use wiphy work for socket owner autodisconnect","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: use wiphy work for socket owner autodisconnect\n\nnl80211_netlink_notify() walks the cfg80211 wireless device list when a\nNETLINK_GENERIC socket is released. If the socket owns a connection, the\nnotifier queues the embedded wdev->disconnect_wk work item.\n\nThat work is a plain work_struct today. NETDEV_GOING_DOWN cancels it, but a\nNETLINK_URELEASE notifier that already observed conn_owner_nlportid can\nqueue it after that cancel returns. _cfg80211_unregister_wdev() then\nremoves the wdev from the list and waits for RCU readers, but\nsynchronize_net() does not drain work queued by such a reader.\n\nMake the autodisconnect work a wiphy_work instead. The callback already\nneeds the wiphy mutex, and wiphy_work runs under that mutex. This lets\nteardown cancel pending autodisconnect work while holding the mutex,\nwithout a cancel_work_sync() vs. worker locking concern.\n\nAlso cancel the wiphy work after list_del_rcu() and synchronize_net(). Any\nNETLINK_URELEASE notifier that had already reached the wdev list has then\neither queued the work and it is removed, or can no longer find the wdev."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"23517673b1eecaec95e61dde285220d5a980cf3f","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"c55590e4c69e0fd194df6d20bc35381c201d99e1","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"4087a9ba4ece70297a4174afaa41c0b700302b65","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"c2ddd180bbee766cf7359473d623423ea9485d93","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"6d6123fef5a4af175cc6b6b12a03dd0f3c240b79","versionType":"git"},{"version":"bd2522b168847106c1885f0319a2833bdf88bf9a","status":"affected","lessThan":"0c2ed186bbe14304415476d6707b747dddcd8583","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/cfg80211.h","net/wireless/core.c","net/wireless/core.h","net/wireless/nl80211.c","net/wireless/sme.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/cfg80211.h","net/wireless/core.c","net/wireless/core.h","net/wireless/nl80211.c","net/wireless/sme.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/23517673b1eecaec95e61dde285220d5a980cf3f"},{"url":"https://git.kernel.org/stable/c/c55590e4c69e0fd194df6d20bc35381c201d99e1"},{"url":"https://git.kernel.org/stable/c/4087a9ba4ece70297a4174afaa41c0b700302b65"},{"url":"https://git.kernel.org/stable/c/c2ddd180bbee766cf7359473d623423ea9485d93"},{"url":"https://git.kernel.org/stable/c/6d6123fef5a4af175cc6b6b12a03dd0f3c240b79"},{"url":"https://git.kernel.org/stable/c/0c2ed186bbe14304415476d6707b747dddcd8583"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is reached through local nl80211/generic-netlink operations: setting NL80211_ATTR_SOCKET_OWNER on a connect/join command, closing the owning netlink socket, and tearing down the wireless interface. No network or radio traffic is required, so the attack vector is Local.\nAC:L - The attacker controls both sides of the race — the NETLINK_URELEASE notification (by closing its own socket) and the wdev teardown (by downing/deleting the interface) — and can repeat the sequence in a tight loop until the work is queued after the cancel window.\nPR:L - The relevant nl80211 commands use GENL_UNS_ADMIN_PERM and the family is netnsok, and mac80211_hwsim's HWSIM_CMD_NEW_RADIO likewise creates a wiphy in the caller's netns (wiphy_net_set(genl_info_net(info))), so an unprivileged user in a user+net namespace (unshare -Urn) obtains the required CAP_NET_ADMIN.\nUI:N - The entire sequence — creating/owning the connection, closing the socket, and removing the interface — is performed by the attacker's own process with no victim action required.\nS:U - The use-after-free corrupts kernel heap memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The freed wireless_dev lives in the net_device private allocation; a use-after-free on that slab lets an attacker reclaim and inspect kernel heap contents, and cfg80211_autodisconnect_wk dereferences the stale object, enabling disclosure of arbitrary kernel memory.\nI:H - Queueing writes work list pointers into freed memory, and process_one_work() later loads work->func from the reclaimed allocation, giving an attacker who sprays the slab a controlled kernel function pointer call and thus arbitrary write/code execution.\nA:H - Running cfg80211_autodisconnect_wk against a freed wireless_dev dereferences stale pointers and drives disconnect paths on destroyed state, reliably producing an oops or panic even without successful exploitation."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:28:29.915Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-68404","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:48:20.936552Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-662","lang":"en","type":"CWE","description":"CWE-662 Improper Synchronization"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T21:09:08.902Z"}}]}}}