Date
July 18, 2025, 1:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.305176] ================================================================== [ 31.305243] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 31.305521] Read of size 1 at addr fff00000c3fe8000 by task kunit_try_catch/179 [ 31.305592] [ 31.305664] CPU: 0 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT [ 31.305777] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.305803] Hardware name: linux,dummy-virt (DT) [ 31.305839] Call trace: [ 31.305904] show_stack+0x20/0x38 (C) [ 31.305956] dump_stack_lvl+0x8c/0xd0 [ 31.306008] print_report+0x118/0x5e8 [ 31.306071] kasan_report+0xdc/0x128 [ 31.306353] __asan_report_load1_noabort+0x20/0x30 [ 31.306424] kmalloc_large_uaf+0x2cc/0x2f8 [ 31.306470] kunit_try_run_case+0x170/0x3f0 [ 31.306514] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.306606] kthread+0x328/0x630 [ 31.306675] ret_from_fork+0x10/0x20 [ 31.306721] [ 31.306803] The buggy address belongs to the physical page: [ 31.306852] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fe8 [ 31.306908] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.306973] raw: 0bfffe0000000000 fff00000da451d00 fff00000da451d00 0000000000000000 [ 31.307276] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 31.307346] page dumped because: kasan: bad access detected [ 31.307386] [ 31.307404] Memory state around the buggy address: [ 31.307498] fff00000c3fe7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.307545] fff00000c3fe7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.307623] >fff00000c3fe8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.307667] ^ [ 31.307695] fff00000c3fe8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.307847] fff00000c3fe8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.307934] ==================================================================
[ 24.270091] ================================================================== [ 24.270584] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 24.271073] Read of size 1 at addr ffff888102b38000 by task kunit_try_catch/196 [ 24.271450] [ 24.271562] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) [ 24.271610] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.271622] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.271644] Call Trace: [ 24.271656] <TASK> [ 24.271671] dump_stack_lvl+0x73/0xb0 [ 24.271701] print_report+0xd1/0x640 [ 24.271722] ? __virt_addr_valid+0x1db/0x2d0 [ 24.271746] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.271765] ? kasan_addr_to_slab+0x11/0xa0 [ 24.271792] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.271812] kasan_report+0x141/0x180 [ 24.271833] ? kmalloc_large_uaf+0x2f1/0x340 [ 24.271857] __asan_report_load1_noabort+0x18/0x20 [ 24.271880] kmalloc_large_uaf+0x2f1/0x340 [ 24.271900] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 24.271920] ? __schedule+0x10da/0x2b60 [ 24.271942] ? __pfx_read_tsc+0x10/0x10 [ 24.271963] ? ktime_get_ts64+0x86/0x230 [ 24.271987] kunit_try_run_case+0x1a5/0x480 [ 24.272010] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.272031] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.272053] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.272076] ? __kthread_parkme+0x82/0x180 [ 24.272095] ? preempt_count_sub+0x50/0x80 [ 24.272117] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.272139] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.272161] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.272192] kthread+0x337/0x6f0 [ 24.272211] ? trace_preempt_on+0x20/0xc0 [ 24.272233] ? __pfx_kthread+0x10/0x10 [ 24.272252] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.272273] ? calculate_sigpending+0x7b/0xa0 [ 24.272296] ? __pfx_kthread+0x10/0x10 [ 24.272316] ret_from_fork+0x116/0x1d0 [ 24.272334] ? __pfx_kthread+0x10/0x10 [ 24.272354] ret_from_fork_asm+0x1a/0x30 [ 24.272385] </TASK> [ 24.272397] [ 24.280247] The buggy address belongs to the physical page: [ 24.280528] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b38 [ 24.280886] flags: 0x200000000000000(node=0|zone=2) [ 24.281161] raw: 0200000000000000 ffffea00040acf08 ffff88815b139fc0 0000000000000000 [ 24.281620] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 24.282007] page dumped because: kasan: bad access detected [ 24.282325] [ 24.282456] Memory state around the buggy address: [ 24.282677] ffff888102b37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.282954] ffff888102b37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.283167] >ffff888102b38000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.283407] ^ [ 24.283567] ffff888102b38080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.283880] ffff888102b38100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.284245] ==================================================================