Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.951446] ================================================================== [ 18.951727] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 18.952030] Read of size 1 at addr fff00000c66a4000 by task kunit_try_catch/149 [ 18.952427] [ 18.952617] CPU: 0 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.953731] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.953837] Hardware name: linux,dummy-virt (DT) [ 18.953948] Call trace: [ 18.954028] show_stack+0x20/0x38 (C) [ 18.954402] dump_stack_lvl+0x8c/0xd0 [ 18.954510] print_report+0x118/0x608 [ 18.954624] kasan_report+0xdc/0x128 [ 18.954764] __asan_report_load1_noabort+0x20/0x30 [ 18.954901] kmalloc_large_uaf+0x2cc/0x2f8 [ 18.955087] kunit_try_run_case+0x170/0x3f0 [ 18.955393] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.955597] kthread+0x328/0x630 [ 18.955977] ret_from_fork+0x10/0x20 [ 18.956112] [ 18.956171] The buggy address belongs to the physical page: [ 18.956249] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1066a4 [ 18.956378] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.956542] raw: 0bfffe0000000000 ffffc1ffc31e4008 fff00000da456c40 0000000000000000 [ 18.956708] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.956809] page dumped because: kasan: bad access detected [ 18.956897] [ 18.956943] Memory state around the buggy address: [ 18.957020] fff00000c66a3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.957123] fff00000c66a3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.957262] >fff00000c66a4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.957392] ^ [ 18.957514] fff00000c66a4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.957666] fff00000c66a4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.957757] ==================================================================
[ 12.170966] ================================================================== [ 12.171443] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.171774] Read of size 1 at addr ffff888102bb4000 by task kunit_try_catch/166 [ 12.172092] [ 12.172179] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.172218] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.172229] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.172248] Call Trace: [ 12.172259] <TASK> [ 12.172272] dump_stack_lvl+0x73/0xb0 [ 12.172298] print_report+0xd1/0x650 [ 12.172320] ? __virt_addr_valid+0x1db/0x2d0 [ 12.172342] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.172361] ? kasan_addr_to_slab+0x11/0xa0 [ 12.172380] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.172400] kasan_report+0x141/0x180 [ 12.172421] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.172446] __asan_report_load1_noabort+0x18/0x20 [ 12.172469] kmalloc_large_uaf+0x2f1/0x340 [ 12.172489] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.172509] ? __schedule+0x10cc/0x2b60 [ 12.172530] ? __pfx_read_tsc+0x10/0x10 [ 12.172550] ? ktime_get_ts64+0x86/0x230 [ 12.172573] kunit_try_run_case+0x1a5/0x480 [ 12.172596] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.172617] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.172639] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.172661] ? __kthread_parkme+0x82/0x180 [ 12.172681] ? preempt_count_sub+0x50/0x80 [ 12.172704] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.172727] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.172928] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.172961] kthread+0x337/0x6f0 [ 12.172981] ? trace_preempt_on+0x20/0xc0 [ 12.173006] ? __pfx_kthread+0x10/0x10 [ 12.173027] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.173048] ? calculate_sigpending+0x7b/0xa0 [ 12.173072] ? __pfx_kthread+0x10/0x10 [ 12.173094] ret_from_fork+0x116/0x1d0 [ 12.173112] ? __pfx_kthread+0x10/0x10 [ 12.173132] ret_from_fork_asm+0x1a/0x30 [ 12.173162] </TASK> [ 12.173173] [ 12.180332] The buggy address belongs to the physical page: [ 12.180595] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bb4 [ 12.181025] flags: 0x200000000000000(node=0|zone=2) [ 12.181264] raw: 0200000000000000 ffffea00040aee08 ffff88815b039f80 0000000000000000 [ 12.181501] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.181918] page dumped because: kasan: bad access detected [ 12.182172] [ 12.182268] Memory state around the buggy address: [ 12.182467] ffff888102bb3f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.182975] ffff888102bb3f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.183259] >ffff888102bb4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.183534] ^ [ 12.183777] ffff888102bb4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.184071] ffff888102bb4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.184357] ==================================================================