Date
July 8, 2025, 7:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.050875] ================================================================== [ 19.051111] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 19.051212] Read of size 1 at addr fff00000c7814000 by task kunit_try_catch/148 [ 19.051569] [ 19.051691] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.051807] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.051832] Hardware name: linux,dummy-virt (DT) [ 19.051993] Call trace: [ 19.052054] show_stack+0x20/0x38 (C) [ 19.052219] dump_stack_lvl+0x8c/0xd0 [ 19.052384] print_report+0x118/0x608 [ 19.052610] kasan_report+0xdc/0x128 [ 19.052931] __asan_report_load1_noabort+0x20/0x30 [ 19.053190] kmalloc_large_uaf+0x2cc/0x2f8 [ 19.053511] kunit_try_run_case+0x170/0x3f0 [ 19.053572] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.054027] kthread+0x328/0x630 [ 19.054114] ret_from_fork+0x10/0x20 [ 19.054197] [ 19.054375] The buggy address belongs to the physical page: [ 19.054413] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107814 [ 19.054814] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.055010] raw: 0bfffe0000000000 ffffc1ffc31e0608 fff00000da479c40 0000000000000000 [ 19.055301] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 19.055374] page dumped because: kasan: bad access detected [ 19.055404] [ 19.055454] Memory state around the buggy address: [ 19.055822] fff00000c7813f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.055944] fff00000c7813f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.055988] >fff00000c7814000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.056166] ^ [ 19.056514] fff00000c7814080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.056588] fff00000c7814100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.056694] ==================================================================
[ 12.331576] ================================================================== [ 12.333574] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.333829] Read of size 1 at addr ffff888102838000 by task kunit_try_catch/165 [ 12.334078] [ 12.334261] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.334307] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.334318] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.334339] Call Trace: [ 12.334352] <TASK> [ 12.334369] dump_stack_lvl+0x73/0xb0 [ 12.334399] print_report+0xd1/0x650 [ 12.334420] ? __virt_addr_valid+0x1db/0x2d0 [ 12.334443] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.334462] ? kasan_addr_to_slab+0x11/0xa0 [ 12.334481] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.334501] kasan_report+0x141/0x180 [ 12.334521] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.334546] __asan_report_load1_noabort+0x18/0x20 [ 12.334568] kmalloc_large_uaf+0x2f1/0x340 [ 12.334588] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.334608] ? __schedule+0x10cc/0x2b60 [ 12.334630] ? __pfx_read_tsc+0x10/0x10 [ 12.334650] ? ktime_get_ts64+0x86/0x230 [ 12.334724] kunit_try_run_case+0x1a5/0x480 [ 12.334750] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.334772] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.334795] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.334817] ? __kthread_parkme+0x82/0x180 [ 12.334837] ? preempt_count_sub+0x50/0x80 [ 12.334859] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.334881] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.334903] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.334925] kthread+0x337/0x6f0 [ 12.334943] ? trace_preempt_on+0x20/0xc0 [ 12.334964] ? __pfx_kthread+0x10/0x10 [ 12.334984] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.335003] ? calculate_sigpending+0x7b/0xa0 [ 12.335026] ? __pfx_kthread+0x10/0x10 [ 12.335059] ret_from_fork+0x116/0x1d0 [ 12.335107] ? __pfx_kthread+0x10/0x10 [ 12.335127] ret_from_fork_asm+0x1a/0x30 [ 12.335158] </TASK> [ 12.335171] [ 12.348302] The buggy address belongs to the physical page: [ 12.348720] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102838 [ 12.348972] flags: 0x200000000000000(node=0|zone=2) [ 12.349378] raw: 0200000000000000 ffff88815b139f80 ffff88815b139f80 0000000000000000 [ 12.350116] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.351054] page dumped because: kasan: bad access detected [ 12.351608] [ 12.351785] Memory state around the buggy address: [ 12.352239] ffff888102837f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.352882] ffff888102837f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.353176] >ffff888102838000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.353804] ^ [ 12.354195] ffff888102838080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.354893] ffff888102838100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.355181] ==================================================================