Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.433952] ================================================================== [ 16.434022] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 16.434624] Read of size 1 at addr fff00000c7718000 by task kunit_try_catch/148 [ 16.434693] [ 16.434885] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.435435] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.435462] Hardware name: linux,dummy-virt (DT) [ 16.435675] Call trace: [ 16.435857] show_stack+0x20/0x38 (C) [ 16.436039] dump_stack_lvl+0x8c/0xd0 [ 16.436197] print_report+0x118/0x608 [ 16.436247] kasan_report+0xdc/0x128 [ 16.436292] __asan_report_load1_noabort+0x20/0x30 [ 16.436487] kmalloc_large_uaf+0x2cc/0x2f8 [ 16.436887] kunit_try_run_case+0x170/0x3f0 [ 16.437023] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.437320] kthread+0x328/0x630 [ 16.437429] ret_from_fork+0x10/0x20 [ 16.437601] [ 16.437732] The buggy address belongs to the physical page: [ 16.437788] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107718 [ 16.438254] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.438399] raw: 0bfffe0000000000 ffffc1ffc31dc708 fff00000da478c40 0000000000000000 [ 16.438449] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.438488] page dumped because: kasan: bad access detected [ 16.438541] [ 16.438560] Memory state around the buggy address: [ 16.438608] fff00000c7717f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.438650] fff00000c7717f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.438691] >fff00000c7718000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.438734] ^ [ 16.438762] fff00000c7718080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.438803] fff00000c7718100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.438856] ==================================================================
[ 12.099584] ================================================================== [ 12.100196] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.100533] Read of size 1 at addr ffff888102a30000 by task kunit_try_catch/165 [ 12.101785] [ 12.102149] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.102195] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.102206] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.102226] Call Trace: [ 12.102237] <TASK> [ 12.102252] dump_stack_lvl+0x73/0xb0 [ 12.102282] print_report+0xd1/0x650 [ 12.102303] ? __virt_addr_valid+0x1db/0x2d0 [ 12.102325] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.102344] ? kasan_addr_to_slab+0x11/0xa0 [ 12.102499] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.102522] kasan_report+0x141/0x180 [ 12.102544] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.102569] __asan_report_load1_noabort+0x18/0x20 [ 12.102594] kmalloc_large_uaf+0x2f1/0x340 [ 12.102614] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.102636] ? __schedule+0x10cc/0x2b60 [ 12.102657] ? __pfx_read_tsc+0x10/0x10 [ 12.102678] ? ktime_get_ts64+0x86/0x230 [ 12.102714] kunit_try_run_case+0x1a5/0x480 [ 12.102738] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.102760] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.102783] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.102807] ? __kthread_parkme+0x82/0x180 [ 12.102828] ? preempt_count_sub+0x50/0x80 [ 12.102851] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.102874] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.102898] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.102924] kthread+0x337/0x6f0 [ 12.102942] ? trace_preempt_on+0x20/0xc0 [ 12.102964] ? __pfx_kthread+0x10/0x10 [ 12.102984] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.103005] ? calculate_sigpending+0x7b/0xa0 [ 12.103060] ? __pfx_kthread+0x10/0x10 [ 12.103081] ret_from_fork+0x116/0x1d0 [ 12.103099] ? __pfx_kthread+0x10/0x10 [ 12.103118] ret_from_fork_asm+0x1a/0x30 [ 12.103150] </TASK> [ 12.103160] [ 12.116772] The buggy address belongs to the physical page: [ 12.116949] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a30 [ 12.117749] flags: 0x200000000000000(node=0|zone=2) [ 12.118483] raw: 0200000000000000 ffffea00040a8d08 ffff88815b139f80 0000000000000000 [ 12.118929] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.119348] page dumped because: kasan: bad access detected [ 12.119848] [ 12.120022] Memory state around the buggy address: [ 12.120551] ffff888102a2ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.121143] ffff888102a2ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.121667] >ffff888102a30000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.121887] ^ [ 12.122000] ffff888102a30080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.122741] ffff888102a30100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.123569] ==================================================================