Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.126773] ================================================================== [ 30.127244] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 30.127474] Read of size 1 at addr fff00000c9ae0000 by task kunit_try_catch/181 [ 30.127524] [ 30.127565] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 30.127652] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.127679] Hardware name: linux,dummy-virt (DT) [ 30.128199] Call trace: [ 30.128262] show_stack+0x20/0x38 (C) [ 30.128324] dump_stack_lvl+0x8c/0xd0 [ 30.128378] print_report+0x118/0x5e8 [ 30.128421] kasan_report+0xdc/0x128 [ 30.128767] __asan_report_load1_noabort+0x20/0x30 [ 30.128818] kmalloc_large_uaf+0x2cc/0x2f8 [ 30.128864] kunit_try_run_case+0x170/0x3f0 [ 30.128920] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.129041] kthread+0x328/0x630 [ 30.129125] ret_from_fork+0x10/0x20 [ 30.129412] [ 30.129437] The buggy address belongs to the physical page: [ 30.129501] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ae0 [ 30.129668] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.129737] raw: 0bfffe0000000000 ffffc1ffc326b908 fff00000da44ed00 0000000000000000 [ 30.129810] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 30.129852] page dumped because: kasan: bad access detected [ 30.129887] [ 30.129923] Memory state around the buggy address: [ 30.129955] fff00000c9adff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.129996] fff00000c9adff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.130193] >fff00000c9ae0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.130357] ^ [ 30.130460] fff00000c9ae0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.130512] fff00000c9ae0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.130595] ==================================================================
[ 24.604358] ================================================================== [ 24.605062] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 24.605308] Read of size 1 at addr ffff8881060d8000 by task kunit_try_catch/197 [ 24.605962] [ 24.606144] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 24.606211] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.606223] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.606245] Call Trace: [ 24.606258] <TASK> [ 24.606278] dump_stack_lvl+0x73/0xb0 [ 24.606311] print_report+0xd1/0x640 [ 24.606335] ? __virt_addr_valid+0x1db/0x2d0 [ 24.606359] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.606380] ? kasan_addr_to_slab+0x11/0xa0 [ 24.606400] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.606421] kasan_report+0x141/0x180 [ 24.606442] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.606467] __asan_report_load1_noabort+0x18/0x20 [ 24.606491] kmalloc_large_uaf+0x2f1/0x340 [ 24.606512] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 24.606534] ? __schedule+0x10da/0x2b60 [ 24.606559] ? __pfx_read_tsc+0x10/0x10 [ 24.606582] ? ktime_get_ts64+0x86/0x230 [ 24.606607] kunit_try_run_case+0x1a5/0x480 [ 24.606633] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.606655] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.606679] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.606705] ? __kthread_parkme+0x82/0x180 [ 24.606737] ? preempt_count_sub+0x50/0x80 [ 24.606760] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.606784] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.606807] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.606830] kthread+0x337/0x6f0 [ 24.606850] ? trace_preempt_on+0x20/0xc0 [ 24.606875] ? __pfx_kthread+0x10/0x10 [ 24.606896] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.606919] ? calculate_sigpending+0x7b/0xa0 [ 24.606943] ? __pfx_kthread+0x10/0x10 [ 24.607101] ret_from_fork+0x116/0x1d0 [ 24.607123] ? __pfx_kthread+0x10/0x10 [ 24.607143] ret_from_fork_asm+0x1a/0x30 [ 24.607189] </TASK> [ 24.607201] [ 24.619361] The buggy address belongs to the physical page: [ 24.619574] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060d8 [ 24.619833] flags: 0x200000000000000(node=0|zone=2) [ 24.620124] raw: 0200000000000000 ffffea0004183708 ffff88815b139fc0 0000000000000000 [ 24.620741] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 24.621277] page dumped because: kasan: bad access detected [ 24.621445] [ 24.621509] Memory state around the buggy address: [ 24.621663] ffff8881060d7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.621874] ffff8881060d7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.622481] >ffff8881060d8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.623407] ^ [ 24.623781] ffff8881060d8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.624643] ffff8881060d8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.625429] ==================================================================