Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 14.950629] ================================================================== [ 14.950690] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 14.950740] Read of size 1 at addr fff00000c7698000 by task kunit_try_catch/149 [ 14.950787] [ 14.950835] CPU: 1 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 14.950915] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.950941] Hardware name: linux,dummy-virt (DT) [ 14.950976] Call trace: [ 14.950999] show_stack+0x20/0x38 (C) [ 14.951046] dump_stack_lvl+0x8c/0xd0 [ 14.951090] print_report+0x118/0x5d0 [ 14.951135] kasan_report+0xdc/0x128 [ 14.952163] __asan_report_load1_noabort+0x20/0x30 [ 14.952278] kmalloc_large_uaf+0x2cc/0x2f8 [ 14.952371] kunit_try_run_case+0x170/0x3f0 [ 14.952457] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 14.952510] kthread+0x328/0x630 [ 14.952626] ret_from_fork+0x10/0x20 [ 14.952679] [ 14.952700] The buggy address belongs to the physical page: [ 14.952730] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107698 [ 14.952911] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 14.953315] raw: 0bfffe0000000000 ffffc1ffc31da708 fff00000da478c40 0000000000000000 [ 14.953410] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 14.953460] page dumped because: kasan: bad access detected [ 14.953582] [ 14.953880] Memory state around the buggy address: [ 14.953960] fff00000c7697f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.954018] fff00000c7697f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.954068] >fff00000c7698000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.954172] ^ [ 14.954231] fff00000c7698080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.954278] fff00000c7698100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.954417] ==================================================================
[ 12.470898] ================================================================== [ 12.472538] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.473347] Read of size 1 at addr ffff88810280c000 by task kunit_try_catch/166 [ 12.474201] [ 12.474431] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.474491] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.474502] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.474523] Call Trace: [ 12.474536] <TASK> [ 12.474551] dump_stack_lvl+0x73/0xb0 [ 12.474581] print_report+0xd1/0x610 [ 12.474602] ? __virt_addr_valid+0x1db/0x2d0 [ 12.474623] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.474643] ? kasan_addr_to_slab+0x11/0xa0 [ 12.474663] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.474683] kasan_report+0x141/0x180 [ 12.474704] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.474728] __asan_report_load1_noabort+0x18/0x20 [ 12.474752] kmalloc_large_uaf+0x2f1/0x340 [ 12.474771] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.474792] ? __schedule+0x10c6/0x2b60 [ 12.474821] ? __pfx_read_tsc+0x10/0x10 [ 12.474843] ? ktime_get_ts64+0x86/0x230 [ 12.474868] kunit_try_run_case+0x1a5/0x480 [ 12.474890] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.474912] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.474934] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.474956] ? __kthread_parkme+0x82/0x180 [ 12.474975] ? preempt_count_sub+0x50/0x80 [ 12.474998] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.475021] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.475042] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.475065] kthread+0x337/0x6f0 [ 12.475083] ? trace_preempt_on+0x20/0xc0 [ 12.475105] ? __pfx_kthread+0x10/0x10 [ 12.475125] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.475145] ? calculate_sigpending+0x7b/0xa0 [ 12.475167] ? __pfx_kthread+0x10/0x10 [ 12.475188] ret_from_fork+0x116/0x1d0 [ 12.475205] ? __pfx_kthread+0x10/0x10 [ 12.475225] ret_from_fork_asm+0x1a/0x30 [ 12.475255] </TASK> [ 12.475264] [ 12.488735] The buggy address belongs to the physical page: [ 12.489268] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10280c [ 12.489546] flags: 0x200000000000000(node=0|zone=2) [ 12.489734] raw: 0200000000000000 ffffea00040a0408 ffff88815b039f80 0000000000000000 [ 12.490547] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.491500] page dumped because: kasan: bad access detected [ 12.492256] [ 12.492538] Memory state around the buggy address: [ 12.492990] ffff88810280bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.493430] ffff88810280bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.493666] >ffff88810280c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.493915] ^ [ 12.494221] ffff88810280c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.494558] ffff88810280c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.494924] ==================================================================