Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.329275] ================================================================== [ 29.329458] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 29.329745] Read of size 1 at addr fff00000c91b8000 by task kunit_try_catch/179 [ 29.330042] [ 29.330126] CPU: 1 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 29.330275] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.330366] Hardware name: linux,dummy-virt (DT) [ 29.330499] Call trace: [ 29.330569] show_stack+0x20/0x38 (C) [ 29.330935] dump_stack_lvl+0x8c/0xd0 [ 29.331109] print_report+0x118/0x5d0 [ 29.331250] kasan_report+0xdc/0x128 [ 29.331333] __asan_report_load1_noabort+0x20/0x30 [ 29.331383] kmalloc_large_uaf+0x2cc/0x2f8 [ 29.331785] kunit_try_run_case+0x170/0x3f0 [ 29.331890] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.331989] kthread+0x328/0x630 [ 29.332168] ret_from_fork+0x10/0x20 [ 29.332250] [ 29.332469] The buggy address belongs to the physical page: [ 29.332557] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1091b8 [ 29.332821] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.332966] raw: 0bfffe0000000000 ffffc1ffc3246408 fff00000da472d00 0000000000000000 [ 29.333016] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 29.333063] page dumped because: kasan: bad access detected [ 29.333363] [ 29.333395] Memory state around the buggy address: [ 29.333514] fff00000c91b7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.333568] fff00000c91b7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.333610] >fff00000c91b8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.333647] ^ [ 29.333675] fff00000c91b8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.333714] fff00000c91b8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.333751] ==================================================================
[ 25.220820] ================================================================== [ 25.222028] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 25.222603] Read of size 1 at addr ffff888106028000 by task kunit_try_catch/197 [ 25.223533] [ 25.223765] CPU: 0 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 25.223903] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.223918] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.223938] Call Trace: [ 25.223951] <TASK> [ 25.223965] dump_stack_lvl+0x73/0xb0 [ 25.223995] print_report+0xd1/0x610 [ 25.224016] ? __virt_addr_valid+0x1db/0x2d0 [ 25.224038] ? kmalloc_large_uaf+0x2f1/0x340 [ 25.224058] ? kasan_addr_to_slab+0x11/0xa0 [ 25.224089] ? kmalloc_large_uaf+0x2f1/0x340 [ 25.224109] kasan_report+0x141/0x180 [ 25.224130] ? kmalloc_large_uaf+0x2f1/0x340 [ 25.224154] __asan_report_load1_noabort+0x18/0x20 [ 25.224177] kmalloc_large_uaf+0x2f1/0x340 [ 25.224197] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 25.224217] ? __schedule+0x10c6/0x2b60 [ 25.224247] ? __pfx_read_tsc+0x10/0x10 [ 25.224267] ? ktime_get_ts64+0x86/0x230 [ 25.224291] kunit_try_run_case+0x1a5/0x480 [ 25.224313] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.224334] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.224356] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.224378] ? __kthread_parkme+0x82/0x180 [ 25.224401] ? preempt_count_sub+0x50/0x80 [ 25.224423] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.224446] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.224467] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.224489] kthread+0x337/0x6f0 [ 25.224507] ? trace_preempt_on+0x20/0xc0 [ 25.224530] ? __pfx_kthread+0x10/0x10 [ 25.224549] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.224569] ? calculate_sigpending+0x7b/0xa0 [ 25.224591] ? __pfx_kthread+0x10/0x10 [ 25.224612] ret_from_fork+0x116/0x1d0 [ 25.224630] ? __pfx_kthread+0x10/0x10 [ 25.224650] ret_from_fork_asm+0x1a/0x30 [ 25.224680] </TASK> [ 25.224690] [ 25.235075] The buggy address belongs to the physical page: [ 25.235640] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106028 [ 25.235890] flags: 0x200000000000000(node=0|zone=2) [ 25.236063] raw: 0200000000000000 ffffea0004180b08 ffff88815b039fc0 0000000000000000 [ 25.236504] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 25.236827] page dumped because: kasan: bad access detected [ 25.237043] [ 25.237136] Memory state around the buggy address: [ 25.237431] ffff888106027f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.237721] ffff888106027f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.238008] >ffff888106028000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.238412] ^ [ 25.238573] ffff888106028080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.238876] ffff888106028100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.239164] ==================================================================