Date
June 26, 2025, 11:12 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 29.430043] ================================================================== [ 29.438603] BUG: KASAN: slab-use-after-free in kmalloc_uaf_memset+0x170/0x310 [ 29.445719] Write of size 33 at addr ffff000800d61600 by task kunit_try_catch/235 [ 29.453182] [ 29.454670] CPU: 7 UID: 0 PID: 235 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 29.454725] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.454745] Hardware name: WinLink E850-96 board (DT) [ 29.454768] Call trace: [ 29.454780] show_stack+0x20/0x38 (C) [ 29.454819] dump_stack_lvl+0x8c/0xd0 [ 29.454857] print_report+0x118/0x608 [ 29.454888] kasan_report+0xdc/0x128 [ 29.454918] kasan_check_range+0x100/0x1a8 [ 29.454948] __asan_memset+0x34/0x78 [ 29.454980] kmalloc_uaf_memset+0x170/0x310 [ 29.455014] kunit_try_run_case+0x170/0x3f0 [ 29.455052] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.455091] kthread+0x328/0x630 [ 29.455126] ret_from_fork+0x10/0x20 [ 29.455162] [ 29.520370] Allocated by task 235: [ 29.523758] kasan_save_stack+0x3c/0x68 [ 29.527573] kasan_save_track+0x20/0x40 [ 29.531392] kasan_save_alloc_info+0x40/0x58 [ 29.535646] __kasan_kmalloc+0xd4/0xd8 [ 29.539380] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.543892] kmalloc_uaf_memset+0xb8/0x310 [ 29.547972] kunit_try_run_case+0x170/0x3f0 [ 29.552139] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.557607] kthread+0x328/0x630 [ 29.560819] ret_from_fork+0x10/0x20 [ 29.564378] [ 29.565854] Freed by task 235: [ 29.568893] kasan_save_stack+0x3c/0x68 [ 29.572711] kasan_save_track+0x20/0x40 [ 29.576531] kasan_save_free_info+0x4c/0x78 [ 29.580697] __kasan_slab_free+0x6c/0x98 [ 29.584604] kfree+0x214/0x3c8 [ 29.587642] kmalloc_uaf_memset+0x11c/0x310 [ 29.591810] kunit_try_run_case+0x170/0x3f0 [ 29.595975] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.601444] kthread+0x328/0x630 [ 29.604655] ret_from_fork+0x10/0x20 [ 29.608214] [ 29.609690] The buggy address belongs to the object at ffff000800d61600 [ 29.609690] which belongs to the cache kmalloc-64 of size 64 [ 29.622019] The buggy address is located 0 bytes inside of [ 29.622019] freed 64-byte region [ffff000800d61600, ffff000800d61640) [ 29.633995] [ 29.635475] The buggy address belongs to the physical page: [ 29.641032] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880d61 [ 29.649015] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.655525] page_type: f5(slab) [ 29.658662] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 29.666380] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.674100] page dumped because: kasan: bad access detected [ 29.679654] [ 29.681131] Memory state around the buggy address: [ 29.685913] ffff000800d61500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.693113] ffff000800d61580: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.700318] >ffff000800d61600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.707518] ^ [ 29.710734] ffff000800d61680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.717939] ffff000800d61700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.725141] ==================================================================
[ 18.145364] ================================================================== [ 18.145430] BUG: KASAN: slab-use-after-free in kmalloc_uaf_memset+0x170/0x310 [ 18.145491] Write of size 33 at addr fff00000c797b280 by task kunit_try_catch/188 [ 18.145544] [ 18.145797] CPU: 0 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 18.146002] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.146032] Hardware name: linux,dummy-virt (DT) [ 18.146414] Call trace: [ 18.146482] show_stack+0x20/0x38 (C) [ 18.146640] dump_stack_lvl+0x8c/0xd0 [ 18.146725] print_report+0x118/0x608 [ 18.146772] kasan_report+0xdc/0x128 [ 18.146837] kasan_check_range+0x100/0x1a8 [ 18.147168] __asan_memset+0x34/0x78 [ 18.147248] kmalloc_uaf_memset+0x170/0x310 [ 18.147300] kunit_try_run_case+0x170/0x3f0 [ 18.147451] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.147511] kthread+0x328/0x630 [ 18.147556] ret_from_fork+0x10/0x20 [ 18.147610] [ 18.147629] Allocated by task 188: [ 18.147913] kasan_save_stack+0x3c/0x68 [ 18.148069] kasan_save_track+0x20/0x40 [ 18.148172] kasan_save_alloc_info+0x40/0x58 [ 18.148360] __kasan_kmalloc+0xd4/0xd8 [ 18.148465] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.148609] kmalloc_uaf_memset+0xb8/0x310 [ 18.148671] kunit_try_run_case+0x170/0x3f0 [ 18.148731] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.148777] kthread+0x328/0x630 [ 18.148814] ret_from_fork+0x10/0x20 [ 18.148849] [ 18.149049] Freed by task 188: [ 18.149123] kasan_save_stack+0x3c/0x68 [ 18.149326] kasan_save_track+0x20/0x40 [ 18.149440] kasan_save_free_info+0x4c/0x78 [ 18.149529] __kasan_slab_free+0x6c/0x98 [ 18.149745] kfree+0x214/0x3c8 [ 18.149787] kmalloc_uaf_memset+0x11c/0x310 [ 18.150026] kunit_try_run_case+0x170/0x3f0 [ 18.150801] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.150929] kthread+0x328/0x630 [ 18.150996] ret_from_fork+0x10/0x20 [ 18.151059] [ 18.151108] The buggy address belongs to the object at fff00000c797b280 [ 18.151108] which belongs to the cache kmalloc-64 of size 64 [ 18.151271] The buggy address is located 0 bytes inside of [ 18.151271] freed 64-byte region [fff00000c797b280, fff00000c797b2c0) [ 18.151493] [ 18.151537] The buggy address belongs to the physical page: [ 18.151783] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10797b [ 18.152002] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.152434] page_type: f5(slab) [ 18.152616] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 18.152778] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 18.152826] page dumped because: kasan: bad access detected [ 18.153265] [ 18.153453] Memory state around the buggy address: [ 18.153516] fff00000c797b180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.153612] fff00000c797b200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.153668] >fff00000c797b280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.153737] ^ [ 18.153783] fff00000c797b300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.153845] fff00000c797b380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.153901] ==================================================================
[ 11.198606] ================================================================== [ 11.199178] BUG: KASAN: slab-use-after-free in kmalloc_uaf_memset+0x1a3/0x360 [ 11.199448] Write of size 33 at addr ffff8881029fb280 by task kunit_try_catch/205 [ 11.199862] [ 11.200297] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT(voluntary) [ 11.200409] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.200423] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.200447] Call Trace: [ 11.200462] <TASK> [ 11.200481] dump_stack_lvl+0x73/0xb0 [ 11.200512] print_report+0xd1/0x650 [ 11.200536] ? __virt_addr_valid+0x1db/0x2d0 [ 11.200559] ? kmalloc_uaf_memset+0x1a3/0x360 [ 11.200580] ? kasan_complete_mode_report_info+0x64/0x200 [ 11.200675] ? kmalloc_uaf_memset+0x1a3/0x360 [ 11.200697] kasan_report+0x141/0x180 [ 11.200734] ? kmalloc_uaf_memset+0x1a3/0x360 [ 11.200762] kasan_check_range+0x10c/0x1c0 [ 11.200782] __asan_memset+0x27/0x50 [ 11.200802] kmalloc_uaf_memset+0x1a3/0x360 [ 11.200823] ? __pfx_kmalloc_uaf_memset+0x10/0x10 [ 11.200845] ? __schedule+0x10cc/0x2b60 [ 11.200869] ? __pfx_read_tsc+0x10/0x10 [ 11.200889] ? ktime_get_ts64+0x86/0x230 [ 11.200929] kunit_try_run_case+0x1a5/0x480 [ 11.200955] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.200977] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.201001] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.201023] ? __kthread_parkme+0x82/0x180 [ 11.201046] ? preempt_count_sub+0x50/0x80 [ 11.201071] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.201094] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.201116] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.201138] kthread+0x337/0x6f0 [ 11.201155] ? trace_preempt_on+0x20/0xc0 [ 11.201179] ? __pfx_kthread+0x10/0x10 [ 11.201196] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.201217] ? calculate_sigpending+0x7b/0xa0 [ 11.201238] ? __pfx_kthread+0x10/0x10 [ 11.201256] ret_from_fork+0x41/0x80 [ 11.201276] ? __pfx_kthread+0x10/0x10 [ 11.201294] ret_from_fork_asm+0x1a/0x30 [ 11.201325] </TASK> [ 11.201337] [ 11.208766] Allocated by task 205: [ 11.208965] kasan_save_stack+0x45/0x70 [ 11.209184] kasan_save_track+0x18/0x40 [ 11.209318] kasan_save_alloc_info+0x3b/0x50 [ 11.209462] __kasan_kmalloc+0xb7/0xc0 [ 11.209593] __kmalloc_cache_noprof+0x189/0x420 [ 11.209744] kmalloc_uaf_memset+0xa9/0x360 [ 11.210136] kunit_try_run_case+0x1a5/0x480 [ 11.210496] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.210882] kthread+0x337/0x6f0 [ 11.211052] ret_from_fork+0x41/0x80 [ 11.211272] ret_from_fork_asm+0x1a/0x30 [ 11.211449] [ 11.211530] Freed by task 205: [ 11.211742] kasan_save_stack+0x45/0x70 [ 11.212038] kasan_save_track+0x18/0x40 [ 11.212213] kasan_save_free_info+0x3f/0x60 [ 11.212369] __kasan_slab_free+0x56/0x70 [ 11.212555] kfree+0x222/0x3f0 [ 11.212681] kmalloc_uaf_memset+0x12b/0x360 [ 11.212941] kunit_try_run_case+0x1a5/0x480 [ 11.213104] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.213322] kthread+0x337/0x6f0 [ 11.213441] ret_from_fork+0x41/0x80 [ 11.213673] ret_from_fork_asm+0x1a/0x30 [ 11.213989] [ 11.214083] The buggy address belongs to the object at ffff8881029fb280 [ 11.214083] which belongs to the cache kmalloc-64 of size 64 [ 11.214535] The buggy address is located 0 bytes inside of [ 11.214535] freed 64-byte region [ffff8881029fb280, ffff8881029fb2c0) [ 11.215378] [ 11.215475] The buggy address belongs to the physical page: [ 11.215687] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029fb [ 11.215941] flags: 0x200000000000000(node=0|zone=2) [ 11.216109] page_type: f5(slab) [ 11.216235] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 11.216471] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 11.216786] page dumped because: kasan: bad access detected [ 11.217218] [ 11.217309] Memory state around the buggy address: [ 11.217531] ffff8881029fb180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.217955] ffff8881029fb200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.218168] >ffff8881029fb280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.218378] ^ [ 11.218489] ffff8881029fb300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.218698] ffff8881029fb380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.218908] ==================================================================