Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.751830] ================================================================== [ 16.752024] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 16.752205] Read of size 1 at addr fff00000c77dc000 by task kunit_try_catch/148 [ 16.752258] [ 16.752293] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.752428] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.752455] Hardware name: linux,dummy-virt (DT) [ 16.752486] Call trace: [ 16.752546] show_stack+0x20/0x38 (C) [ 16.752597] dump_stack_lvl+0x8c/0xd0 [ 16.752720] print_report+0x118/0x608 [ 16.752769] kasan_report+0xdc/0x128 [ 16.752815] __asan_report_load1_noabort+0x20/0x30 [ 16.753045] kmalloc_large_uaf+0x2cc/0x2f8 [ 16.753123] kunit_try_run_case+0x170/0x3f0 [ 16.753236] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.753290] kthread+0x328/0x630 [ 16.753334] ret_from_fork+0x10/0x20 [ 16.753383] [ 16.753403] The buggy address belongs to the physical page: [ 16.753487] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077dc [ 16.753540] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.753639] raw: 0bfffe0000000000 ffffc1ffc31df808 fff00000da456c40 0000000000000000 [ 16.753691] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.753730] page dumped because: kasan: bad access detected [ 16.753761] [ 16.753780] Memory state around the buggy address: [ 16.753812] fff00000c77dbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.754114] fff00000c77dbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.754406] >fff00000c77dc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.754659] ^ [ 16.754716] fff00000c77dc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.754773] fff00000c77dc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.754810] ==================================================================
[ 12.258209] ================================================================== [ 12.258719] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.259176] Read of size 1 at addr ffff888102ab0000 by task kunit_try_catch/165 [ 12.259424] [ 12.259541] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.259588] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.259609] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.259630] Call Trace: [ 12.259642] <TASK> [ 12.259659] dump_stack_lvl+0x73/0xb0 [ 12.259690] print_report+0xd1/0x650 [ 12.259713] ? __virt_addr_valid+0x1db/0x2d0 [ 12.259749] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.259770] ? kasan_addr_to_slab+0x11/0xa0 [ 12.259790] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.259811] kasan_report+0x141/0x180 [ 12.259845] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.259871] __asan_report_load1_noabort+0x18/0x20 [ 12.259897] kmalloc_large_uaf+0x2f1/0x340 [ 12.259918] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.259940] ? __schedule+0x10cc/0x2b60 [ 12.259963] ? __pfx_read_tsc+0x10/0x10 [ 12.259984] ? ktime_get_ts64+0x86/0x230 [ 12.260022] kunit_try_run_case+0x1a5/0x480 [ 12.260048] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.260071] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.260096] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.260129] ? __kthread_parkme+0x82/0x180 [ 12.260159] ? preempt_count_sub+0x50/0x80 [ 12.260204] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.260228] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.260253] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.260278] kthread+0x337/0x6f0 [ 12.260296] ? trace_preempt_on+0x20/0xc0 [ 12.260320] ? __pfx_kthread+0x10/0x10 [ 12.260340] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.260361] ? calculate_sigpending+0x7b/0xa0 [ 12.260395] ? __pfx_kthread+0x10/0x10 [ 12.260416] ret_from_fork+0x116/0x1d0 [ 12.260434] ? __pfx_kthread+0x10/0x10 [ 12.260465] ret_from_fork_asm+0x1a/0x30 [ 12.260498] </TASK> [ 12.260509] [ 12.267752] The buggy address belongs to the physical page: [ 12.268166] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab0 [ 12.268732] flags: 0x200000000000000(node=0|zone=2) [ 12.268969] raw: 0200000000000000 ffffea00040aad08 ffff88815b139f80 0000000000000000 [ 12.269254] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.269639] page dumped because: kasan: bad access detected [ 12.269915] [ 12.270017] Memory state around the buggy address: [ 12.270263] ffff888102aaff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.270546] ffff888102aaff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.270919] >ffff888102ab0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.271190] ^ [ 12.271355] ffff888102ab0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.271641] ffff888102ab0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.271905] ==================================================================