Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.850519] ================================================================== [ 17.850582] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 17.850701] Read of size 1 at addr fff00000c65e4000 by task kunit_try_catch/148 [ 17.850749] [ 17.850889] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.850978] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.851051] Hardware name: linux,dummy-virt (DT) [ 17.851119] Call trace: [ 17.851153] show_stack+0x20/0x38 (C) [ 17.851214] dump_stack_lvl+0x8c/0xd0 [ 17.851340] print_report+0x118/0x608 [ 17.851553] kasan_report+0xdc/0x128 [ 17.851623] __asan_report_load1_noabort+0x20/0x30 [ 17.851689] kmalloc_large_uaf+0x2cc/0x2f8 [ 17.851779] kunit_try_run_case+0x170/0x3f0 [ 17.851858] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.851910] kthread+0x328/0x630 [ 17.851966] ret_from_fork+0x10/0x20 [ 17.852012] [ 17.852138] The buggy address belongs to the physical page: [ 17.852168] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065e4 [ 17.852228] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.852398] raw: 0bfffe0000000000 fff00000da478c40 fff00000da478c40 0000000000000000 [ 17.852483] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 17.852539] page dumped because: kasan: bad access detected [ 17.852594] [ 17.852612] Memory state around the buggy address: [ 17.852643] fff00000c65e3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.852689] fff00000c65e3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.852729] >fff00000c65e4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.852765] ^ [ 17.852823] fff00000c65e4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.852931] fff00000c65e4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.852969] ==================================================================
[ 11.091402] ================================================================== [ 11.091849] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 11.092247] Read of size 1 at addr ffff888102b6c000 by task kunit_try_catch/165 [ 11.092562] [ 11.092707] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.092764] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.092777] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.092798] Call Trace: [ 11.092813] <TASK> [ 11.092831] dump_stack_lvl+0x73/0xb0 [ 11.092864] print_report+0xd1/0x650 [ 11.092888] ? __virt_addr_valid+0x1db/0x2d0 [ 11.092912] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.092944] ? kasan_addr_to_slab+0x11/0xa0 [ 11.092964] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.092984] kasan_report+0x141/0x180 [ 11.093015] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.093040] __asan_report_load1_noabort+0x18/0x20 [ 11.093074] kmalloc_large_uaf+0x2f1/0x340 [ 11.093094] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 11.093116] ? __schedule+0x10cc/0x2b60 [ 11.093138] ? __pfx_read_tsc+0x10/0x10 [ 11.093159] ? ktime_get_ts64+0x86/0x230 [ 11.093194] kunit_try_run_case+0x1a5/0x480 [ 11.093219] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.093250] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.093273] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.093295] ? __kthread_parkme+0x82/0x180 [ 11.093317] ? preempt_count_sub+0x50/0x80 [ 11.093341] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.093363] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.093385] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.093407] kthread+0x337/0x6f0 [ 11.093426] ? trace_preempt_on+0x20/0xc0 [ 11.093450] ? __pfx_kthread+0x10/0x10 [ 11.093489] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.093509] ? calculate_sigpending+0x7b/0xa0 [ 11.093534] ? __pfx_kthread+0x10/0x10 [ 11.093575] ret_from_fork+0x116/0x1d0 [ 11.093593] ? __pfx_kthread+0x10/0x10 [ 11.093613] ret_from_fork_asm+0x1a/0x30 [ 11.093645] </TASK> [ 11.093657] [ 11.105107] The buggy address belongs to the physical page: [ 11.105705] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b6c [ 11.106088] flags: 0x200000000000000(node=0|zone=2) [ 11.106439] raw: 0200000000000000 ffffea00040adc08 ffff88815b039f80 0000000000000000 [ 11.106962] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 11.107490] page dumped because: kasan: bad access detected [ 11.107914] [ 11.108023] Memory state around the buggy address: [ 11.108419] ffff888102b6bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.108867] ffff888102b6bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.109330] >ffff888102b6c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.109783] ^ [ 11.109971] ffff888102b6c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.110444] ffff888102b6c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.111028] ==================================================================