wifi: cfg80211: cancel rfkill_block work in wiphy_unregister()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.77, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: cancel rfkill_block work in wiphy_unregister() There is a use-after-free error in cfg80211_shutdown_all_interfaces found by syzkaller: BUG: KASAN: use-after-free in cfg80211_shutdown_all_interfaces+0x213/0x220 Read of size 8 at addr ffff888112a78d98 by task kworker/0:5/5326 CPU: 0 UID: 0 PID: 5326 Comm: kworker/0:5 Not tainted 6.19.0-rc2 #2 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 Workqueue: events cfg80211_rfkill_block_work Call Trace: <TASK> dump_stack_lvl+0x116/0x1f0 print_report+0xcd/0x630 kasan_report+0xe0/0x110 cfg80211_shutdown_all_interfaces+0x213/0x220 cfg80211_rfkill_block_work+0x1e/0x30 process_one_work+0x9cf/0x1b70 worker_thread+0x6c8/0xf10 kthread+0x3c5/0x780 ret_from_fork+0x56d/0x700 ret_from_fork_asm+0x1a/0x30 </TASK> The problem arises due to the rfkill_block work is not cancelled when wiphy is being unregistered. In order to fix the issue cancel the corresponding work in wiphy_unregister(). Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in 82a35356b5c1f75fe6a8a561db44e8d0e49da8f9; From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in b2e9626a9d16b9bbbd06498c9e73c93be354dc7a; From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in eeea8da43ab86ac0a6b9cec225eec91564346940; From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in fa18639deab4a3662d543200c5bfc29bf4e23173; From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in 57e39fe8da573435fa35975f414f4dc17d9f8449; From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in 584279ad9ff1e8e7c5494b9fce286201f7d1f9e2; From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in cd2f52944c7b95dcdfe0d87f385a2d96458a3ae5; From 1f87f7d3a3b42b20f34cb03f0fd1a41c3d0e27f3 · fixed in 767d23ade706d5fa51c36168e92a9c5533c351a1
- Linux Linux
2.6.31
- KernelLinux
From 2.6.31 · fixed in 5.10.253; From 5.11.0 · fixed in 5.15.203; From 5.16.0 · fixed in 6.1.167; From 6.2.0 · fixed in 6.6.130; From 6.7.0 · fixed in 6.12.77; From 6.13.0 · fixed in 6.18.17; From 6.19.0 · fixed in 6.19.7
References 8
git.kernel.org
- stable/c/82a35356b5c1f75fe6a8a561db44e8d0e49da8f9
- stable/c/b2e9626a9d16b9bbbd06498c9e73c93be354dc7a
- stable/c/eeea8da43ab86ac0a6b9cec225eec91564346940
- stable/c/fa18639deab4a3662d543200c5bfc29bf4e23173
- stable/c/57e39fe8da573435fa35975f414f4dc17d9f8449
- stable/c/584279ad9ff1e8e7c5494b9fce286201f7d1f9e2
- stable/c/cd2f52944c7b95dcdfe0d87f385a2d96458a3ae5
- stable/c/767d23ade706d5fa51c36168e92a9c5533c351a1