Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.923845] ================================================================== [ 17.924362] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 17.924448] Read of size 1 at addr fff00000c786c000 by task kunit_try_catch/148 [ 17.924502] [ 17.924536] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.924626] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.925268] Hardware name: linux,dummy-virt (DT) [ 17.925515] Call trace: [ 17.925546] show_stack+0x20/0x38 (C) [ 17.925685] dump_stack_lvl+0x8c/0xd0 [ 17.925734] print_report+0x118/0x608 [ 17.926050] kasan_report+0xdc/0x128 [ 17.926097] __asan_report_load1_noabort+0x20/0x30 [ 17.926498] kmalloc_large_uaf+0x2cc/0x2f8 [ 17.926797] kunit_try_run_case+0x170/0x3f0 [ 17.927121] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.927584] kthread+0x328/0x630 [ 17.927653] ret_from_fork+0x10/0x20 [ 17.927869] [ 17.928082] The buggy address belongs to the physical page: [ 17.928173] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10786c [ 17.928402] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.928848] raw: 0bfffe0000000000 ffffc1ffc31e1c08 fff00000da478c40 0000000000000000 [ 17.928900] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 17.928940] page dumped because: kasan: bad access detected [ 17.928970] [ 17.928988] Memory state around the buggy address: [ 17.929019] fff00000c786bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.929060] fff00000c786bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.929330] >fff00000c786c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.929384] ^ [ 17.929412] fff00000c786c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.929888] fff00000c786c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.929928] ==================================================================
[ 10.931738] ================================================================== [ 10.932488] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 10.933290] Read of size 1 at addr ffff8881028c8000 by task kunit_try_catch/167 [ 10.934040] [ 10.934234] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.934279] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.934290] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.934310] Call Trace: [ 10.934324] <TASK> [ 10.934341] dump_stack_lvl+0x73/0xb0 [ 10.934369] print_report+0xd1/0x650 [ 10.934404] ? __virt_addr_valid+0x1db/0x2d0 [ 10.934428] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.934447] ? kasan_addr_to_slab+0x11/0xa0 [ 10.934467] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.934487] kasan_report+0x141/0x180 [ 10.934508] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.934532] __asan_report_load1_noabort+0x18/0x20 [ 10.934562] kmalloc_large_uaf+0x2f1/0x340 [ 10.934582] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 10.934602] ? __schedule+0x10cc/0x2b60 [ 10.934623] ? __pfx_read_tsc+0x10/0x10 [ 10.934643] ? ktime_get_ts64+0x86/0x230 [ 10.934666] kunit_try_run_case+0x1a5/0x480 [ 10.934690] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.934711] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.934733] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.934754] ? __kthread_parkme+0x82/0x180 [ 10.934774] ? preempt_count_sub+0x50/0x80 [ 10.934796] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.934818] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.934839] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.934860] kthread+0x337/0x6f0 [ 10.934878] ? trace_preempt_on+0x20/0xc0 [ 10.934901] ? __pfx_kthread+0x10/0x10 [ 10.934920] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.934940] ? calculate_sigpending+0x7b/0xa0 [ 10.934962] ? __pfx_kthread+0x10/0x10 [ 10.934982] ret_from_fork+0x116/0x1d0 [ 10.935000] ? __pfx_kthread+0x10/0x10 [ 10.935019] ret_from_fork_asm+0x1a/0x30 [ 10.935050] </TASK> [ 10.935060] [ 10.947210] The buggy address belongs to the physical page: [ 10.947407] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028c8 [ 10.947672] flags: 0x200000000000000(node=0|zone=2) [ 10.947891] raw: 0200000000000000 ffffea00040a3308 ffff88815b039f80 0000000000000000 [ 10.948225] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 10.948551] page dumped because: kasan: bad access detected [ 10.948743] [ 10.948857] Memory state around the buggy address: [ 10.949087] ffff8881028c7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.949343] ffff8881028c7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.949700] >ffff8881028c8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.950009] ^ [ 10.950149] ffff8881028c8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.950441] ffff8881028c8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.950801] ==================================================================