Date
July 5, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.885508] ================================================================== [ 17.885570] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 17.885663] Read of size 1 at addr fff00000c7828000 by task kunit_try_catch/148 [ 17.885710] [ 17.885739] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.885983] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.886019] Hardware name: linux,dummy-virt (DT) [ 17.886048] Call trace: [ 17.886087] show_stack+0x20/0x38 (C) [ 17.886365] dump_stack_lvl+0x8c/0xd0 [ 17.886430] print_report+0x118/0x608 [ 17.886475] kasan_report+0xdc/0x128 [ 17.886519] __asan_report_load1_noabort+0x20/0x30 [ 17.886568] kmalloc_large_uaf+0x2cc/0x2f8 [ 17.886611] kunit_try_run_case+0x170/0x3f0 [ 17.886655] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.886709] kthread+0x328/0x630 [ 17.886831] ret_from_fork+0x10/0x20 [ 17.886915] [ 17.886937] The buggy address belongs to the physical page: [ 17.886966] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107828 [ 17.887020] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.887078] raw: 0bfffe0000000000 ffffc1ffc31e0b08 fff00000da457c40 0000000000000000 [ 17.887327] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 17.889384] page dumped because: kasan: bad access detected [ 17.889430] [ 17.889449] Memory state around the buggy address: [ 17.889483] fff00000c7827f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.889525] fff00000c7827f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.889566] >fff00000c7828000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.889602] ^ [ 17.889629] fff00000c7828080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.889668] fff00000c7828100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.889703] ==================================================================
[ 12.961037] ================================================================== [ 12.961756] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.962033] Read of size 1 at addr ffff888102af8000 by task kunit_try_catch/166 [ 12.963026] [ 12.963357] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.963416] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.963431] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.963455] Call Trace: [ 12.963471] <TASK> [ 12.963492] dump_stack_lvl+0x73/0xb0 [ 12.963530] print_report+0xd1/0x650 [ 12.963555] ? __virt_addr_valid+0x1db/0x2d0 [ 12.963581] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.963604] ? kasan_addr_to_slab+0x11/0xa0 [ 12.963626] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.963649] kasan_report+0x141/0x180 [ 12.963673] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.963701] __asan_report_load1_noabort+0x18/0x20 [ 12.963727] kmalloc_large_uaf+0x2f1/0x340 [ 12.963749] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.963773] ? __schedule+0x10cc/0x2b60 [ 12.963814] ? __pfx_read_tsc+0x10/0x10 [ 12.963837] ? ktime_get_ts64+0x86/0x230 [ 12.963864] kunit_try_run_case+0x1a5/0x480 [ 12.963892] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.963915] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.963941] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.963965] ? __kthread_parkme+0x82/0x180 [ 12.963988] ? preempt_count_sub+0x50/0x80 [ 12.964014] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.964041] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.964065] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.964090] kthread+0x337/0x6f0 [ 12.964111] ? trace_preempt_on+0x20/0xc0 [ 12.964148] ? __pfx_kthread+0x10/0x10 [ 12.964171] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.964194] ? calculate_sigpending+0x7b/0xa0 [ 12.964221] ? __pfx_kthread+0x10/0x10 [ 12.964244] ret_from_fork+0x116/0x1d0 [ 12.964265] ? __pfx_kthread+0x10/0x10 [ 12.964287] ret_from_fork_asm+0x1a/0x30 [ 12.964321] </TASK> [ 12.964334] [ 12.976862] The buggy address belongs to the physical page: [ 12.977428] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102af8 [ 12.977825] flags: 0x200000000000000(node=0|zone=2) [ 12.978329] raw: 0200000000000000 ffffea00040abf08 ffff88815b039f80 0000000000000000 [ 12.978694] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.979090] page dumped because: kasan: bad access detected [ 12.979583] [ 12.979881] Memory state around the buggy address: [ 12.980155] ffff888102af7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.980770] ffff888102af7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.981823] >ffff888102af8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.982085] ^ [ 12.982233] ffff888102af8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.982490] ffff888102af8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.982736] ==================================================================