Date
June 23, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.356401] ================================================================== [ 32.356480] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 32.356550] Read of size 1 at addr fff00000c5778000 by task kunit_try_catch/160 [ 32.356608] [ 32.356648] CPU: 1 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT [ 32.356749] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.356779] Hardware name: linux,dummy-virt (DT) [ 32.356816] Call trace: [ 32.356843] show_stack+0x20/0x38 (C) [ 32.356905] dump_stack_lvl+0x8c/0xd0 [ 32.356962] print_report+0x118/0x608 [ 32.357020] kasan_report+0xdc/0x128 [ 32.357106] __asan_report_load1_noabort+0x20/0x30 [ 32.357164] kmalloc_large_uaf+0x2cc/0x2f8 [ 32.357218] kunit_try_run_case+0x170/0x3f0 [ 32.357275] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.357336] kthread+0x328/0x630 [ 32.357386] ret_from_fork+0x10/0x20 [ 32.357443] [ 32.357469] The buggy address belongs to the physical page: [ 32.357504] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105778 [ 32.357562] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.357636] raw: 0bfffe0000000000 ffffc1ffc315df08 fff00000da496c80 0000000000000000 [ 32.357693] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 32.357739] page dumped because: kasan: bad access detected [ 32.357776] [ 32.357797] Memory state around the buggy address: [ 32.357834] fff00000c5777f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.357884] fff00000c5777f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.357932] >fff00000c5778000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.357974] ^ [ 32.358007] fff00000c5778080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.358135] fff00000c5778100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.358236] ==================================================================
[ 21.198748] ================================================================== [ 21.199709] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 21.200605] Read of size 1 at addr ffff888102990000 by task kunit_try_catch/177 [ 21.201527] [ 21.201837] CPU: 1 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 21.201894] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.201905] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.201924] Call Trace: [ 21.201943] <TASK> [ 21.201968] dump_stack_lvl+0x73/0xb0 [ 21.202032] print_report+0xd1/0x650 [ 21.202073] ? __virt_addr_valid+0x1db/0x2d0 [ 21.202122] ? kmalloc_large_uaf+0x2f1/0x340 [ 21.202285] ? kasan_addr_to_slab+0x11/0xa0 [ 21.202308] ? kmalloc_large_uaf+0x2f1/0x340 [ 21.202328] kasan_report+0x141/0x180 [ 21.202348] ? kmalloc_large_uaf+0x2f1/0x340 [ 21.202370] __asan_report_load1_noabort+0x18/0x20 [ 21.202424] kmalloc_large_uaf+0x2f1/0x340 [ 21.202454] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 21.202483] ? __schedule+0x10cc/0x2b60 [ 21.202518] ? __pfx_read_tsc+0x10/0x10 [ 21.202539] ? ktime_get_ts64+0x86/0x230 [ 21.202563] kunit_try_run_case+0x1a5/0x480 [ 21.202586] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.202605] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.202625] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.202645] ? __kthread_parkme+0x82/0x180 [ 21.202664] ? preempt_count_sub+0x50/0x80 [ 21.202685] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.202706] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.202726] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.202747] kthread+0x337/0x6f0 [ 21.202765] ? trace_preempt_on+0x20/0xc0 [ 21.202785] ? __pfx_kthread+0x10/0x10 [ 21.202804] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.202822] ? calculate_sigpending+0x7b/0xa0 [ 21.202857] ? __pfx_kthread+0x10/0x10 [ 21.202876] ret_from_fork+0x116/0x1d0 [ 21.202891] ? __pfx_kthread+0x10/0x10 [ 21.202908] ret_from_fork_asm+0x1a/0x30 [ 21.202934] </TASK> [ 21.202945] [ 21.213873] The buggy address belongs to the physical page: [ 21.214239] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102990 [ 21.214847] flags: 0x200000000000000(node=0|zone=2) [ 21.215402] raw: 0200000000000000 ffffea00040a6508 ffff88815b139fc0 0000000000000000 [ 21.215816] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 21.216581] page dumped because: kasan: bad access detected [ 21.216992] [ 21.217328] Memory state around the buggy address: [ 21.217628] ffff88810298ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.218284] ffff88810298ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.218683] >ffff888102990000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.219194] ^ [ 21.219492] ffff888102990080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.219863] ffff888102990100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.220579] ==================================================================