Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.739549] ================================================================== [ 15.739612] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 15.739666] Read of size 1 at addr fff00000c6638000 by task kunit_try_catch/148 [ 15.739713] [ 15.739830] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 15.740127] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.740163] Hardware name: linux,dummy-virt (DT) [ 15.740202] Call trace: [ 15.740242] show_stack+0x20/0x38 (C) [ 15.740294] dump_stack_lvl+0x8c/0xd0 [ 15.740342] print_report+0x118/0x608 [ 15.740388] kasan_report+0xdc/0x128 [ 15.740432] __asan_report_load1_noabort+0x20/0x30 [ 15.740483] kmalloc_large_uaf+0x2cc/0x2f8 [ 15.740529] kunit_try_run_case+0x170/0x3f0 [ 15.740640] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.740723] kthread+0x328/0x630 [ 15.740892] ret_from_fork+0x10/0x20 [ 15.740957] [ 15.741006] The buggy address belongs to the physical page: [ 15.741037] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106638 [ 15.741118] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.741183] raw: 0bfffe0000000000 ffffc1ffc3198f08 fff00000da478c40 0000000000000000 [ 15.741230] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 15.741268] page dumped because: kasan: bad access detected [ 15.741396] [ 15.741586] Memory state around the buggy address: [ 15.741632] fff00000c6637f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.741677] fff00000c6637f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.741718] >fff00000c6638000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.741762] ^ [ 15.741788] fff00000c6638080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.741834] fff00000c6638100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.741870] ==================================================================
[ 12.282739] ================================================================== [ 12.283234] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.283598] Read of size 1 at addr ffff888102a38000 by task kunit_try_catch/165 [ 12.283879] [ 12.284128] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.284172] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.284188] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.284218] Call Trace: [ 12.284230] <TASK> [ 12.284245] dump_stack_lvl+0x73/0xb0 [ 12.284287] print_report+0xd1/0x650 [ 12.284309] ? __virt_addr_valid+0x1db/0x2d0 [ 12.284333] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.284354] ? kasan_addr_to_slab+0x11/0xa0 [ 12.284443] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.284475] kasan_report+0x141/0x180 [ 12.284497] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.284522] __asan_report_load1_noabort+0x18/0x20 [ 12.284558] kmalloc_large_uaf+0x2f1/0x340 [ 12.284580] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.284602] ? __schedule+0x10cc/0x2b60 [ 12.284624] ? __pfx_read_tsc+0x10/0x10 [ 12.284645] ? ktime_get_ts64+0x86/0x230 [ 12.284669] kunit_try_run_case+0x1a5/0x480 [ 12.284695] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.284717] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.284750] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.284773] ? __kthread_parkme+0x82/0x180 [ 12.284793] ? preempt_count_sub+0x50/0x80 [ 12.284827] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.284851] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.284875] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.284900] kthread+0x337/0x6f0 [ 12.284918] ? trace_preempt_on+0x20/0xc0 [ 12.284951] ? __pfx_kthread+0x10/0x10 [ 12.284971] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.284992] ? calculate_sigpending+0x7b/0xa0 [ 12.285026] ? __pfx_kthread+0x10/0x10 [ 12.285046] ret_from_fork+0x116/0x1d0 [ 12.285064] ? __pfx_kthread+0x10/0x10 [ 12.285084] ret_from_fork_asm+0x1a/0x30 [ 12.285115] </TASK> [ 12.285125] [ 12.293164] The buggy address belongs to the physical page: [ 12.293417] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a38 [ 12.293768] flags: 0x200000000000000(node=0|zone=2) [ 12.294178] raw: 0200000000000000 ffffea00040a8f08 ffff88815b139f80 0000000000000000 [ 12.294699] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.295025] page dumped because: kasan: bad access detected [ 12.295251] [ 12.295344] Memory state around the buggy address: [ 12.295697] ffff888102a37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.296001] ffff888102a37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.296313] >ffff888102a38000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.296731] ^ [ 12.296912] ffff888102a38080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.297146] ffff888102a38100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.297361] ==================================================================