Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.049467] ================================================================== [ 15.049877] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 15.049972] Read of size 1 at addr fff00000c6410000 by task kunit_try_catch/149 [ 15.050112] [ 15.050162] CPU: 1 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.050313] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.050428] Hardware name: linux,dummy-virt (DT) [ 15.050459] Call trace: [ 15.050839] show_stack+0x20/0x38 (C) [ 15.050955] dump_stack_lvl+0x8c/0xd0 [ 15.051102] print_report+0x118/0x5d0 [ 15.051191] kasan_report+0xdc/0x128 [ 15.051266] __asan_report_load1_noabort+0x20/0x30 [ 15.051708] kmalloc_large_uaf+0x2cc/0x2f8 [ 15.051880] kunit_try_run_case+0x170/0x3f0 [ 15.052013] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.052080] kthread+0x328/0x630 [ 15.052149] ret_from_fork+0x10/0x20 [ 15.052431] [ 15.052641] The buggy address belongs to the physical page: [ 15.052778] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106410 [ 15.052918] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.053007] raw: 0bfffe0000000000 ffffc1ffc3190508 fff00000da479c40 0000000000000000 [ 15.053360] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 15.053437] page dumped because: kasan: bad access detected [ 15.053471] [ 15.053500] Memory state around the buggy address: [ 15.053562] fff00000c640ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.053618] fff00000c640ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.053658] >fff00000c6410000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.053694] ^ [ 15.054989] fff00000c6410080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.055451] fff00000c6410100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.055682] ==================================================================
[ 11.594205] ================================================================== [ 11.594887] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 11.595340] Read of size 1 at addr ffff88810394c000 by task kunit_try_catch/166 [ 11.596148] [ 11.596399] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.596449] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.596460] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.596482] Call Trace: [ 11.596507] <TASK> [ 11.596524] dump_stack_lvl+0x73/0xb0 [ 11.596555] print_report+0xd1/0x610 [ 11.596577] ? __virt_addr_valid+0x1db/0x2d0 [ 11.596599] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.596619] ? kasan_addr_to_slab+0x11/0xa0 [ 11.596639] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.596659] kasan_report+0x141/0x180 [ 11.596681] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.596707] __asan_report_load1_noabort+0x18/0x20 [ 11.596733] kmalloc_large_uaf+0x2f1/0x340 [ 11.596752] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 11.596773] ? __schedule+0x10cc/0x2b60 [ 11.596795] ? __pfx_read_tsc+0x10/0x10 [ 11.596815] ? ktime_get_ts64+0x86/0x230 [ 11.596838] kunit_try_run_case+0x1a5/0x480 [ 11.596863] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.596884] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.596907] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.596929] ? __kthread_parkme+0x82/0x180 [ 11.596949] ? preempt_count_sub+0x50/0x80 [ 11.596972] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.596994] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.597017] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.597040] kthread+0x337/0x6f0 [ 11.597150] ? trace_preempt_on+0x20/0xc0 [ 11.597173] ? __pfx_kthread+0x10/0x10 [ 11.597194] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.597214] ? calculate_sigpending+0x7b/0xa0 [ 11.597238] ? __pfx_kthread+0x10/0x10 [ 11.597258] ret_from_fork+0x116/0x1d0 [ 11.597277] ? __pfx_kthread+0x10/0x10 [ 11.597296] ret_from_fork_asm+0x1a/0x30 [ 11.597325] </TASK> [ 11.597336] [ 11.609813] The buggy address belongs to the physical page: [ 11.610071] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10394c [ 11.610633] flags: 0x200000000000000(node=0|zone=2) [ 11.611246] raw: 0200000000000000 ffffea00040e5408 ffff88815b039f80 0000000000000000 [ 11.611702] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 11.612226] page dumped because: kasan: bad access detected [ 11.612436] [ 11.612545] Memory state around the buggy address: [ 11.612775] ffff88810394bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.613424] ffff88810394bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.613871] >ffff88810394c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.614405] ^ [ 11.614852] ffff88810394c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.615365] ffff88810394c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.615793] ==================================================================