Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.370386] ================================================================== [ 19.370461] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 19.370512] Read of size 1 at addr fff00000c76b4000 by task kunit_try_catch/149 [ 19.370560] [ 19.370589] CPU: 1 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.370670] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.370695] Hardware name: linux,dummy-virt (DT) [ 19.370725] Call trace: [ 19.370746] show_stack+0x20/0x38 (C) [ 19.370794] dump_stack_lvl+0x8c/0xd0 [ 19.370843] print_report+0x118/0x608 [ 19.370890] kasan_report+0xdc/0x128 [ 19.370935] __asan_report_load1_noabort+0x20/0x30 [ 19.370986] kmalloc_large_uaf+0x2cc/0x2f8 [ 19.371031] kunit_try_run_case+0x170/0x3f0 [ 19.371079] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.371131] kthread+0x328/0x630 [ 19.371173] ret_from_fork+0x10/0x20 [ 19.371378] [ 19.371476] The buggy address belongs to the physical page: [ 19.371638] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076b4 [ 19.371692] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.371751] raw: 0bfffe0000000000 ffffc1ffc31dae08 fff00000da478c40 0000000000000000 [ 19.371802] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 19.371842] page dumped because: kasan: bad access detected [ 19.371872] [ 19.371890] Memory state around the buggy address: [ 19.371930] fff00000c76b3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.372074] fff00000c76b3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.372117] >fff00000c76b4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.372154] ^ [ 19.372181] fff00000c76b4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.372222] fff00000c76b4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.372259] ==================================================================
[ 12.141453] ================================================================== [ 12.141895] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.142152] Read of size 1 at addr ffff88810a5d8000 by task kunit_try_catch/165 [ 12.142374] [ 12.142463] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.142509] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.142519] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.142541] Call Trace: [ 12.142552] <TASK> [ 12.142571] dump_stack_lvl+0x73/0xb0 [ 12.142602] print_report+0xd1/0x650 [ 12.142626] ? __virt_addr_valid+0x1db/0x2d0 [ 12.142649] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.142669] ? kasan_addr_to_slab+0x11/0xa0 [ 12.142688] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.142715] kasan_report+0x141/0x180 [ 12.142736] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.142761] __asan_report_load1_noabort+0x18/0x20 [ 12.142784] kmalloc_large_uaf+0x2f1/0x340 [ 12.142804] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.142825] ? __schedule+0x10cc/0x2b60 [ 12.142846] ? __pfx_read_tsc+0x10/0x10 [ 12.142868] ? ktime_get_ts64+0x86/0x230 [ 12.142891] kunit_try_run_case+0x1a5/0x480 [ 12.142915] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.143233] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.143284] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.143307] ? __kthread_parkme+0x82/0x180 [ 12.143330] ? preempt_count_sub+0x50/0x80 [ 12.143354] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.143378] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.143403] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.143427] kthread+0x337/0x6f0 [ 12.143446] ? trace_preempt_on+0x20/0xc0 [ 12.143469] ? __pfx_kthread+0x10/0x10 [ 12.143489] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.143510] ? calculate_sigpending+0x7b/0xa0 [ 12.143535] ? __pfx_kthread+0x10/0x10 [ 12.143556] ret_from_fork+0x116/0x1d0 [ 12.143574] ? __pfx_kthread+0x10/0x10 [ 12.143594] ret_from_fork_asm+0x1a/0x30 [ 12.143624] </TASK> [ 12.143635] [ 12.156778] The buggy address belongs to the physical page: [ 12.157028] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a5d8 [ 12.157605] flags: 0x200000000000000(node=0|zone=2) [ 12.157868] raw: 0200000000000000 ffffea0004297708 ffff88815b139f80 0000000000000000 [ 12.158254] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.158603] page dumped because: kasan: bad access detected [ 12.158856] [ 12.158938] Memory state around the buggy address: [ 12.159169] ffff88810a5d7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.159552] ffff88810a5d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.159784] >ffff88810a5d8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.160106] ^ [ 12.160345] ffff88810a5d8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.160559] ffff88810a5d8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.160842] ==================================================================