Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.124988] ================================================================== [ 24.125217] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 24.125553] Read of size 1 at addr fff00000c641c000 by task kunit_try_catch/150 [ 24.125876] [ 24.126107] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 24.126557] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.126677] Hardware name: linux,dummy-virt (DT) [ 24.126814] Call trace: [ 24.126878] show_stack+0x20/0x38 (C) [ 24.127155] dump_stack_lvl+0x8c/0xd0 [ 24.127292] print_report+0x118/0x608 [ 24.127426] kasan_report+0xdc/0x128 [ 24.128265] __asan_report_load1_noabort+0x20/0x30 [ 24.128901] kmalloc_large_uaf+0x2cc/0x2f8 [ 24.129458] kunit_try_run_case+0x170/0x3f0 [ 24.129791] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.130248] kthread+0x328/0x630 [ 24.130890] ret_from_fork+0x10/0x20 [ 24.131048] [ 24.131105] The buggy address belongs to the physical page: [ 24.131188] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10641c [ 24.131310] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.132180] raw: 0bfffe0000000000 fff00000da47fe00 fff00000da47fe00 0000000000000000 [ 24.132925] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 24.133321] page dumped because: kasan: bad access detected [ 24.133683] [ 24.133731] Memory state around the buggy address: [ 24.134322] fff00000c641bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.134460] fff00000c641bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.135231] >fff00000c641c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.135325] ^ [ 24.135590] fff00000c641c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.135844] fff00000c641c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.135937] ==================================================================
[ 16.224550] ================================================================== [ 16.225858] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 16.227096] Read of size 1 at addr ffff888102be8000 by task kunit_try_catch/169 [ 16.227779] [ 16.228047] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 16.228169] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.228205] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.228258] Call Trace: [ 16.228297] <TASK> [ 16.228340] dump_stack_lvl+0x73/0xb0 [ 16.228421] print_report+0xd1/0x650 [ 16.228742] ? __virt_addr_valid+0x1db/0x2d0 [ 16.228824] ? kmalloc_large_uaf+0x2f1/0x340 [ 16.228893] ? kasan_addr_to_slab+0x11/0xa0 [ 16.228950] ? kmalloc_large_uaf+0x2f1/0x340 [ 16.228985] kasan_report+0x141/0x180 [ 16.229021] ? kmalloc_large_uaf+0x2f1/0x340 [ 16.229063] __asan_report_load1_noabort+0x18/0x20 [ 16.229095] kmalloc_large_uaf+0x2f1/0x340 [ 16.229128] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 16.229162] ? __schedule+0x10cc/0x2b60 [ 16.229196] ? __pfx_read_tsc+0x10/0x10 [ 16.229226] ? ktime_get_ts64+0x86/0x230 [ 16.229263] kunit_try_run_case+0x1a5/0x480 [ 16.229301] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.229373] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.229412] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.229448] ? __kthread_parkme+0x82/0x180 [ 16.229482] ? preempt_count_sub+0x50/0x80 [ 16.229518] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.229554] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.229588] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.229702] kthread+0x337/0x6f0 [ 16.229788] ? trace_preempt_on+0x20/0xc0 [ 16.229864] ? __pfx_kthread+0x10/0x10 [ 16.229935] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.230008] ? calculate_sigpending+0x7b/0xa0 [ 16.230070] ? __pfx_kthread+0x10/0x10 [ 16.230132] ret_from_fork+0x41/0x80 [ 16.230207] ? __pfx_kthread+0x10/0x10 [ 16.230278] ret_from_fork_asm+0x1a/0x30 [ 16.230325] </TASK> [ 16.230339] [ 16.250014] The buggy address belongs to the physical page: [ 16.250501] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102be8 [ 16.251745] flags: 0x200000000000000(node=0|zone=2) [ 16.252175] raw: 0200000000000000 ffffea00040afb08 ffff88815b039a80 0000000000000000 [ 16.252912] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.253444] page dumped because: kasan: bad access detected [ 16.254040] [ 16.254324] Memory state around the buggy address: [ 16.254902] ffff888102be7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.255485] ffff888102be7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.256224] >ffff888102be8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.257778] ^ [ 16.258273] ffff888102be8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.258862] ffff888102be8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.259506] ==================================================================