Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.072014] ================================================================== [ 18.072140] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 18.072200] Read of size 1 at addr fff00000c65c0000 by task kunit_try_catch/148 [ 18.072247] [ 18.072278] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.072441] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.072468] Hardware name: linux,dummy-virt (DT) [ 18.072543] Call trace: [ 18.072597] show_stack+0x20/0x38 (C) [ 18.072650] dump_stack_lvl+0x8c/0xd0 [ 18.072700] print_report+0x118/0x608 [ 18.072744] kasan_report+0xdc/0x128 [ 18.072787] __asan_report_load1_noabort+0x20/0x30 [ 18.072835] kmalloc_large_uaf+0x2cc/0x2f8 [ 18.072890] kunit_try_run_case+0x170/0x3f0 [ 18.072936] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.072986] kthread+0x328/0x630 [ 18.073025] ret_from_fork+0x10/0x20 [ 18.073261] [ 18.073289] The buggy address belongs to the physical page: [ 18.073327] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c0 [ 18.073459] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.073545] raw: 0bfffe0000000000 fff00000da479c40 fff00000da479c40 0000000000000000 [ 18.073593] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.073631] page dumped because: kasan: bad access detected [ 18.073709] [ 18.073728] Memory state around the buggy address: [ 18.073777] fff00000c65bff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.073818] fff00000c65bff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.073867] >fff00000c65c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.074055] ^ [ 18.074180] fff00000c65c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.074292] fff00000c65c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.074342] ==================================================================
[ 11.103567] ================================================================== [ 11.104148] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 11.104599] Read of size 1 at addr ffff88810390c000 by task kunit_try_catch/166 [ 11.105072] [ 11.105197] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.105240] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.105252] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.105272] Call Trace: [ 11.105284] <TASK> [ 11.105299] dump_stack_lvl+0x73/0xb0 [ 11.105327] print_report+0xd1/0x650 [ 11.105348] ? __virt_addr_valid+0x1db/0x2d0 [ 11.105370] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.105396] ? kasan_addr_to_slab+0x11/0xa0 [ 11.105416] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.105436] kasan_report+0x141/0x180 [ 11.105469] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.105495] __asan_report_load1_noabort+0x18/0x20 [ 11.105518] kmalloc_large_uaf+0x2f1/0x340 [ 11.105538] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 11.105561] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 11.105585] kunit_try_run_case+0x1a5/0x480 [ 11.105609] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.105629] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.105652] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.105674] ? __kthread_parkme+0x82/0x180 [ 11.105693] ? preempt_count_sub+0x50/0x80 [ 11.105715] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.105738] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.105759] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.105781] kthread+0x337/0x6f0 [ 11.105799] ? trace_preempt_on+0x20/0xc0 [ 11.105821] ? __pfx_kthread+0x10/0x10 [ 11.105841] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.105861] ? calculate_sigpending+0x7b/0xa0 [ 11.105883] ? __pfx_kthread+0x10/0x10 [ 11.105904] ret_from_fork+0x116/0x1d0 [ 11.105921] ? __pfx_kthread+0x10/0x10 [ 11.105941] ret_from_fork_asm+0x1a/0x30 [ 11.105971] </TASK> [ 11.105981] [ 11.116695] The buggy address belongs to the physical page: [ 11.116939] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10390c [ 11.117635] flags: 0x200000000000000(node=0|zone=2) [ 11.118064] raw: 0200000000000000 ffffea00040e5208 ffff88815b139f80 0000000000000000 [ 11.118770] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 11.119094] page dumped because: kasan: bad access detected [ 11.119648] [ 11.119896] Memory state around the buggy address: [ 11.120121] ffff88810390bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.120816] ffff88810390bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.121138] >ffff88810390c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.121959] ^ [ 11.122161] ffff88810390c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.122609] ffff88810390c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.122909] ==================================================================