Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.014968] ================================================================== [ 22.015162] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 22.015335] Read of size 1 at addr fff00000c642c000 by task kunit_try_catch/152 [ 22.015470] [ 22.015562] CPU: 1 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 22.015771] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.015866] Hardware name: linux,dummy-virt (DT) [ 22.016178] Call trace: [ 22.016306] show_stack+0x20/0x38 (C) [ 22.016457] dump_stack_lvl+0x8c/0xd0 [ 22.016927] print_report+0x118/0x608 [ 22.017103] kasan_report+0xdc/0x128 [ 22.017267] __asan_report_load1_noabort+0x20/0x30 [ 22.017417] kmalloc_large_uaf+0x2cc/0x2f8 [ 22.017535] kunit_try_run_case+0x170/0x3f0 [ 22.017754] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.017916] kthread+0x328/0x630 [ 22.018212] ret_from_fork+0x10/0x20 [ 22.018359] [ 22.018469] The buggy address belongs to the physical page: [ 22.018524] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10642c [ 22.018611] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.018831] raw: 0bfffe0000000000 fff00000da4a4d80 fff00000da4a4d80 0000000000000000 [ 22.018969] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 22.019046] page dumped because: kasan: bad access detected [ 22.019104] [ 22.019135] Memory state around the buggy address: [ 22.019200] fff00000c642bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.019288] fff00000c642bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.019381] >fff00000c642c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.019466] ^ [ 22.019522] fff00000c642c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.019602] fff00000c642c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.019689] ==================================================================
[ 13.003330] ================================================================== [ 13.004393] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 13.004863] Read of size 1 at addr ffff888102274000 by task kunit_try_catch/168 [ 13.005132] [ 13.005244] CPU: 0 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 13.005304] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.005317] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.005341] Call Trace: [ 13.005358] <TASK> [ 13.005379] dump_stack_lvl+0x73/0xb0 [ 13.005417] print_report+0xd1/0x650 [ 13.005442] ? __virt_addr_valid+0x1db/0x2d0 [ 13.005465] ? kmalloc_large_uaf+0x2f1/0x340 [ 13.005486] ? kasan_addr_to_slab+0x11/0xa0 [ 13.005507] ? kmalloc_large_uaf+0x2f1/0x340 [ 13.005528] kasan_report+0x141/0x180 [ 13.005550] ? kmalloc_large_uaf+0x2f1/0x340 [ 13.005603] __asan_report_load1_noabort+0x18/0x20 [ 13.005635] kmalloc_large_uaf+0x2f1/0x340 [ 13.005667] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 13.005700] ? __schedule+0x10cc/0x2b30 [ 13.006312] ? __pfx_read_tsc+0x10/0x10 [ 13.006368] ? ktime_get_ts64+0x86/0x230 [ 13.006479] kunit_try_run_case+0x1a5/0x480 [ 13.006536] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.006592] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.006638] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.006676] ? __kthread_parkme+0x82/0x180 [ 13.006713] ? preempt_count_sub+0x50/0x80 [ 13.006756] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.006793] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.006828] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.006862] kthread+0x337/0x6f0 [ 13.006890] ? trace_preempt_on+0x20/0xc0 [ 13.006930] ? __pfx_kthread+0x10/0x10 [ 13.006958] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.006990] ? calculate_sigpending+0x7b/0xa0 [ 13.007025] ? __pfx_kthread+0x10/0x10 [ 13.007056] ret_from_fork+0x41/0x80 [ 13.007092] ? __pfx_kthread+0x10/0x10 [ 13.007121] ret_from_fork_asm+0x1a/0x30 [ 13.007180] </TASK> [ 13.007197] [ 13.019975] The buggy address belongs to the physical page: [ 13.020971] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102274 [ 13.021352] flags: 0x200000000000000(node=0|zone=2) [ 13.022035] raw: 0200000000000000 ffffea0004089e08 ffff88815b039a80 0000000000000000 [ 13.022467] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.023460] page dumped because: kasan: bad access detected [ 13.023713] [ 13.023885] Memory state around the buggy address: [ 13.024259] ffff888102273f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.024542] ffff888102273f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.025427] >ffff888102274000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.026416] ^ [ 13.026594] ffff888102274080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.026840] ffff888102274100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.027548] ==================================================================