Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.230897] ================================================================== [ 21.231093] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 21.231240] Read of size 1 at addr fff00000c788c000 by task kunit_try_catch/150 [ 21.231359] [ 21.231444] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.231652] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.231716] Hardware name: linux,dummy-virt (DT) [ 21.232036] Call trace: [ 21.232123] show_stack+0x20/0x38 (C) [ 21.232300] dump_stack_lvl+0x8c/0xd0 [ 21.232434] print_report+0x118/0x608 [ 21.232531] kasan_report+0xdc/0x128 [ 21.232684] __asan_report_load1_noabort+0x20/0x30 [ 21.232866] kmalloc_large_uaf+0x2cc/0x2f8 [ 21.233028] kunit_try_run_case+0x170/0x3f0 [ 21.233188] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.233361] kthread+0x328/0x630 [ 21.233503] ret_from_fork+0x10/0x20 [ 21.233632] [ 21.233679] The buggy address belongs to the physical page: [ 21.233760] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10788c [ 21.233869] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.234035] raw: 0bfffe0000000000 ffffc1ffc31e2408 fff00000da47ee00 0000000000000000 [ 21.234196] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 21.234316] page dumped because: kasan: bad access detected [ 21.234406] [ 21.234453] Memory state around the buggy address: [ 21.234533] fff00000c788bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.234642] fff00000c788bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.234761] >fff00000c788c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.234858] ^ [ 21.234931] fff00000c788c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.235034] fff00000c788c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.235127] ==================================================================
[ 18.058731] ================================================================== [ 18.060300] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 18.060937] Read of size 1 at addr ffff8881030bc000 by task kunit_try_catch/168 [ 18.061638] [ 18.061922] CPU: 1 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 18.062142] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.062183] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.062242] Call Trace: [ 18.062281] <TASK> [ 18.062456] dump_stack_lvl+0x73/0xb0 [ 18.062544] print_report+0xd1/0x650 [ 18.062603] ? __virt_addr_valid+0x1db/0x2d0 [ 18.062639] ? kmalloc_large_uaf+0x2f1/0x340 [ 18.062672] ? kasan_addr_to_slab+0x11/0xa0 [ 18.062704] ? kmalloc_large_uaf+0x2f1/0x340 [ 18.062766] kasan_report+0x141/0x180 [ 18.062840] ? kmalloc_large_uaf+0x2f1/0x340 [ 18.062961] __asan_report_load1_noabort+0x18/0x20 [ 18.063039] kmalloc_large_uaf+0x2f1/0x340 [ 18.063224] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 18.063329] ? __schedule+0x10cc/0x2b60 [ 18.063456] ? __pfx_read_tsc+0x10/0x10 [ 18.063529] ? ktime_get_ts64+0x86/0x230 [ 18.063607] kunit_try_run_case+0x1a5/0x480 [ 18.063668] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.063705] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.063743] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.063778] ? __kthread_parkme+0x82/0x180 [ 18.063813] ? preempt_count_sub+0x50/0x80 [ 18.063851] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.063899] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.063935] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.064002] kthread+0x337/0x6f0 [ 18.064037] ? trace_preempt_on+0x20/0xc0 [ 18.064138] ? __pfx_kthread+0x10/0x10 [ 18.064167] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.064200] ? calculate_sigpending+0x7b/0xa0 [ 18.064232] ? __pfx_kthread+0x10/0x10 [ 18.064260] ret_from_fork+0x41/0x80 [ 18.064318] ? __pfx_kthread+0x10/0x10 [ 18.064372] ret_from_fork_asm+0x1a/0x30 [ 18.064459] </TASK> [ 18.064491] [ 18.085480] The buggy address belongs to the physical page: [ 18.086243] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1030bc [ 18.086891] flags: 0x200000000000000(node=0|zone=2) [ 18.087553] raw: 0200000000000000 ffffea00040e4208 ffff88815b139a80 0000000000000000 [ 18.088406] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.089232] page dumped because: kasan: bad access detected [ 18.089483] [ 18.089574] Memory state around the buggy address: [ 18.089752] ffff8881030bbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.090133] ffff8881030bbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.091582] >ffff8881030bc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.092893] ^ [ 18.093780] ffff8881030bc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.094467] ffff8881030bc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.094997] ==================================================================