Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.328615] ================================================================== [ 29.328792] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 29.328850] Read of size 1 at addr fff00000c9a50000 by task kunit_try_catch/179 [ 29.328899] [ 29.329153] CPU: 0 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 29.329295] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.329323] Hardware name: linux,dummy-virt (DT) [ 29.329371] Call trace: [ 29.329410] show_stack+0x20/0x38 (C) [ 29.329475] dump_stack_lvl+0x8c/0xd0 [ 29.329520] print_report+0x118/0x5d0 [ 29.329581] kasan_report+0xdc/0x128 [ 29.329639] __asan_report_load1_noabort+0x20/0x30 [ 29.329692] kmalloc_large_uaf+0x2cc/0x2f8 [ 29.329748] kunit_try_run_case+0x170/0x3f0 [ 29.329813] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.329866] kthread+0x328/0x630 [ 29.329923] ret_from_fork+0x10/0x20 [ 29.329969] [ 29.330008] The buggy address belongs to the physical page: [ 29.330054] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a50 [ 29.330117] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.330280] raw: 0bfffe0000000000 ffffc1ffc3269508 fff00000da458d00 0000000000000000 [ 29.330385] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 29.330426] page dumped because: kasan: bad access detected [ 29.330464] [ 29.330482] Memory state around the buggy address: [ 29.330531] fff00000c9a4ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.330635] fff00000c9a4ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.330692] >fff00000c9a50000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.330790] ^ [ 29.330892] fff00000c9a50080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.330960] fff00000c9a50100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.331035] ==================================================================
[ 24.574892] ================================================================== [ 24.576070] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 24.577030] Read of size 1 at addr ffff888106198000 by task kunit_try_catch/196 [ 24.577845] [ 24.578051] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 24.578104] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.578116] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.578137] Call Trace: [ 24.578150] <TASK> [ 24.578169] dump_stack_lvl+0x73/0xb0 [ 24.578199] print_report+0xd1/0x610 [ 24.578222] ? __virt_addr_valid+0x1db/0x2d0 [ 24.578246] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.578266] ? kasan_addr_to_slab+0x11/0xa0 [ 24.578287] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.578307] kasan_report+0x141/0x180 [ 24.578329] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.578354] __asan_report_load1_noabort+0x18/0x20 [ 24.578378] kmalloc_large_uaf+0x2f1/0x340 [ 24.578398] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 24.578420] ? __schedule+0x10cc/0x2b60 [ 24.578442] ? __pfx_read_tsc+0x10/0x10 [ 24.578464] ? ktime_get_ts64+0x86/0x230 [ 24.578503] kunit_try_run_case+0x1a5/0x480 [ 24.578526] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.578546] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.578569] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.578591] ? __kthread_parkme+0x82/0x180 [ 24.578612] ? preempt_count_sub+0x50/0x80 [ 24.578635] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.578656] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.578681] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.578718] kthread+0x337/0x6f0 [ 24.578738] ? trace_preempt_on+0x20/0xc0 [ 24.578761] ? __pfx_kthread+0x10/0x10 [ 24.578798] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.578819] ? calculate_sigpending+0x7b/0xa0 [ 24.578843] ? __pfx_kthread+0x10/0x10 [ 24.578864] ret_from_fork+0x116/0x1d0 [ 24.578883] ? __pfx_kthread+0x10/0x10 [ 24.578903] ret_from_fork_asm+0x1a/0x30 [ 24.578934] </TASK> [ 24.578946] [ 24.588976] The buggy address belongs to the physical page: [ 24.589407] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106198 [ 24.589975] flags: 0x200000000000000(node=0|zone=2) [ 24.590201] raw: 0200000000000000 ffffea0004186708 ffff88815b139fc0 0000000000000000 [ 24.590514] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 24.590972] page dumped because: kasan: bad access detected [ 24.591204] [ 24.591269] Memory state around the buggy address: [ 24.591622] ffff888106197f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.591994] ffff888106197f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.592374] >ffff888106198000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.592760] ^ [ 24.592961] ffff888106198080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.593230] ffff888106198100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.593561] ==================================================================