Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.140327] ================================================================== [ 17.140397] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 17.140511] Read of size 1 at addr fff00000c6634000 by task kunit_try_catch/148 [ 17.140562] [ 17.140598] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.140684] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.140711] Hardware name: linux,dummy-virt (DT) [ 17.140787] Call trace: [ 17.140815] show_stack+0x20/0x38 (C) [ 17.140869] dump_stack_lvl+0x8c/0xd0 [ 17.141064] print_report+0x118/0x608 [ 17.141137] kasan_report+0xdc/0x128 [ 17.141256] __asan_report_load1_noabort+0x20/0x30 [ 17.141309] kmalloc_large_uaf+0x2cc/0x2f8 [ 17.141353] kunit_try_run_case+0x170/0x3f0 [ 17.141481] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.141537] kthread+0x328/0x630 [ 17.141754] ret_from_fork+0x10/0x20 [ 17.141806] [ 17.141961] The buggy address belongs to the physical page: [ 17.142110] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106634 [ 17.142166] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.142255] raw: 0bfffe0000000000 ffffc1ffc3198e08 fff00000da478c40 0000000000000000 [ 17.142306] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 17.142346] page dumped because: kasan: bad access detected [ 17.142633] [ 17.142702] Memory state around the buggy address: [ 17.142834] fff00000c6633f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.142878] fff00000c6633f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.142921] >fff00000c6634000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.142958] ^ [ 17.143049] fff00000c6634080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.143239] fff00000c6634100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.143420] ==================================================================
[ 11.000410] ================================================================== [ 11.000963] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 11.001446] Read of size 1 at addr ffff8881029b4000 by task kunit_try_catch/165 [ 11.001798] [ 11.001947] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.002012] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.002170] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.002190] Call Trace: [ 11.002213] <TASK> [ 11.002227] dump_stack_lvl+0x73/0xb0 [ 11.002255] print_report+0xd1/0x650 [ 11.002277] ? __virt_addr_valid+0x1db/0x2d0 [ 11.002298] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.002317] ? kasan_addr_to_slab+0x11/0xa0 [ 11.002335] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.002355] kasan_report+0x141/0x180 [ 11.002376] ? kmalloc_large_uaf+0x2f1/0x340 [ 11.002399] __asan_report_load1_noabort+0x18/0x20 [ 11.002422] kmalloc_large_uaf+0x2f1/0x340 [ 11.002441] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 11.002461] ? __schedule+0x10cc/0x2b60 [ 11.002481] ? __pfx_read_tsc+0x10/0x10 [ 11.002500] ? ktime_get_ts64+0x86/0x230 [ 11.002522] kunit_try_run_case+0x1a5/0x480 [ 11.002544] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.002564] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.002585] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.002606] ? __kthread_parkme+0x82/0x180 [ 11.002625] ? preempt_count_sub+0x50/0x80 [ 11.002646] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.002668] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.002689] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.002710] kthread+0x337/0x6f0 [ 11.002728] ? trace_preempt_on+0x20/0xc0 [ 11.002749] ? __pfx_kthread+0x10/0x10 [ 11.002768] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.002787] ? calculate_sigpending+0x7b/0xa0 [ 11.002810] ? __pfx_kthread+0x10/0x10 [ 11.002830] ret_from_fork+0x116/0x1d0 [ 11.002846] ? __pfx_kthread+0x10/0x10 [ 11.002865] ret_from_fork_asm+0x1a/0x30 [ 11.002894] </TASK> [ 11.002904] [ 11.013421] The buggy address belongs to the physical page: [ 11.013689] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029b4 [ 11.014000] flags: 0x200000000000000(node=0|zone=2) [ 11.014342] raw: 0200000000000000 ffffea00040a6e08 ffff88815b039f80 0000000000000000 [ 11.014676] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 11.014953] page dumped because: kasan: bad access detected [ 11.015216] [ 11.015311] Memory state around the buggy address: [ 11.015643] ffff8881029b3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.016148] ffff8881029b3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.016693] >ffff8881029b4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.017675] ^ [ 11.017869] ffff8881029b4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.018179] ffff8881029b4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.018571] ==================================================================