Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.994035] ================================================================== [ 16.994209] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 16.995660] Read of size 1 at addr fff00000c65b0000 by task kunit_try_catch/148 [ 16.995793] [ 16.995873] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 16.996049] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.996105] Hardware name: linux,dummy-virt (DT) [ 16.996170] Call trace: [ 16.996226] show_stack+0x20/0x38 (C) [ 16.996352] dump_stack_lvl+0x8c/0xd0 [ 16.996444] print_report+0x118/0x608 [ 16.996543] kasan_report+0xdc/0x128 [ 16.996634] __asan_report_load1_noabort+0x20/0x30 [ 16.996999] kmalloc_large_uaf+0x2cc/0x2f8 [ 16.997111] kunit_try_run_case+0x170/0x3f0 [ 16.997230] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.997439] kthread+0x328/0x630 [ 16.997615] ret_from_fork+0x10/0x20 [ 16.997786] [ 16.997863] The buggy address belongs to the physical page: [ 16.997983] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065b0 [ 16.998107] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.998281] raw: 0bfffe0000000000 ffffc1ffc3196d08 fff00000da448c40 0000000000000000 [ 16.998418] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.998505] page dumped because: kasan: bad access detected [ 16.998912] [ 16.998982] Memory state around the buggy address: [ 16.999101] fff00000c65aff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.999211] fff00000c65aff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.999290] >fff00000c65b0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.999365] ^ [ 16.999572] fff00000c65b0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.999663] fff00000c65b0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.999751] ==================================================================
[ 10.518637] ================================================================== [ 10.519359] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 10.520053] Read of size 1 at addr ffff888102a04000 by task kunit_try_catch/166 [ 10.520867] [ 10.521053] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 10.521099] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.521111] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.521134] Call Trace: [ 10.521145] <TASK> [ 10.521160] dump_stack_lvl+0x73/0xb0 [ 10.521207] print_report+0xd1/0x650 [ 10.521230] ? __virt_addr_valid+0x1db/0x2d0 [ 10.521253] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.521273] ? kasan_addr_to_slab+0x11/0xa0 [ 10.521294] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.521316] kasan_report+0x141/0x180 [ 10.521338] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.521364] __asan_report_load1_noabort+0x18/0x20 [ 10.521393] kmalloc_large_uaf+0x2f1/0x340 [ 10.521414] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 10.521436] ? __schedule+0x10cc/0x2b60 [ 10.521459] ? __pfx_read_tsc+0x10/0x10 [ 10.521480] ? ktime_get_ts64+0x86/0x230 [ 10.521504] kunit_try_run_case+0x1a5/0x480 [ 10.521525] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.521544] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.521568] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.521592] ? __kthread_parkme+0x82/0x180 [ 10.521612] ? preempt_count_sub+0x50/0x80 [ 10.521635] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.521655] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.521678] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.521720] kthread+0x337/0x6f0 [ 10.521740] ? trace_preempt_on+0x20/0xc0 [ 10.521763] ? __pfx_kthread+0x10/0x10 [ 10.521783] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.521805] ? calculate_sigpending+0x7b/0xa0 [ 10.521828] ? __pfx_kthread+0x10/0x10 [ 10.521849] ret_from_fork+0x116/0x1d0 [ 10.521867] ? __pfx_kthread+0x10/0x10 [ 10.521886] ret_from_fork_asm+0x1a/0x30 [ 10.521917] </TASK> [ 10.521926] [ 10.534561] The buggy address belongs to the physical page: [ 10.534756] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a04 [ 10.535001] flags: 0x200000000000000(node=0|zone=2) [ 10.535174] raw: 0200000000000000 ffffea00040a8208 ffff888154839f80 0000000000000000 [ 10.535417] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 10.535645] page dumped because: kasan: bad access detected [ 10.535817] [ 10.535885] Memory state around the buggy address: [ 10.536041] ffff888102a03f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.536256] ffff888102a03f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.536884] >ffff888102a04000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.537603] ^ [ 10.537959] ffff888102a04080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.538722] ffff888102a04100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.539433] ==================================================================