Date
July 5, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.616648] ================================================================== [ 18.616779] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 18.616887] Read of size 1 at addr fff00000c784c000 by task kunit_try_catch/149 [ 18.616994] [ 18.617059] CPU: 0 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.617240] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.617301] Hardware name: linux,dummy-virt (DT) [ 18.617691] Call trace: [ 18.617763] show_stack+0x20/0x38 (C) [ 18.617864] dump_stack_lvl+0x8c/0xd0 [ 18.617969] print_report+0x118/0x608 [ 18.618075] kasan_report+0xdc/0x128 [ 18.618172] __asan_report_load1_noabort+0x20/0x30 [ 18.618290] kmalloc_large_uaf+0x2cc/0x2f8 [ 18.618996] kunit_try_run_case+0x170/0x3f0 [ 18.619142] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.619268] kthread+0x328/0x630 [ 18.619421] ret_from_fork+0x10/0x20 [ 18.619559] [ 18.619675] The buggy address belongs to the physical page: [ 18.619750] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10784c [ 18.619944] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.620269] raw: 0bfffe0000000000 ffffc1ffc31e1408 fff00000da456c40 0000000000000000 [ 18.620403] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.620494] page dumped because: kasan: bad access detected [ 18.620562] [ 18.620600] Memory state around the buggy address: [ 18.620666] fff00000c784bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.620761] fff00000c784bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.621710] >fff00000c784c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.621810] ^ [ 18.621872] fff00000c784c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.621966] fff00000c784c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.622062] ==================================================================
[ 13.012682] ================================================================== [ 13.013380] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 13.013752] Read of size 1 at addr ffff888102a9c000 by task kunit_try_catch/165 [ 13.014608] [ 13.015026] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.015090] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.015105] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.015130] Call Trace: [ 13.015155] <TASK> [ 13.015176] dump_stack_lvl+0x73/0xb0 [ 13.015214] print_report+0xd1/0x650 [ 13.015240] ? __virt_addr_valid+0x1db/0x2d0 [ 13.015268] ? kmalloc_large_uaf+0x2f1/0x340 [ 13.015292] ? kasan_addr_to_slab+0x11/0xa0 [ 13.015315] ? kmalloc_large_uaf+0x2f1/0x340 [ 13.015340] kasan_report+0x141/0x180 [ 13.015365] ? kmalloc_large_uaf+0x2f1/0x340 [ 13.015395] __asan_report_load1_noabort+0x18/0x20 [ 13.015423] kmalloc_large_uaf+0x2f1/0x340 [ 13.015447] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 13.015472] ? __schedule+0x10cc/0x2b60 [ 13.015498] ? __pfx_read_tsc+0x10/0x10 [ 13.015522] ? ktime_get_ts64+0x86/0x230 [ 13.015551] kunit_try_run_case+0x1a5/0x480 [ 13.015580] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.015605] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.015632] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.015672] ? __kthread_parkme+0x82/0x180 [ 13.015696] ? preempt_count_sub+0x50/0x80 [ 13.015723] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.015750] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.015815] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.015843] kthread+0x337/0x6f0 [ 13.015866] ? trace_preempt_on+0x20/0xc0 [ 13.015893] ? __pfx_kthread+0x10/0x10 [ 13.015917] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.015941] ? calculate_sigpending+0x7b/0xa0 [ 13.015969] ? __pfx_kthread+0x10/0x10 [ 13.015993] ret_from_fork+0x116/0x1d0 [ 13.016015] ? __pfx_kthread+0x10/0x10 [ 13.016038] ret_from_fork_asm+0x1a/0x30 [ 13.016075] </TASK> [ 13.016088] [ 13.030310] The buggy address belongs to the physical page: [ 13.030769] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a9c [ 13.031407] flags: 0x200000000000000(node=0|zone=2) [ 13.031839] raw: 0200000000000000 ffffea00040aa808 ffff88815b039f80 0000000000000000 [ 13.032218] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.033118] page dumped because: kasan: bad access detected [ 13.033583] [ 13.034086] Memory state around the buggy address: [ 13.034896] ffff888102a9bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.035279] ffff888102a9bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.035635] >ffff888102a9c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.035980] ^ [ 13.036185] ffff888102a9c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.036530] ffff888102a9c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.036965] ==================================================================