Date
July 11, 2025, 10:11 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 46.854687] ================================================================== [ 46.864021] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 46.870617] Read of size 1 at addr ffff0008083ca9a8 by task kunit_try_catch/272 [ 46.877903] [ 46.879389] CPU: 2 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 46.879446] Tainted: [B]=BAD_PAGE, [N]=TEST [ 46.879465] Hardware name: WinLink E850-96 board (DT) [ 46.879488] Call trace: [ 46.879503] show_stack+0x20/0x38 (C) [ 46.879538] dump_stack_lvl+0x8c/0xd0 [ 46.879569] print_report+0x118/0x5d0 [ 46.879599] kasan_report+0xdc/0x128 [ 46.879624] __asan_report_load1_noabort+0x20/0x30 [ 46.879656] kmalloc_uaf2+0x3f4/0x468 [ 46.879685] kunit_try_run_case+0x170/0x3f0 [ 46.879726] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 46.879761] kthread+0x328/0x630 [ 46.879792] ret_from_fork+0x10/0x20 [ 46.879829] [ 46.942919] Allocated by task 272: [ 46.946306] kasan_save_stack+0x3c/0x68 [ 46.950122] kasan_save_track+0x20/0x40 [ 46.953943] kasan_save_alloc_info+0x40/0x58 [ 46.958195] __kasan_kmalloc+0xd4/0xd8 [ 46.961927] __kmalloc_cache_noprof+0x16c/0x3c0 [ 46.966441] kmalloc_uaf2+0xc4/0x468 [ 46.970000] kunit_try_run_case+0x170/0x3f0 [ 46.974167] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 46.979635] kthread+0x328/0x630 [ 46.982848] ret_from_fork+0x10/0x20 [ 46.986407] [ 46.987883] Freed by task 272: [ 46.990922] kasan_save_stack+0x3c/0x68 [ 46.994739] kasan_save_track+0x20/0x40 [ 46.998559] kasan_save_free_info+0x4c/0x78 [ 47.002726] __kasan_slab_free+0x6c/0x98 [ 47.006633] kfree+0x214/0x3c8 [ 47.009670] kmalloc_uaf2+0x134/0x468 [ 47.013316] kunit_try_run_case+0x170/0x3f0 [ 47.017484] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 47.022951] kthread+0x328/0x630 [ 47.026163] ret_from_fork+0x10/0x20 [ 47.029722] [ 47.031199] The buggy address belongs to the object at ffff0008083ca980 [ 47.031199] which belongs to the cache kmalloc-64 of size 64 [ 47.043526] The buggy address is located 40 bytes inside of [ 47.043526] freed 64-byte region [ffff0008083ca980, ffff0008083ca9c0) [ 47.055589] [ 47.057067] The buggy address belongs to the physical page: [ 47.062624] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8883ca [ 47.070609] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 47.077120] page_type: f5(slab) [ 47.080254] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 47.087976] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 47.095694] page dumped because: kasan: bad access detected [ 47.101248] [ 47.102724] Memory state around the buggy address: [ 47.107505] ffff0008083ca880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.114707] ffff0008083ca900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.121913] >ffff0008083ca980: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.129113] ^ [ 47.133631] ffff0008083caa00: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 47.140834] ffff0008083caa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.148037] ==================================================================
[ 30.621818] ================================================================== [ 30.621921] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 30.623896] Read of size 1 at addr fff00000c9ac9ba8 by task kunit_try_catch/219 [ 30.624263] [ 30.624418] CPU: 1 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 30.625426] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.625509] Hardware name: linux,dummy-virt (DT) [ 30.626292] Call trace: [ 30.626334] show_stack+0x20/0x38 (C) [ 30.626725] dump_stack_lvl+0x8c/0xd0 [ 30.627277] print_report+0x118/0x5d0 [ 30.627677] kasan_report+0xdc/0x128 [ 30.628340] __asan_report_load1_noabort+0x20/0x30 [ 30.629117] kmalloc_uaf2+0x3f4/0x468 [ 30.629820] kunit_try_run_case+0x170/0x3f0 [ 30.630083] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.630652] kthread+0x328/0x630 [ 30.631072] ret_from_fork+0x10/0x20 [ 30.631672] [ 30.631820] Allocated by task 219: [ 30.632084] kasan_save_stack+0x3c/0x68 [ 30.632434] kasan_save_track+0x20/0x40 [ 30.632477] kasan_save_alloc_info+0x40/0x58 [ 30.633137] __kasan_kmalloc+0xd4/0xd8 [ 30.633654] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.634280] kmalloc_uaf2+0xc4/0x468 [ 30.634696] kunit_try_run_case+0x170/0x3f0 [ 30.635085] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.635819] kthread+0x328/0x630 [ 30.635989] ret_from_fork+0x10/0x20 [ 30.636421] [ 30.636444] Freed by task 219: [ 30.636819] kasan_save_stack+0x3c/0x68 [ 30.636871] kasan_save_track+0x20/0x40 [ 30.637654] kasan_save_free_info+0x4c/0x78 [ 30.638151] __kasan_slab_free+0x6c/0x98 [ 30.638446] kfree+0x214/0x3c8 [ 30.638568] kmalloc_uaf2+0x134/0x468 [ 30.639122] kunit_try_run_case+0x170/0x3f0 [ 30.639180] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.639223] kthread+0x328/0x630 [ 30.639899] ret_from_fork+0x10/0x20 [ 30.640438] [ 30.640464] The buggy address belongs to the object at fff00000c9ac9b80 [ 30.640464] which belongs to the cache kmalloc-64 of size 64 [ 30.640919] The buggy address is located 40 bytes inside of [ 30.640919] freed 64-byte region [fff00000c9ac9b80, fff00000c9ac9bc0) [ 30.640990] [ 30.641012] The buggy address belongs to the physical page: [ 30.641046] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ac9 [ 30.641107] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.641161] page_type: f5(slab) [ 30.642661] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 30.643477] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 30.643767] page dumped because: kasan: bad access detected [ 30.643840] [ 30.643859] Memory state around the buggy address: [ 30.644535] fff00000c9ac9a80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.644594] fff00000c9ac9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.645253] >fff00000c9ac9b80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.645494] ^ [ 30.645803] fff00000c9ac9c00: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 30.645872] fff00000c9ac9c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.645945] ==================================================================
[ 24.082125] ================================================================== [ 24.082704] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x4a8/0x520 [ 24.083101] Read of size 1 at addr ffff888104cb3c28 by task kunit_try_catch/238 [ 24.083376] [ 24.083491] CPU: 0 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) [ 24.083606] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.083619] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.083641] Call Trace: [ 24.083655] <TASK> [ 24.083672] dump_stack_lvl+0x73/0xb0 [ 24.083704] print_report+0xd1/0x610 [ 24.083726] ? __virt_addr_valid+0x1db/0x2d0 [ 24.083765] ? kmalloc_uaf2+0x4a8/0x520 [ 24.083784] ? kasan_complete_mode_report_info+0x64/0x200 [ 24.083809] ? kmalloc_uaf2+0x4a8/0x520 [ 24.083830] kasan_report+0x141/0x180 [ 24.083851] ? kmalloc_uaf2+0x4a8/0x520 [ 24.083875] __asan_report_load1_noabort+0x18/0x20 [ 24.083898] kmalloc_uaf2+0x4a8/0x520 [ 24.083919] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 24.083938] ? finish_task_switch.isra.0+0x153/0x700 [ 24.083960] ? __switch_to+0x47/0xf80 [ 24.083987] ? __schedule+0x10cc/0x2b60 [ 24.084011] ? __pfx_read_tsc+0x10/0x10 [ 24.084032] ? ktime_get_ts64+0x86/0x230 [ 24.084057] kunit_try_run_case+0x1a5/0x480 [ 24.084079] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.084100] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.084123] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.084146] ? __kthread_parkme+0x82/0x180 [ 24.084166] ? preempt_count_sub+0x50/0x80 [ 24.084189] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.084210] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.084235] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.084259] kthread+0x337/0x6f0 [ 24.084325] ? trace_preempt_on+0x20/0xc0 [ 24.084350] ? __pfx_kthread+0x10/0x10 [ 24.084370] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.084392] ? calculate_sigpending+0x7b/0xa0 [ 24.084425] ? __pfx_kthread+0x10/0x10 [ 24.084446] ret_from_fork+0x116/0x1d0 [ 24.084465] ? __pfx_kthread+0x10/0x10 [ 24.084486] ret_from_fork_asm+0x1a/0x30 [ 24.084517] </TASK> [ 24.084528] [ 24.091831] Allocated by task 238: [ 24.091954] kasan_save_stack+0x45/0x70 [ 24.092092] kasan_save_track+0x18/0x40 [ 24.092325] kasan_save_alloc_info+0x3b/0x50 [ 24.092706] __kasan_kmalloc+0xb7/0xc0 [ 24.092898] __kmalloc_cache_noprof+0x189/0x420 [ 24.093117] kmalloc_uaf2+0xc6/0x520 [ 24.093422] kunit_try_run_case+0x1a5/0x480 [ 24.093623] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.093850] kthread+0x337/0x6f0 [ 24.094014] ret_from_fork+0x116/0x1d0 [ 24.094175] ret_from_fork_asm+0x1a/0x30 [ 24.094438] [ 24.094508] Freed by task 238: [ 24.094656] kasan_save_stack+0x45/0x70 [ 24.094836] kasan_save_track+0x18/0x40 [ 24.095002] kasan_save_free_info+0x3f/0x60 [ 24.095186] __kasan_slab_free+0x56/0x70 [ 24.095487] kfree+0x222/0x3f0 [ 24.095636] kmalloc_uaf2+0x14c/0x520 [ 24.095774] kunit_try_run_case+0x1a5/0x480 [ 24.095911] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.096078] kthread+0x337/0x6f0 [ 24.096192] ret_from_fork+0x116/0x1d0 [ 24.096354] ret_from_fork_asm+0x1a/0x30 [ 24.096543] [ 24.096634] The buggy address belongs to the object at ffff888104cb3c00 [ 24.096634] which belongs to the cache kmalloc-64 of size 64 [ 24.097172] The buggy address is located 40 bytes inside of [ 24.097172] freed 64-byte region [ffff888104cb3c00, ffff888104cb3c40) [ 24.097748] [ 24.097826] The buggy address belongs to the physical page: [ 24.097997] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104cb3 [ 24.098399] flags: 0x200000000000000(node=0|zone=2) [ 24.098720] page_type: f5(slab) [ 24.098896] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 24.099229] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 24.099700] page dumped because: kasan: bad access detected [ 24.099951] [ 24.100027] Memory state around the buggy address: [ 24.100218] ffff888104cb3b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.100675] ffff888104cb3b80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.100981] >ffff888104cb3c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.101219] ^ [ 24.101771] ffff888104cb3c80: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 24.101993] ffff888104cb3d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.102197] ==================================================================