Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.025756] ================================================================== [ 19.025873] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 19.025965] Read of size 1 at addr fff00000c655c000 by task kunit_try_catch/148 [ 19.026965] [ 19.027567] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 19.028013] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.028442] Hardware name: linux,dummy-virt (DT) [ 19.028501] Call trace: [ 19.028535] show_stack+0x20/0x38 (C) [ 19.028604] dump_stack_lvl+0x8c/0xd0 [ 19.028990] print_report+0x118/0x608 [ 19.029079] kasan_report+0xdc/0x128 [ 19.029145] __asan_report_load1_noabort+0x20/0x30 [ 19.029206] kmalloc_large_uaf+0x2cc/0x2f8 [ 19.029261] kunit_try_run_case+0x170/0x3f0 [ 19.029583] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.029855] kthread+0x328/0x630 [ 19.029939] ret_from_fork+0x10/0x20 [ 19.030012] [ 19.030093] The buggy address belongs to the physical page: [ 19.030139] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10655c [ 19.030203] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.030569] raw: 0bfffe0000000000 ffffc1ffc3195808 fff00000da47dc00 0000000000000000 [ 19.030637] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 19.030909] page dumped because: kasan: bad access detected [ 19.030957] [ 19.030996] Memory state around the buggy address: [ 19.031039] fff00000c655bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.031089] fff00000c655bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.031281] >fff00000c655c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.031394] ^ [ 19.031477] fff00000c655c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.031538] fff00000c655c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.031581] ==================================================================
[ 10.593699] ================================================================== [ 10.594151] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 10.594438] Read of size 1 at addr ffff888102aa0000 by task kunit_try_catch/165 [ 10.594816] [ 10.595005] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 10.595074] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.595086] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.595106] Call Trace: [ 10.595116] <TASK> [ 10.595130] dump_stack_lvl+0x73/0xb0 [ 10.595159] print_report+0xd1/0x650 [ 10.595195] ? __virt_addr_valid+0x1db/0x2d0 [ 10.595218] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.595258] ? kasan_addr_to_slab+0x11/0xa0 [ 10.595280] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.595301] kasan_report+0x141/0x180 [ 10.595323] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.595349] __asan_report_load1_noabort+0x18/0x20 [ 10.595369] kmalloc_large_uaf+0x2f1/0x340 [ 10.595390] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 10.595411] ? __schedule+0x10cc/0x2b60 [ 10.595433] ? __pfx_read_tsc+0x10/0x10 [ 10.595453] ? ktime_get_ts64+0x86/0x230 [ 10.595477] kunit_try_run_case+0x1a5/0x480 [ 10.595520] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.595557] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.595579] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.595602] ? __kthread_parkme+0x82/0x180 [ 10.595634] ? preempt_count_sub+0x50/0x80 [ 10.595658] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.595680] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.595760] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.595787] kthread+0x337/0x6f0 [ 10.595807] ? trace_preempt_on+0x20/0xc0 [ 10.595830] ? __pfx_kthread+0x10/0x10 [ 10.595851] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.595871] ? calculate_sigpending+0x7b/0xa0 [ 10.595895] ? __pfx_kthread+0x10/0x10 [ 10.595916] ret_from_fork+0x116/0x1d0 [ 10.595934] ? __pfx_kthread+0x10/0x10 [ 10.595954] ret_from_fork_asm+0x1a/0x30 [ 10.595986] </TASK> [ 10.595996] [ 10.604016] The buggy address belongs to the physical page: [ 10.604271] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102aa0 [ 10.604554] flags: 0x200000000000000(node=0|zone=2) [ 10.604888] raw: 0200000000000000 ffffea00040aa908 ffff888154939f80 0000000000000000 [ 10.605371] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 10.605802] page dumped because: kasan: bad access detected [ 10.606115] [ 10.606269] Memory state around the buggy address: [ 10.606502] ffff888102a9ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.606971] ffff888102a9ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.607363] >ffff888102aa0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.607786] ^ [ 10.607976] ffff888102aa0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.608338] ffff888102aa0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.608813] ==================================================================