Date
June 16, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.812517] ================================================================== [ 18.812845] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 18.813185] Read of size 1 at addr fff00000c660c000 by task kunit_try_catch/157 [ 18.813322] [ 18.813414] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT [ 18.813706] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.813806] Hardware name: linux,dummy-virt (DT) [ 18.814035] Call trace: [ 18.814193] show_stack+0x20/0x38 (C) [ 18.814451] dump_stack_lvl+0x8c/0xd0 [ 18.814917] print_report+0x118/0x608 [ 18.815135] kasan_report+0xdc/0x128 [ 18.815254] __asan_report_load1_noabort+0x20/0x30 [ 18.815371] kmalloc_large_uaf+0x2cc/0x2f8 [ 18.815491] kunit_try_run_case+0x170/0x3f0 [ 18.815608] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.815735] kthread+0x328/0x630 [ 18.815849] ret_from_fork+0x10/0x20 [ 18.815971] [ 18.816027] The buggy address belongs to the physical page: [ 18.816110] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10660c [ 18.816242] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.816402] raw: 0bfffe0000000000 ffffc1ffc3198408 fff00000da448c40 0000000000000000 [ 18.816534] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.817169] page dumped because: kasan: bad access detected [ 18.817476] [ 18.817557] Memory state around the buggy address: [ 18.817645] fff00000c660bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.817756] fff00000c660bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.818134] >fff00000c660c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.818249] ^ [ 18.818432] fff00000c660c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.818552] fff00000c660c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.818783] ==================================================================
[ 10.904801] ================================================================== [ 10.905233] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 10.905743] Read of size 1 at addr ffff888102a88000 by task kunit_try_catch/173 [ 10.906465] [ 10.906672] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) [ 10.906722] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.906733] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.906754] Call Trace: [ 10.906768] <TASK> [ 10.906786] dump_stack_lvl+0x73/0xb0 [ 10.906817] print_report+0xd1/0x650 [ 10.906840] ? __virt_addr_valid+0x1db/0x2d0 [ 10.906863] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.906882] ? kasan_addr_to_slab+0x11/0xa0 [ 10.906902] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.906922] kasan_report+0x141/0x180 [ 10.906987] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.907012] __asan_report_load1_noabort+0x18/0x20 [ 10.907035] kmalloc_large_uaf+0x2f1/0x340 [ 10.907054] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 10.907075] ? __schedule+0x10cc/0x2b60 [ 10.907095] ? __pfx_read_tsc+0x10/0x10 [ 10.907117] ? ktime_get_ts64+0x86/0x230 [ 10.907142] kunit_try_run_case+0x1a5/0x480 [ 10.907166] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.907186] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.907208] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.907229] ? __kthread_parkme+0x82/0x180 [ 10.907249] ? preempt_count_sub+0x50/0x80 [ 10.907272] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.907294] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.907316] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.907337] kthread+0x337/0x6f0 [ 10.907356] ? trace_preempt_on+0x20/0xc0 [ 10.907402] ? __pfx_kthread+0x10/0x10 [ 10.907422] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.907442] ? calculate_sigpending+0x7b/0xa0 [ 10.907465] ? __pfx_kthread+0x10/0x10 [ 10.907485] ret_from_fork+0x116/0x1d0 [ 10.907503] ? __pfx_kthread+0x10/0x10 [ 10.907522] ret_from_fork_asm+0x1a/0x30 [ 10.907552] </TASK> [ 10.907564] [ 10.919209] The buggy address belongs to the physical page: [ 10.919610] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a88 [ 10.919856] flags: 0x200000000000000(node=0|zone=2) [ 10.920271] raw: 0200000000000000 ffffea00040aa308 ffff888154839f80 0000000000000000 [ 10.920922] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 10.921576] page dumped because: kasan: bad access detected [ 10.922050] [ 10.922199] Memory state around the buggy address: [ 10.922620] ffff888102a87f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.922902] ffff888102a87f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.923121] >ffff888102a88000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.923325] ^ [ 10.923579] ffff888102a88080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.924176] ffff888102a88100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.924782] ==================================================================