{"id":"CVE-2026-68414","aliases":["CVE-2026-68414"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: cfg80211: cancel sched scan results work on unregister","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: cancel sched scan results work on unregister\n\ncfg80211_sched_scan_results() can queue rdev->sched_scan_res_wk from a\ndriver result notification while a scheduled scan request is present. The\nwork callback recovers the containing cfg80211_registered_device and then\nlocks the wiphy and walks the scheduled-scan request list.\n\nwiphy_unregister() already makes the wiphy unreachable and drains rdev work\nitems before cfg80211_dev_free() can release the object, but it does not\ndrain sched_scan_res_wk. A queued or running result work item can therefore\ncross the unregister/free boundary and access freed rdev state.\n\nThe buggy scenario involves two paths, with each column showing the order\nwithin that path:\n\nscheduled-scan result path:        unregister/free path:\n1. cfg80211_sched_scan_results()   1. interface teardown stops and\n   queues rdev->sched_scan_res_wk.    removes the scheduled scan request.\n2. cfg80211_wq starts the work     2. wiphy_unregister() drains other\n   item and recovers rdev.            rdev work items.\n3. The worker locks rdev->wiphy    3. cfg80211_dev_free() destroys and\n   and walks rdev state.              frees rdev.\n\nCancel sched_scan_res_wk in wiphy_unregister() alongside the other rdev\nwork items. cancel_work_sync() removes a pending result notification and\nwaits for an already running callback, so cfg80211_dev_free() cannot free\nrdev while this work item is still active.\n\nValidation reproduced this kernel report:\nBUG: KASAN: use-after-free in cfg80211_sched_scan_results_wk+0x4a6/0x530\nWorkqueue: cfg80211 cfg80211_sched_scan_results_wk [cfg80211]\nRead of size 8\nCall trace:\n  dump_stack_lvl+0x66/0xa0\n  print_report+0xce/0x630\n  cfg80211_sched_scan_results_wk+0x4a6/0x530\n  srso_alias_return_thunk+0x5/0xfbef5\n  __virt_addr_valid+0x224/0x430\n  kasan_report+0xac/0xe0\n  lockdep_hardirqs_on_prepare+0xea/0x1a0\n  process_one_work+0x8d0/0x18f0 (kernel/workqueue.c:3212)\n  lock_is_held_type+0x8f/0x100\n  worker_thread+0x5ad/0xfd0\n  __kthread_parkme+0xc6/0x200\n  kthread+0x31e/0x410\n  trace_hardirqs_on+0x1a/0x170\n  ret_from_fork+0x576/0x810\n  __switch_to+0x57e/0xe20\n  __switch_to_asm+0x33/0x70\n  ret_from_fork_asm+0x1a/0x30","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: cancel sched scan results work on unregister\n\ncfg80211_sched_scan_results() can queue rdev->sched_scan_res_wk from a\ndriver result notification while a scheduled scan request is present. The\nwork callback recovers the containing cfg80211_registered_device and then\nlocks the wiphy and walks the scheduled-scan request list.\n\nwiphy_unregister() already makes the wiphy unreachable and drains rdev work\nitems before cfg80211_dev_free() can release the object, but it does not\ndrain sched_scan_res_wk. A queued or running result work item can therefore\ncross the unregister/free boundary and access freed rdev state.\n\nThe buggy scenario involves two paths, with each column showing the order\nwithin that path:\n\nscheduled-scan result path:        unregister/free path:\n1. cfg80211_sched_scan_results()   1. interface teardown stops and\n   queues rdev->sched_scan_res_wk.    removes the scheduled scan request.\n2. cfg80211_wq starts the work     2. wiphy_unregister() drains other\n   item and recovers rdev.            rdev work items.\n3. The worker locks rdev->wiphy    3. cfg80211_dev_free() destroys and\n   and walks rdev state.              frees rdev.\n\nCancel sched_scan_res_wk in wiphy_unregister() alongside the other rdev\nwork items. cancel_work_sync() removes a pending result notification and\nwaits for an already running callback, so cfg80211_dev_free() cannot free\nrdev while this work item is still active.\n\nValidation reproduced this kernel report:\nBUG: KASAN: use-after-free in cfg80211_sched_scan_results_wk+0x4a6/0x530\nWorkqueue: cfg80211 cfg80211_sched_scan_results_wk [cfg80211]\nRead of size 8\nCall trace:\n  dump_stack_lvl+0x66/0xa0\n  print_report+0xce/0x630\n  cfg80211_sched_scan_results_wk+0x4a6/0x530\n  srso_alias_return_thunk+0x5/0xfbef5\n  __virt_addr_valid+0x224/0x430\n  kasan_report+0xac/0xe0\n  lockdep_hardirqs_on_prepare+0xea/0x1a0\n  process_one_work+0x8d0/0x18f0 (kernel/workqueue.c:3212)\n  lock_is_held_type+0x8f/0x100\n  worker_thread+0x5ad/0xfd0\n  __kthread_parkme+0xc6/0x200\n  kthread+0x31e/0x410\n  trace_hardirqs_on+0x1a/0x170\n  ret_from_fork+0x576/0x810\n  __switch_to+0x57e/0xe20\n  __switch_to_asm+0x33/0x70\n  ret_from_fork_asm+0x1a/0x30","source":"cvelist"}],"published":"2026-08-10T12:04:34.459Z","modified":"2026-10-19T22:17:18.033Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"807f8a8c300435d5483e8d78df9dcdbc27333166","fixed":"c0fa1f3a4b021a5c6373169fd6c9bb4261d676a0","status":"affected"},{"type":"git","introduced":"807f8a8c300435d5483e8d78df9dcdbc27333166","fixed":"b51b42b974461fd0f688baad85f10e2b8ab215c5","status":"affected"},{"type":"git","introduced":"807f8a8c300435d5483e8d78df9dcdbc27333166","fixed":"3368457b4871ae8f0f88d19c9a3e6270e850ede6","status":"affected"},{"type":"git","introduced":"807f8a8c300435d5483e8d78df9dcdbc27333166","fixed":"308ffdf575560d7e7b8b21f1e3ca6276630f73bf","status":"affected"},{"type":"git","introduced":"807f8a8c300435d5483e8d78df9dcdbc27333166","fixed":"9293574ac208d18c11073538851fb69355beb3b5","status":"affected"},{"type":"git","introduced":"807f8a8c300435d5483e8d78df9dcdbc27333166","fixed":"b119c70b24776c8ab2a2c0515397b3b0ad4e66cd","status":"affected"},{"type":"git","introduced":"807f8a8c300435d5483e8d78df9dcdbc27333166","fixed":"edf0730be33696a1bd142792830d392129e495cc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.0","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.101","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c0fa1f3a4b021a5c6373169fd6c9bb4261d676a0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b51b42b974461fd0f688baad85f10e2b8ab215c5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3368457b4871ae8f0f88d19c9a3e6270e850ede6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/308ffdf575560d7e7b8b21f1e3ca6276630f73bf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9293574ac208d18c11073538851fb69355beb3b5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b119c70b24776c8ab2a2c0515397b3b0ad4e66cd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/edf0730be33696a1bd142792830d392129e495cc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:48:28.206Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68414","url":"https://www.cve.org/CVERecord?id=CVE-2026-68414","licence":"CVE Terms of Use","modified":"2026-10-19T21:09:09.201Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68414","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68414","licence":"Public domain","modified":"2026-10-19T22:17:18.033Z"}],"updatedAt":"2026-11-25T22:59:32.119Z","epss":{"score":0.00231,"percentile":0.14863,"date":"2026-12-01T12:00:22.000Z"}}