Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.419712] ================================================================== [ 16.419792] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 16.419873] Read of size 1 at addr fff00000c6518000 by task kunit_try_catch/149 [ 16.419921] [ 16.419959] CPU: 0 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.420081] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.420109] Hardware name: linux,dummy-virt (DT) [ 16.420147] Call trace: [ 16.420220] show_stack+0x20/0x38 (C) [ 16.420275] dump_stack_lvl+0x8c/0xd0 [ 16.420361] print_report+0x118/0x608 [ 16.420445] kasan_report+0xdc/0x128 [ 16.420501] __asan_report_load1_noabort+0x20/0x30 [ 16.420551] kmalloc_large_uaf+0x2cc/0x2f8 [ 16.420595] kunit_try_run_case+0x170/0x3f0 [ 16.420642] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.420693] kthread+0x328/0x630 [ 16.420735] ret_from_fork+0x10/0x20 [ 16.420782] [ 16.420803] The buggy address belongs to the physical page: [ 16.420834] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106518 [ 16.420897] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.420963] raw: 0bfffe0000000000 ffffc1ffc3194708 fff00000da457c40 0000000000000000 [ 16.421011] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.421049] page dumped because: kasan: bad access detected [ 16.421080] [ 16.421097] Memory state around the buggy address: [ 16.421129] fff00000c6517f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.421179] fff00000c6517f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.421220] >fff00000c6518000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.421256] ^ [ 16.421283] fff00000c6518080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.421326] fff00000c6518100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.421363] ==================================================================
[ 11.910334] ================================================================== [ 11.910931] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 11.911279] Read of size 1 at addr ffff888102a38000 by task kunit_try_catch/165 [ 11.911549] [ 11.911632] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 11.911689] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.911700] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.911718] Call Trace: [ 11.911729] <TASK> [ 11.911743] dump_stack_lvl+0x73/0xb0 [ 11.911771] print_report+0xd1/0x650 [ 11.911807] ? __virt_addr_valid+0x1db/0x2d0 [ 11.911830] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.911850] ? kasan_addr_to_slab+0x11/0xa0 [ 11.911881] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.911902] kasan_report+0x141/0x180 [ 11.911941] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.911967] __asan_report_load1_noabort+0x18/0x20 [ 11.911991] kmalloc_large_uaf+0x2f1/0x340 [ 11.912023] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 11.912045] ? __schedule+0x10cc/0x2b60 [ 11.912066] ? __pfx_read_tsc+0x10/0x10 [ 11.912098] ? ktime_get_ts64+0x86/0x230 [ 11.912121] kunit_try_run_case+0x1a5/0x480 [ 11.912145] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.912179] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.912201] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.912225] ? __kthread_parkme+0x82/0x180 [ 11.912271] ? preempt_count_sub+0x50/0x80 [ 11.912295] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.912330] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.912354] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.912378] kthread+0x337/0x6f0 [ 11.912396] ? trace_preempt_on+0x20/0xc0 [ 11.912419] ? __pfx_kthread+0x10/0x10 [ 11.912439] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.912460] ? calculate_sigpending+0x7b/0xa0 [ 11.912483] ? __pfx_kthread+0x10/0x10 [ 11.912504] ret_from_fork+0x116/0x1d0 [ 11.912522] ? __pfx_kthread+0x10/0x10 [ 11.912541] ret_from_fork_asm+0x1a/0x30 [ 11.912572] </TASK> [ 11.912581] [ 11.919582] The buggy address belongs to the physical page: [ 11.919962] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a38 [ 11.920318] flags: 0x200000000000000(node=0|zone=2) [ 11.920549] raw: 0200000000000000 ffffea00040a8f08 ffff88815b139f80 0000000000000000 [ 11.920777] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 11.921024] page dumped because: kasan: bad access detected [ 11.921308] [ 11.921421] Memory state around the buggy address: [ 11.921728] ffff888102a37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.922070] ffff888102a37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.922422] >ffff888102a38000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.922695] ^ [ 11.922980] ffff888102a38080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.923357] ffff888102a38100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.923736] ==================================================================