Date
June 5, 2025, 7:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.705752] ================================================================== [ 24.705880] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 24.705984] Read of size 1 at addr fff00000c77d0000 by task kunit_try_catch/148 [ 24.706096] [ 24.706161] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT [ 24.706377] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.706443] Hardware name: linux,dummy-virt (DT) [ 24.706518] Call trace: [ 24.706569] show_stack+0x20/0x38 (C) [ 24.706681] dump_stack_lvl+0x8c/0xd0 [ 24.706793] print_report+0x118/0x608 [ 24.706901] kasan_report+0xdc/0x128 [ 24.707011] __asan_report_load1_noabort+0x20/0x30 [ 24.707144] kmalloc_large_uaf+0x2cc/0x2f8 [ 24.707362] kunit_try_run_case+0x170/0x3f0 [ 24.707866] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.708022] kthread+0x328/0x630 [ 24.708143] ret_from_fork+0x10/0x20 [ 24.708273] [ 24.708495] The buggy address belongs to the physical page: [ 24.708609] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d0 [ 24.708731] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.708874] raw: 0bfffe0000000000 ffffc1ffc31df508 fff00000da46ac40 0000000000000000 [ 24.709053] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 24.709369] page dumped because: kasan: bad access detected [ 24.709477] [ 24.709522] Memory state around the buggy address: [ 24.709595] fff00000c77cff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.709720] fff00000c77cff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.709826] >fff00000c77d0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.709996] ^ [ 24.710115] fff00000c77d0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.710311] fff00000c77d0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.710427] ==================================================================
[ 10.891408] ================================================================== [ 10.892684] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 10.893400] Read of size 1 at addr ffff888102418000 by task kunit_try_catch/165 [ 10.893958] [ 10.894049] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT(voluntary) [ 10.894093] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.894104] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.894124] Call Trace: [ 10.894135] <TASK> [ 10.894149] dump_stack_lvl+0x73/0xb0 [ 10.894175] print_report+0xd1/0x650 [ 10.894196] ? __virt_addr_valid+0x1db/0x2d0 [ 10.894219] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.894239] ? kasan_addr_to_slab+0x11/0xa0 [ 10.894259] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.894280] kasan_report+0x141/0x180 [ 10.894302] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.894327] __asan_report_load1_noabort+0x18/0x20 [ 10.894351] kmalloc_large_uaf+0x2f1/0x340 [ 10.894371] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 10.894392] ? __schedule+0x10cc/0x2b60 [ 10.894415] ? __pfx_read_tsc+0x10/0x10 [ 10.894435] ? ktime_get_ts64+0x86/0x230 [ 10.894458] kunit_try_run_case+0x1a5/0x480 [ 10.894478] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.894497] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.894521] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.894545] ? __kthread_parkme+0x82/0x180 [ 10.894564] ? preempt_count_sub+0x50/0x80 [ 10.894587] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.894607] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.894639] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.894662] kthread+0x337/0x6f0 [ 10.894681] ? trace_preempt_on+0x20/0xc0 [ 10.894702] ? __pfx_kthread+0x10/0x10 [ 10.894722] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.894743] ? calculate_sigpending+0x7b/0xa0 [ 10.894766] ? __pfx_kthread+0x10/0x10 [ 10.894787] ret_from_fork+0x116/0x1d0 [ 10.894804] ? __pfx_kthread+0x10/0x10 [ 10.894824] ret_from_fork_asm+0x1a/0x30 [ 10.894853] </TASK> [ 10.894862] [ 10.907358] The buggy address belongs to the physical page: [ 10.907909] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102418 [ 10.908738] flags: 0x200000000000000(node=0|zone=2) [ 10.909284] raw: 0200000000000000 ffff88815b039f80 ffff88815b039f80 0000000000000000 [ 10.909727] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 10.910165] page dumped because: kasan: bad access detected [ 10.910338] [ 10.910411] Memory state around the buggy address: [ 10.910564] ffff888102417f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.911338] ffff888102417f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.912096] >ffff888102418000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.912750] ^ [ 10.913149] ffff888102418080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.913565] ffff888102418100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.914235] ==================================================================