Date
May 30, 2025, 4:14 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 | |
x15 |
[ 29.233275] ================================================================== [ 29.243704] BUG: KASAN: slab-use-after-free in kmalloc_uaf+0x300/0x338 [ 29.250215] Read of size 1 at addr ffff00080444cc08 by task kunit_try_catch/228 [ 29.257504] [ 29.258988] CPU: 4 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 29.259045] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.259063] Hardware name: WinLink E850-96 board (DT) [ 29.259084] Call trace: [ 29.259100] show_stack+0x20/0x38 (C) [ 29.259136] dump_stack_lvl+0x8c/0xd0 [ 29.259174] print_report+0x118/0x608 [ 29.259211] kasan_report+0xdc/0x128 [ 29.259244] __asan_report_load1_noabort+0x20/0x30 [ 29.259274] kmalloc_uaf+0x300/0x338 [ 29.259301] kunit_try_run_case+0x170/0x3f0 [ 29.259337] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.259375] kthread+0x328/0x630 [ 29.259405] ret_from_fork+0x10/0x20 [ 29.259438] [ 29.322085] Allocated by task 228: [ 29.325474] kasan_save_stack+0x3c/0x68 [ 29.329290] kasan_save_track+0x20/0x40 [ 29.333109] kasan_save_alloc_info+0x40/0x58 [ 29.337363] __kasan_kmalloc+0xd4/0xd8 [ 29.341095] __kmalloc_cache_noprof+0x15c/0x3c0 [ 29.345609] kmalloc_uaf+0xb8/0x338 [ 29.349081] kunit_try_run_case+0x170/0x3f0 [ 29.353248] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.358717] kthread+0x328/0x630 [ 29.361928] ret_from_fork+0x10/0x20 [ 29.365487] [ 29.366964] Freed by task 228: [ 29.370003] kasan_save_stack+0x3c/0x68 [ 29.373821] kasan_save_track+0x20/0x40 [ 29.377640] kasan_save_free_info+0x4c/0x78 [ 29.381806] __kasan_slab_free+0x6c/0x98 [ 29.385714] kfree+0x214/0x3c8 [ 29.388751] kmalloc_uaf+0x11c/0x338 [ 29.392310] kunit_try_run_case+0x170/0x3f0 [ 29.396476] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.401945] kthread+0x328/0x630 [ 29.405157] ret_from_fork+0x10/0x20 [ 29.408716] [ 29.410193] The buggy address belongs to the object at ffff00080444cc00 [ 29.410193] which belongs to the cache kmalloc-16 of size 16 [ 29.422520] The buggy address is located 8 bytes inside of [ 29.422520] freed 16-byte region [ffff00080444cc00, ffff00080444cc10) [ 29.434496] [ 29.435976] The buggy address belongs to the physical page: [ 29.441532] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88444c [ 29.449517] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.456026] page_type: f5(slab) [ 29.459161] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000 [ 29.466881] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 29.474602] page dumped because: kasan: bad access detected [ 29.480157] [ 29.481631] Memory state around the buggy address: [ 29.486413] ffff00080444cb00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 29.493614] ffff00080444cb80: fa fb fc fc 00 04 fc fc fa fb fc fc fa fb fc fc [ 29.500819] >ffff00080444cc00: fa fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.508020] ^ [ 29.511496] ffff00080444cc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.518701] ffff00080444cd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.525902] ==================================================================
[ 25.008916] ================================================================== [ 25.009037] BUG: KASAN: slab-use-after-free in kmalloc_uaf+0x300/0x338 [ 25.009154] Read of size 1 at addr fff00000c5ed4d28 by task kunit_try_catch/185 [ 25.009284] [ 25.009357] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 25.009550] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.009613] Hardware name: linux,dummy-virt (DT) [ 25.009709] Call trace: [ 25.009782] show_stack+0x20/0x38 (C) [ 25.010227] dump_stack_lvl+0x8c/0xd0 [ 25.010770] print_report+0x118/0x608 [ 25.011436] kasan_report+0xdc/0x128 [ 25.011608] __asan_report_load1_noabort+0x20/0x30 [ 25.011754] kmalloc_uaf+0x300/0x338 [ 25.011868] kunit_try_run_case+0x170/0x3f0 [ 25.012041] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.012193] kthread+0x328/0x630 [ 25.012312] ret_from_fork+0x10/0x20 [ 25.012744] [ 25.012796] Allocated by task 185: [ 25.013263] kasan_save_stack+0x3c/0x68 [ 25.013374] kasan_save_track+0x20/0x40 [ 25.013471] kasan_save_alloc_info+0x40/0x58 [ 25.013563] __kasan_kmalloc+0xd4/0xd8 [ 25.013887] __kmalloc_cache_noprof+0x15c/0x3c0 [ 25.014138] kmalloc_uaf+0xb8/0x338 [ 25.014282] kunit_try_run_case+0x170/0x3f0 [ 25.014389] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.014552] kthread+0x328/0x630 [ 25.014768] ret_from_fork+0x10/0x20 [ 25.015271] [ 25.015356] Freed by task 185: [ 25.015427] kasan_save_stack+0x3c/0x68 [ 25.015540] kasan_save_track+0x20/0x40 [ 25.015716] kasan_save_free_info+0x4c/0x78 [ 25.015997] __kasan_slab_free+0x6c/0x98 [ 25.016275] kfree+0x214/0x3c8 [ 25.016368] kmalloc_uaf+0x11c/0x338 [ 25.016459] kunit_try_run_case+0x170/0x3f0 [ 25.016567] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.016769] kthread+0x328/0x630 [ 25.016877] ret_from_fork+0x10/0x20 [ 25.017445] [ 25.017574] The buggy address belongs to the object at fff00000c5ed4d20 [ 25.017574] which belongs to the cache kmalloc-16 of size 16 [ 25.017958] The buggy address is located 8 bytes inside of [ 25.017958] freed 16-byte region [fff00000c5ed4d20, fff00000c5ed4d30) [ 25.018117] [ 25.018173] The buggy address belongs to the physical page: [ 25.018246] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ed4 [ 25.018390] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.018929] page_type: f5(slab) [ 25.019118] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 25.019251] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 25.019735] page dumped because: kasan: bad access detected [ 25.019883] [ 25.019941] Memory state around the buggy address: [ 25.020050] fff00000c5ed4c00: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 25.020335] fff00000c5ed4c80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 25.020444] >fff00000c5ed4d00: fa fb fc fc fa fb fc fc fc fc fc fc fc fc fc fc [ 25.020539] ^ [ 25.020628] fff00000c5ed4d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.020811] fff00000c5ed4e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.020997] ==================================================================
[ 18.540474] ================================================================== [ 18.541375] BUG: KASAN: slab-use-after-free in kmalloc_uaf+0x320/0x380 [ 18.541931] Read of size 1 at addr ffff888102b0a0c8 by task kunit_try_catch/201 [ 18.543784] [ 18.543972] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT(voluntary) [ 18.544086] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.544126] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.544418] Call Trace: [ 18.544446] <TASK> [ 18.544471] dump_stack_lvl+0x73/0xb0 [ 18.544515] print_report+0xd1/0x650 [ 18.544549] ? __virt_addr_valid+0x1db/0x2d0 [ 18.544582] ? kmalloc_uaf+0x320/0x380 [ 18.544611] ? kasan_complete_mode_report_info+0x64/0x200 [ 18.544641] ? kmalloc_uaf+0x320/0x380 [ 18.544670] kasan_report+0x141/0x180 [ 18.544700] ? kmalloc_uaf+0x320/0x380 [ 18.544759] __asan_report_load1_noabort+0x18/0x20 [ 18.544806] kmalloc_uaf+0x320/0x380 [ 18.544836] ? __pfx_kmalloc_uaf+0x10/0x10 [ 18.544866] ? __schedule+0x10cc/0x2b60 [ 18.544901] ? __pfx_read_tsc+0x10/0x10 [ 18.544931] ? ktime_get_ts64+0x86/0x230 [ 18.544965] kunit_try_run_case+0x1a5/0x480 [ 18.544996] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.545046] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.545086] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.545120] ? __kthread_parkme+0x82/0x180 [ 18.545149] ? preempt_count_sub+0x50/0x80 [ 18.545278] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.545317] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.545355] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.545390] kthread+0x337/0x6f0 [ 18.545417] ? trace_preempt_on+0x20/0xc0 [ 18.545450] ? __pfx_kthread+0x10/0x10 [ 18.545478] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.545509] ? calculate_sigpending+0x7b/0xa0 [ 18.545542] ? __pfx_kthread+0x10/0x10 [ 18.545571] ret_from_fork+0x116/0x1d0 [ 18.545595] ? __pfx_kthread+0x10/0x10 [ 18.545623] ret_from_fork_asm+0x1a/0x30 [ 18.545665] </TASK> [ 18.545679] [ 18.566700] Allocated by task 201: [ 18.567075] kasan_save_stack+0x45/0x70 [ 18.567673] kasan_save_track+0x18/0x40 [ 18.568385] kasan_save_alloc_info+0x3b/0x50 [ 18.569091] __kasan_kmalloc+0xb7/0xc0 [ 18.569688] __kmalloc_cache_noprof+0x189/0x420 [ 18.570508] kmalloc_uaf+0xaa/0x380 [ 18.570833] kunit_try_run_case+0x1a5/0x480 [ 18.571206] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.571614] kthread+0x337/0x6f0 [ 18.572850] ret_from_fork+0x116/0x1d0 [ 18.573157] ret_from_fork_asm+0x1a/0x30 [ 18.574001] [ 18.574399] Freed by task 201: [ 18.574746] kasan_save_stack+0x45/0x70 [ 18.575509] kasan_save_track+0x18/0x40 [ 18.575818] kasan_save_free_info+0x3f/0x60 [ 18.576923] __kasan_slab_free+0x56/0x70 [ 18.577629] kfree+0x222/0x3f0 [ 18.578191] kmalloc_uaf+0x12c/0x380 [ 18.578692] kunit_try_run_case+0x1a5/0x480 [ 18.579505] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.580286] kthread+0x337/0x6f0 [ 18.580574] ret_from_fork+0x116/0x1d0 [ 18.581544] ret_from_fork_asm+0x1a/0x30 [ 18.581830] [ 18.582141] The buggy address belongs to the object at ffff888102b0a0c0 [ 18.582141] which belongs to the cache kmalloc-16 of size 16 [ 18.583949] The buggy address is located 8 bytes inside of [ 18.583949] freed 16-byte region [ffff888102b0a0c0, ffff888102b0a0d0) [ 18.585603] [ 18.585707] The buggy address belongs to the physical page: [ 18.586108] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b0a [ 18.587195] flags: 0x200000000000000(node=0|zone=2) [ 18.587611] page_type: f5(slab) [ 18.588169] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 18.589075] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.589830] page dumped because: kasan: bad access detected [ 18.590332] [ 18.590631] Memory state around the buggy address: [ 18.591807] ffff888102b09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.592535] ffff888102b0a000: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 18.593420] >ffff888102b0a080: fa fb fc fc fa fb fc fc fa fb fc fc fc fc fc fc [ 18.593820] ^ [ 18.594656] ffff888102b0a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.595570] ffff888102b0a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.596131] ==================================================================
[ 55.838623] ================================================================== [ 55.850708] BUG: KASAN: slab-use-after-free in kmalloc_uaf+0x398/0x3d8 [ 55.857269] Read of size 1 at addr cc797288 by task kunit_try_catch/236 [ 55.863952] [ 55.865447] CPU: 0 UID: 0 PID: 236 Comm: kunit_try_catch Tainted: G B W N 6.15.0-next-20250530 #1 NONE [ 55.865478] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 55.865478] Hardware name: Generic DRA74X (Flattened Device Tree) [ 55.865509] Call trace: [ 55.865509] unwind_backtrace from show_stack+0x18/0x1c [ 55.865539] show_stack from dump_stack_lvl+0x70/0x90 [ 55.865539] dump_stack_lvl from print_report+0x158/0x528 [ 55.865570] print_report from kasan_report+0xdc/0x118 [ 55.865600] kasan_report from kmalloc_uaf+0x398/0x3d8 [ 55.865631] kmalloc_uaf from kunit_try_run_case+0x22c/0x5a8 [ 55.865631] kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 55.865661] kunit_generic_run_threadfn_adapter from kthread+0x464/0x810 [ 55.865692] kthread from ret_from_fork+0x14/0x20 [ 55.865722] Exception stack(0xf22e3fb0 to 0xf22e3ff8) [ 55.865722] 3fa0: 00000000 00000000 00000000 00000000 [ 55.865753] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 55.865753] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 55.865783] [ 55.970458] Allocated by task 236: [ 55.973907] kasan_save_track+0x30/0x5c [ 55.977752] __kasan_kmalloc+0x8c/0x94 [ 55.981536] kmalloc_uaf+0xcc/0x3d8 [ 55.985046] kunit_try_run_case+0x22c/0x5a8 [ 55.989288] kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 55.994812] kthread+0x464/0x810 [ 55.998046] ret_from_fork+0x14/0x20 [ 56.001647] [ 56.003173] Freed by task 236: [ 56.006225] kasan_save_track+0x30/0x5c [ 56.010101] kasan_save_free_info+0x3c/0x48 [ 56.014312] __kasan_slab_free+0x40/0x50 [ 56.018280] kfree+0xe8/0x384 [ 56.021270] kmalloc_uaf+0x174/0x3d8 [ 56.024871] kunit_try_run_case+0x22c/0x5a8 [ 56.029083] kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 56.034606] kthread+0x464/0x810 [ 56.037872] ret_from_fork+0x14/0x20 [ 56.041473] [ 56.042968] The buggy address belongs to the object at cc797280 [ 56.042968] which belongs to the cache kmalloc-64 of size 64 [ 56.054718] The buggy address is located 8 bytes inside of [ 56.054718] freed 64-byte region [cc797280, cc7972c0) [ 56.065368] [ 56.066894] The buggy address belongs to the physical page: [ 56.072479] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c797 [ 56.079772] flags: 0x0(zone=0) [ 56.082855] page_type: f5(slab) [ 56.085998] raw: 00000000 c7001300 00000122 00000000 00000000 80200020 f5000000 00000000 [ 56.094146] raw: 00000000 [ 56.096801] page dumped because: kasan: bad access detected [ 56.102386] [ 56.103912] Memory state around the buggy address: [ 56.108734] cc797180: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.115295] cc797200: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.121856] >cc797280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 56.128417] ^ [ 56.131256] cc797300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.137817] cc797380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.144378] ==================================================================