Date
July 3, 2025, 3:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.292630] ================================================================== [ 15.292693] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 15.292745] Read of size 1 at addr fff00000c65bc000 by task kunit_try_catch/151 [ 15.292792] [ 15.292822] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT [ 15.292901] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.292926] Hardware name: linux,dummy-virt (DT) [ 15.293451] Call trace: [ 15.293745] show_stack+0x20/0x38 (C) [ 15.293835] dump_stack_lvl+0x8c/0xd0 [ 15.293894] print_report+0x118/0x608 [ 15.293937] kasan_report+0xdc/0x128 [ 15.294201] __asan_report_load1_noabort+0x20/0x30 [ 15.294330] kmalloc_large_uaf+0x2cc/0x2f8 [ 15.294380] kunit_try_run_case+0x170/0x3f0 [ 15.294432] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.294483] kthread+0x328/0x630 [ 15.294931] ret_from_fork+0x10/0x20 [ 15.295210] [ 15.295507] The buggy address belongs to the physical page: [ 15.296051] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065bc [ 15.296283] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.296384] raw: 0bfffe0000000000 ffffc1ffc3197008 fff00000da4a1e00 0000000000000000 [ 15.296616] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 15.296709] page dumped because: kasan: bad access detected [ 15.296980] [ 15.297054] Memory state around the buggy address: [ 15.297224] fff00000c65bbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.297608] fff00000c65bbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.297727] >fff00000c65bc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.297796] ^ [ 15.297824] fff00000c65bc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.298081] fff00000c65bc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.298317] ==================================================================
[ 10.720035] ================================================================== [ 10.720530] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 10.720816] Read of size 1 at addr ffff8881031a4000 by task kunit_try_catch/167 [ 10.721118] [ 10.721229] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT(voluntary) [ 10.721282] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.721294] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.721314] Call Trace: [ 10.721326] <TASK> [ 10.721341] dump_stack_lvl+0x73/0xb0 [ 10.721365] print_report+0xd1/0x650 [ 10.721388] ? __virt_addr_valid+0x1db/0x2d0 [ 10.721410] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.721430] ? kasan_addr_to_slab+0x11/0xa0 [ 10.721451] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.721472] kasan_report+0x141/0x180 [ 10.721495] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.721520] __asan_report_load1_noabort+0x18/0x20 [ 10.721541] kmalloc_large_uaf+0x2f1/0x340 [ 10.721568] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 10.721590] ? __schedule+0x10cc/0x2b60 [ 10.721612] ? __pfx_read_tsc+0x10/0x10 [ 10.721632] ? ktime_get_ts64+0x86/0x230 [ 10.721656] kunit_try_run_case+0x1a5/0x480 [ 10.721680] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.721702] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.721725] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.721748] ? __kthread_parkme+0x82/0x180 [ 10.721770] ? preempt_count_sub+0x50/0x80 [ 10.721794] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.721817] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.721840] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.721862] kthread+0x337/0x6f0 [ 10.721880] ? trace_preempt_on+0x20/0xc0 [ 10.721903] ? __pfx_kthread+0x10/0x10 [ 10.721922] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.721945] ? calculate_sigpending+0x7b/0xa0 [ 10.721969] ? __pfx_kthread+0x10/0x10 [ 10.721987] ret_from_fork+0x41/0x80 [ 10.722008] ? __pfx_kthread+0x10/0x10 [ 10.722027] ret_from_fork_asm+0x1a/0x30 [ 10.722057] </TASK> [ 10.722068] [ 10.729479] The buggy address belongs to the physical page: [ 10.729754] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1031a4 [ 10.730070] flags: 0x200000000000000(node=0|zone=2) [ 10.730393] raw: 0200000000000000 ffffea00040e4408 ffff88815b039a80 0000000000000000 [ 10.730629] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 10.730982] page dumped because: kasan: bad access detected [ 10.731248] [ 10.731409] Memory state around the buggy address: [ 10.731636] ffff8881031a3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.731987] ffff8881031a3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.732249] >ffff8881031a4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.732604] ^ [ 10.732743] ffff8881031a4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.733069] ffff8881031a4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.733457] ==================================================================