Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.110756] ================================================================== [ 15.110837] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 15.110889] Read of size 1 at addr fff00000c65c0000 by task kunit_try_catch/149 [ 15.110947] [ 15.110990] CPU: 0 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.111072] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.111217] Hardware name: linux,dummy-virt (DT) [ 15.111255] Call trace: [ 15.111302] show_stack+0x20/0x38 (C) [ 15.111528] dump_stack_lvl+0x8c/0xd0 [ 15.111585] print_report+0x118/0x5d0 [ 15.111796] kasan_report+0xdc/0x128 [ 15.111913] __asan_report_load1_noabort+0x20/0x30 [ 15.112006] kmalloc_large_uaf+0x2cc/0x2f8 [ 15.112162] kunit_try_run_case+0x170/0x3f0 [ 15.112215] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.112518] kthread+0x328/0x630 [ 15.112604] ret_from_fork+0x10/0x20 [ 15.112662] [ 15.112746] The buggy address belongs to the physical page: [ 15.112779] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c0 [ 15.113018] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.113094] raw: 0bfffe0000000000 ffffc1ffc3197108 fff00000da457c40 0000000000000000 [ 15.113287] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 15.113364] page dumped because: kasan: bad access detected [ 15.113512] [ 15.113565] Memory state around the buggy address: [ 15.113619] fff00000c65bff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.113992] fff00000c65bff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.114120] >fff00000c65c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.114165] ^ [ 15.114194] fff00000c65c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.114548] fff00000c65c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.114617] ==================================================================
[ 12.544751] ================================================================== [ 12.545153] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.546131] Read of size 1 at addr ffff8881027cc000 by task kunit_try_catch/165 [ 12.546980] [ 12.547328] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.547377] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.547389] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.547409] Call Trace: [ 12.547423] <TASK> [ 12.547438] dump_stack_lvl+0x73/0xb0 [ 12.547471] print_report+0xd1/0x610 [ 12.547494] ? __virt_addr_valid+0x1db/0x2d0 [ 12.547518] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.547538] ? kasan_addr_to_slab+0x11/0xa0 [ 12.547608] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.547630] kasan_report+0x141/0x180 [ 12.547652] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.547678] __asan_report_load1_noabort+0x18/0x20 [ 12.547703] kmalloc_large_uaf+0x2f1/0x340 [ 12.547724] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.547747] ? __schedule+0x10cc/0x2b60 [ 12.547769] ? __pfx_read_tsc+0x10/0x10 [ 12.547789] ? ktime_get_ts64+0x86/0x230 [ 12.547813] kunit_try_run_case+0x1a5/0x480 [ 12.547838] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.547861] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.547885] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.547909] ? __kthread_parkme+0x82/0x180 [ 12.547931] ? preempt_count_sub+0x50/0x80 [ 12.547954] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.547978] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.548003] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.548028] kthread+0x337/0x6f0 [ 12.548053] ? trace_preempt_on+0x20/0xc0 [ 12.548076] ? __pfx_kthread+0x10/0x10 [ 12.548096] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.548118] ? calculate_sigpending+0x7b/0xa0 [ 12.548142] ? __pfx_kthread+0x10/0x10 [ 12.548163] ret_from_fork+0x116/0x1d0 [ 12.548181] ? __pfx_kthread+0x10/0x10 [ 12.548201] ret_from_fork_asm+0x1a/0x30 [ 12.548232] </TASK> [ 12.548242] [ 12.562757] The buggy address belongs to the physical page: [ 12.563405] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027cc [ 12.564440] flags: 0x200000000000000(node=0|zone=2) [ 12.565121] raw: 0200000000000000 ffffea000409f408 ffff88815b039f80 0000000000000000 [ 12.565761] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.566569] page dumped because: kasan: bad access detected [ 12.566748] [ 12.566818] Memory state around the buggy address: [ 12.566968] ffff8881027cbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.567178] ffff8881027cbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.568010] >ffff8881027cc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.568580] ^ [ 12.568704] ffff8881027cc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.568914] ffff8881027cc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.569122] ==================================================================