* [BUG] ath9k_htc: KASAN slab-use-after-free in WMI event tasklet (v7.4-rc2)
@ 2026-11-12 16:49 铮
2026-11-16 12:14 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 4+ messages in thread
From: 铮 @ 2026-11-12 16:49 UTC (permalink / raw)
To: toke; +Cc: linux-wireless, linux-usb
Hi Toke,
We found a KASAN slab-use-after-free in the ath9k_htc WMI event tasklet
on v7.4-rc2 with syzkaller:
BUG: KASAN: slab-use-after-free in tasklet_action_common+0x2ec/0x3b0
kernel/softirq.c:988
Allocated by task 1259:
ath9k_init_wmi+0x49/0x320 drivers/net/wireless/ath/ath9k/wmi.c:95
ath9k_htc_probe_device+0x203/0x2650
drivers/net/wireless/ath/ath9k/htc_drv_init.c:956
Freed by task 1259:
ath9k_htc_probe_device+0x292/0x2650
drivers/net/wireless/ath/ath9k/htc_drv_init.c:978
The freed object is the WMI control structure allocated by
ath9k_init_wmi() (drivers/net/wireless/ath/ath9k/wmi.c:95) during
ath9k_htc_probe_device(). The WMI event tasklet (wmi_event_tasklet,
registered by ath9k_init_wmi()) was scheduled by an incoming USB message
during probe. Subsequently, a later init step failed and the error path
(err_init -> ath9k_destroy_wmi(), htc_drv_init.c:978) freed the WMI
structure. The pending or rescheduled WMI event tasklet accessed
the freed structure, triggering the use-after-free.
Kernel/config: 7.4.0-rc2-kernsight-kasan #1, built from v7.4-rc2 with
CONFIG_KASAN=y, booted with oops=panic and panic_on_warn=1.
The crash depends on device state built up by preceding operations. The
reproducer consists of 50 priming programs and one triggering program
(51 programs in total):
syz-execprog -procs=8 -threaded -repeat=0 -executor ./syz-executor
repro.kernsight.prog
The programs are replayed repeatedly with 8 parallel workers (-repeat=0);
the execution order is not guaranteed to be strictly serial.
In our fuzzing pipeline this reproducer was verified on a fresh VM
(reproducer pipeline outcome: confirmed=true, status=verified).
A full write-up, the reproducer and the crash artifacts are available at:
https://github.com/Zheng-zheng-codes/ath9k-firmware-tasklet-use-after-free
Repository contents:
- README.md full bug report: phenomenon, KASAN
Alloc/Freed stacks, mechanism,
reproduction steps
- reproducer/repro.kernsight.prog
pipeline-verified reproducer (50 priming
programs + one triggering program)
- reproducer/repro.prog triggering program set from the pipeline
- reproducer/repro.priming.prog state-priming program set (pipeline recipe)
- kernel.config kernel configuration used
- environment.txt kernel image info (sha256), QEMU command
line, syzkaller commit, reproducer command
- logs/log-*.txt, logs/report-*.txt
original syzkaller execution logs and crash
reports from the fuzzing pipeline
- logs/machineInfo-*.txt, logs/title-stat.json
guest environment info and title statistics
- logs/external-verification/ external verification serial console
(contains the KASAN report)
Happy to provide the full KASAN report, kernel image, additional crash
instances or raw artifacts if useful.
Best regards,
Zheng Zheng
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] ath9k_htc: KASAN slab-use-after-free in WMI event tasklet (v7.4-rc2)
2026-11-12 16:49 [BUG] ath9k_htc: KASAN slab-use-after-free in WMI event tasklet (v7.4-rc2) 铮
@ 2026-11-16 12:14 ` Toke Høiland-Jørgensen
2026-11-16 13:45 ` Zheng Zheng
0 siblings, 1 reply; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2026-11-16 12:14 UTC (permalink / raw)
To: 铮; +Cc: linux-wireless, linux-usb
铮 <fengaojigui88@gmail.com> writes:
> Hi Toke,
>
> We found a KASAN slab-use-after-free in the ath9k_htc WMI event tasklet
> on v7.4-rc2 with syzkaller:
>
> BUG: KASAN: slab-use-after-free in tasklet_action_common+0x2ec/0x3b0
> kernel/softirq.c:988
>
> Allocated by task 1259:
> ath9k_init_wmi+0x49/0x320 drivers/net/wireless/ath/ath9k/wmi.c:95
> ath9k_htc_probe_device+0x203/0x2650
> drivers/net/wireless/ath/ath9k/htc_drv_init.c:956
> Freed by task 1259:
> ath9k_htc_probe_device+0x292/0x2650
> drivers/net/wireless/ath/ath9k/htc_drv_init.c:978
I believe we already have a pending patch for this in patchwork:
https://patchwork.kernel.org/project/linux-wireless/patch/20261021120237.481898-1-toke@toke.dk/
Could you please test if this resolves the issue you're seeing?
-Toke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] ath9k_htc: KASAN slab-use-after-free in WMI event tasklet (v7.4-rc2)
2026-11-16 12:14 ` Toke Høiland-Jørgensen
@ 2026-11-16 13:45 ` Zheng Zheng
2026-11-16 15:10 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 4+ messages in thread
From: Zheng Zheng @ 2026-11-16 13:45 UTC (permalink / raw)
To: Toke Høiland-Jørgensen; +Cc: linux-wireless, linux-usb
Hi Toke,
Thanks for pointing me to the existing patch!
I tested it on v7.4-rc2 using the same Kernsight/syzkaller reproducer.
The unpatched kernel reproduces the reported KASAN
slab-use-after-free, while the patched kernel no longer triggers the
issue under the same test conditions.
I can confirm that the patch resolves the issue in my tests.
Best regards,
Zheng Zheng
On Mon, Nov 16, 2026 at 8:14 PM Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>
> 铮 <fengaojigui88@gmail.com> writes:
>
> > Hi Toke,
> >
> > We found a KASAN slab-use-after-free in the ath9k_htc WMI event tasklet
> > on v7.4-rc2 with syzkaller:
> >
> > BUG: KASAN: slab-use-after-free in tasklet_action_common+0x2ec/0x3b0
> > kernel/softirq.c:988
> >
> > Allocated by task 1259:
> > ath9k_init_wmi+0x49/0x320 drivers/net/wireless/ath/ath9k/wmi.c:95
> > ath9k_htc_probe_device+0x203/0x2650
> > drivers/net/wireless/ath/ath9k/htc_drv_init.c:956
> > Freed by task 1259:
> > ath9k_htc_probe_device+0x292/0x2650
> > drivers/net/wireless/ath/ath9k/htc_drv_init.c:978
>
> I believe we already have a pending patch for this in patchwork:
> https://patchwork.kernel.org/project/linux-wireless/patch/20261021120237.481898-1-toke@toke.dk/
>
> Could you please test if this resolves the issue you're seeing?
>
> -Toke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] ath9k_htc: KASAN slab-use-after-free in WMI event tasklet (v7.4-rc2)
2026-11-16 13:45 ` Zheng Zheng
@ 2026-11-16 15:10 ` Toke Høiland-Jørgensen
0 siblings, 0 replies; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2026-11-16 15:10 UTC (permalink / raw)
To: Zheng Zheng; +Cc: linux-wireless, linux-usb
Zheng Zheng <fengaojigui88@gmail.com> writes:
> Hi Toke,
>
> Thanks for pointing me to the existing patch!
>
> I tested it on v7.4-rc2 using the same Kernsight/syzkaller reproducer.
>
> The unpatched kernel reproduces the reported KASAN
> slab-use-after-free, while the patched kernel no longer triggers the
> issue under the same test conditions.
>
> I can confirm that the patch resolves the issue in my tests.
Great, thank you for testing! :)
Johannes meanwhile merged this into the wireless tree:
https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless.git/commit/?h=main&id=ec95877e2ea1c655e914c34fa23fd51e32315fec
-Toke
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-16 15:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 16:49 [BUG] ath9k_htc: KASAN slab-use-after-free in WMI event tasklet (v7.4-rc2) 铮
2026-11-16 12:14 ` Toke Høiland-Jørgensen
2026-11-16 13:45 ` Zheng Zheng
2026-11-16 15:10 ` Toke Høiland-Jørgensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox