Date
July 14, 2025, 10:38 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 45.200165] ================================================================== [ 45.209217] BUG: KASAN: slab-use-after-free in kmalloc_uaf_memset+0x170/0x310 [ 45.216331] Write of size 33 at addr ffff000807bb4c00 by task kunit_try_catch/270 [ 45.223794] [ 45.225280] CPU: 3 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 45.225337] Tainted: [B]=BAD_PAGE, [N]=TEST [ 45.225354] Hardware name: WinLink E850-96 board (DT) [ 45.225375] Call trace: [ 45.225388] show_stack+0x20/0x38 (C) [ 45.225422] dump_stack_lvl+0x8c/0xd0 [ 45.225453] print_report+0x118/0x5d0 [ 45.225479] kasan_report+0xdc/0x128 [ 45.225503] kasan_check_range+0x100/0x1a8 [ 45.225531] __asan_memset+0x34/0x78 [ 45.225560] kmalloc_uaf_memset+0x170/0x310 [ 45.225589] kunit_try_run_case+0x170/0x3f0 [ 45.225625] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 45.225654] kthread+0x328/0x630 [ 45.225685] ret_from_fork+0x10/0x20 [ 45.225720] [ 45.292195] Allocated by task 270: [ 45.295583] kasan_save_stack+0x3c/0x68 [ 45.299400] kasan_save_track+0x20/0x40 [ 45.303220] kasan_save_alloc_info+0x40/0x58 [ 45.307475] __kasan_kmalloc+0xd4/0xd8 [ 45.311206] __kmalloc_cache_noprof+0x16c/0x3c0 [ 45.315719] kmalloc_uaf_memset+0xb8/0x310 [ 45.319799] kunit_try_run_case+0x170/0x3f0 [ 45.323966] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 45.329434] kthread+0x328/0x630 [ 45.332646] ret_from_fork+0x10/0x20 [ 45.336205] [ 45.337681] Freed by task 270: [ 45.340720] kasan_save_stack+0x3c/0x68 [ 45.344539] kasan_save_track+0x20/0x40 [ 45.348358] kasan_save_free_info+0x4c/0x78 [ 45.352524] __kasan_slab_free+0x6c/0x98 [ 45.356431] kfree+0x214/0x3c8 [ 45.359469] kmalloc_uaf_memset+0x11c/0x310 [ 45.363635] kunit_try_run_case+0x170/0x3f0 [ 45.367802] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 45.373272] kthread+0x328/0x630 [ 45.376483] ret_from_fork+0x10/0x20 [ 45.380041] [ 45.381518] The buggy address belongs to the object at ffff000807bb4c00 [ 45.381518] which belongs to the cache kmalloc-64 of size 64 [ 45.393847] The buggy address is located 0 bytes inside of [ 45.393847] freed 64-byte region [ffff000807bb4c00, ffff000807bb4c40) [ 45.405822] [ 45.407301] The buggy address belongs to the physical page: [ 45.412858] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x887bb4 [ 45.420843] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 45.427353] page_type: f5(slab) [ 45.430488] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 45.438207] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 45.445927] page dumped because: kasan: bad access detected [ 45.451481] [ 45.452957] Memory state around the buggy address: [ 45.457738] ffff000807bb4b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.464940] ffff000807bb4b80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.472145] >ffff000807bb4c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.479346] ^ [ 45.482561] ffff000807bb4c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.489766] ffff000807bb4d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.496968] ==================================================================
[ 29.749763] ================================================================== [ 29.749847] BUG: KASAN: slab-use-after-free in kmalloc_uaf_memset+0x170/0x310 [ 29.750031] Write of size 33 at addr fff00000c9adf000 by task kunit_try_catch/217 [ 29.750115] [ 29.750198] CPU: 0 UID: 0 PID: 217 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 29.750338] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.750366] Hardware name: linux,dummy-virt (DT) [ 29.750463] Call trace: [ 29.750541] show_stack+0x20/0x38 (C) [ 29.750619] dump_stack_lvl+0x8c/0xd0 [ 29.750668] print_report+0x118/0x5d0 [ 29.750818] kasan_report+0xdc/0x128 [ 29.750864] kasan_check_range+0x100/0x1a8 [ 29.750909] __asan_memset+0x34/0x78 [ 29.750953] kmalloc_uaf_memset+0x170/0x310 [ 29.750998] kunit_try_run_case+0x170/0x3f0 [ 29.751067] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.751119] kthread+0x328/0x630 [ 29.751612] ret_from_fork+0x10/0x20 [ 29.751712] [ 29.751776] Allocated by task 217: [ 29.751804] kasan_save_stack+0x3c/0x68 [ 29.751900] kasan_save_track+0x20/0x40 [ 29.751939] kasan_save_alloc_info+0x40/0x58 [ 29.751975] __kasan_kmalloc+0xd4/0xd8 [ 29.752013] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.752310] kmalloc_uaf_memset+0xb8/0x310 [ 29.752557] kunit_try_run_case+0x170/0x3f0 [ 29.752630] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.752672] kthread+0x328/0x630 [ 29.752996] ret_from_fork+0x10/0x20 [ 29.753244] [ 29.753264] Freed by task 217: [ 29.753312] kasan_save_stack+0x3c/0x68 [ 29.753354] kasan_save_track+0x20/0x40 [ 29.753419] kasan_save_free_info+0x4c/0x78 [ 29.753456] __kasan_slab_free+0x6c/0x98 [ 29.753567] kfree+0x214/0x3c8 [ 29.753617] kmalloc_uaf_memset+0x11c/0x310 [ 29.753655] kunit_try_run_case+0x170/0x3f0 [ 29.753694] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.753734] kthread+0x328/0x630 [ 29.753767] ret_from_fork+0x10/0x20 [ 29.753855] [ 29.753876] The buggy address belongs to the object at fff00000c9adf000 [ 29.753876] which belongs to the cache kmalloc-64 of size 64 [ 29.753934] The buggy address is located 0 bytes inside of [ 29.753934] freed 64-byte region [fff00000c9adf000, fff00000c9adf040) [ 29.754025] [ 29.754056] The buggy address belongs to the physical page: [ 29.754089] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109adf [ 29.754145] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.754199] page_type: f5(slab) [ 29.754240] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 29.754290] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.754330] page dumped because: kasan: bad access detected [ 29.754361] [ 29.754378] Memory state around the buggy address: [ 29.754410] fff00000c9adef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.755383] fff00000c9adef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.755431] >fff00000c9adf000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.755516] ^ [ 29.755658] fff00000c9adf080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.755746] fff00000c9adf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.755810] ==================================================================
[ 24.559584] ================================================================== [ 24.560895] BUG: KASAN: slab-use-after-free in kmalloc_uaf_memset+0x1a3/0x360 [ 24.561152] Write of size 33 at addr ffff88810510bc00 by task kunit_try_catch/235 [ 24.561409] [ 24.561495] CPU: 1 UID: 0 PID: 235 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) [ 24.561549] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 24.561607] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.561631] Call Trace: [ 24.561644] <TASK> [ 24.561677] dump_stack_lvl+0x73/0xb0 [ 24.561711] print_report+0xd1/0x610 [ 24.561734] ? __virt_addr_valid+0x1db/0x2d0 [ 24.561979] ? kmalloc_uaf_memset+0x1a3/0x360 [ 24.562002] ? kasan_complete_mode_report_info+0x64/0x200 [ 24.562027] ? kmalloc_uaf_memset+0x1a3/0x360 [ 24.562260] kasan_report+0x141/0x180 [ 24.562283] ? kmalloc_uaf_memset+0x1a3/0x360 [ 24.562308] kasan_check_range+0x10c/0x1c0 [ 24.562330] __asan_memset+0x27/0x50 [ 24.562353] kmalloc_uaf_memset+0x1a3/0x360 [ 24.562374] ? __pfx_kmalloc_uaf_memset+0x10/0x10 [ 24.562395] ? __schedule+0x10cc/0x2b60 [ 24.562419] ? __pfx_read_tsc+0x10/0x10 [ 24.562441] ? ktime_get_ts64+0x86/0x230 [ 24.562465] kunit_try_run_case+0x1a5/0x480 [ 24.562489] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.562508] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.562530] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.562553] ? __kthread_parkme+0x82/0x180 [ 24.562574] ? preempt_count_sub+0x50/0x80 [ 24.562597] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.562617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.562642] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.562681] kthread+0x337/0x6f0 [ 24.562701] ? trace_preempt_on+0x20/0xc0 [ 24.562723] ? __pfx_kthread+0x10/0x10 [ 24.562743] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.562767] ? calculate_sigpending+0x7b/0xa0 [ 24.562793] ? __pfx_kthread+0x10/0x10 [ 24.562816] ret_from_fork+0x116/0x1d0 [ 24.562836] ? __pfx_kthread+0x10/0x10 [ 24.562856] ret_from_fork_asm+0x1a/0x30 [ 24.562888] </TASK> [ 24.562899] [ 24.574550] Allocated by task 235: [ 24.574913] kasan_save_stack+0x45/0x70 [ 24.575343] kasan_save_track+0x18/0x40 [ 24.575741] kasan_save_alloc_info+0x3b/0x50 [ 24.576207] __kasan_kmalloc+0xb7/0xc0 [ 24.576536] __kmalloc_cache_noprof+0x189/0x420 [ 24.576705] kmalloc_uaf_memset+0xa9/0x360 [ 24.577059] kunit_try_run_case+0x1a5/0x480 [ 24.577475] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.578060] kthread+0x337/0x6f0 [ 24.578282] ret_from_fork+0x116/0x1d0 [ 24.578416] ret_from_fork_asm+0x1a/0x30 [ 24.578556] [ 24.578624] Freed by task 235: [ 24.578744] kasan_save_stack+0x45/0x70 [ 24.578897] kasan_save_track+0x18/0x40 [ 24.579055] kasan_save_free_info+0x3f/0x60 [ 24.579303] __kasan_slab_free+0x56/0x70 [ 24.579433] kfree+0x222/0x3f0 [ 24.579596] kmalloc_uaf_memset+0x12b/0x360 [ 24.580075] kunit_try_run_case+0x1a5/0x480 [ 24.580258] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.580490] kthread+0x337/0x6f0 [ 24.580644] ret_from_fork+0x116/0x1d0 [ 24.580909] ret_from_fork_asm+0x1a/0x30 [ 24.581131] [ 24.581248] The buggy address belongs to the object at ffff88810510bc00 [ 24.581248] which belongs to the cache kmalloc-64 of size 64 [ 24.581714] The buggy address is located 0 bytes inside of [ 24.581714] freed 64-byte region [ffff88810510bc00, ffff88810510bc40) [ 24.582100] [ 24.582223] The buggy address belongs to the physical page: [ 24.582553] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10510b [ 24.582929] flags: 0x200000000000000(node=0|zone=2) [ 24.583316] page_type: f5(slab) [ 24.584183] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 24.584535] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 24.585062] page dumped because: kasan: bad access detected [ 24.585527] [ 24.585619] Memory state around the buggy address: [ 24.585890] ffff88810510bb00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.586517] ffff88810510bb80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.587053] >ffff88810510bc00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.587293] ^ [ 24.587547] ffff88810510bc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.587826] ffff88810510bd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.588393] ==================================================================