Date
June 2, 2025, 2:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 24.644129] ================================================================== [ 24.653145] BUG: KASAN: slab-use-after-free in kmalloc_uaf_16+0x3bc/0x438 [ 24.659912] Read of size 16 at addr ffff000800cac060 by task kunit_try_catch/215 [ 24.667290] [ 24.668779] CPU: 6 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT [ 24.668831] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.668847] Hardware name: WinLink E850-96 board (DT) [ 24.668866] Call trace: [ 24.668879] show_stack+0x20/0x38 (C) [ 24.668911] dump_stack_lvl+0x8c/0xd0 [ 24.668945] print_report+0x118/0x608 [ 24.668976] kasan_report+0xdc/0x128 [ 24.669001] __asan_report_load16_noabort+0x20/0x30 [ 24.669035] kmalloc_uaf_16+0x3bc/0x438 [ 24.669066] kunit_try_run_case+0x170/0x3f0 [ 24.669102] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.669144] kthread+0x328/0x630 [ 24.669179] ret_from_fork+0x10/0x20 [ 24.669214] [ 24.731352] Allocated by task 215: [ 24.734737] kasan_save_stack+0x3c/0x68 [ 24.738555] kasan_save_track+0x20/0x40 [ 24.742375] kasan_save_alloc_info+0x40/0x58 [ 24.746628] __kasan_kmalloc+0xd4/0xd8 [ 24.750361] __kmalloc_cache_noprof+0x16c/0x3c0 [ 24.754875] kmalloc_uaf_16+0x140/0x438 [ 24.758694] kunit_try_run_case+0x170/0x3f0 [ 24.762861] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.768329] kthread+0x328/0x630 [ 24.771541] ret_from_fork+0x10/0x20 [ 24.775100] [ 24.776577] Freed by task 215: [ 24.779614] kasan_save_stack+0x3c/0x68 [ 24.783433] kasan_save_track+0x20/0x40 [ 24.787253] kasan_save_free_info+0x4c/0x78 [ 24.791419] __kasan_slab_free+0x6c/0x98 [ 24.795325] kfree+0x214/0x3c8 [ 24.798363] kmalloc_uaf_16+0x190/0x438 [ 24.802184] kunit_try_run_case+0x170/0x3f0 [ 24.806349] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.811818] kthread+0x328/0x630 [ 24.815030] ret_from_fork+0x10/0x20 [ 24.818588] [ 24.820067] The buggy address belongs to the object at ffff000800cac060 [ 24.820067] which belongs to the cache kmalloc-16 of size 16 [ 24.832393] The buggy address is located 0 bytes inside of [ 24.832393] freed 16-byte region [ffff000800cac060, ffff000800cac070) [ 24.844370] [ 24.845850] The buggy address belongs to the physical page: [ 24.851406] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880cac [ 24.859391] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.865899] page_type: f5(slab) [ 24.869035] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000 [ 24.876754] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 24.884473] page dumped because: kasan: bad access detected [ 24.890029] [ 24.891504] Memory state around the buggy address: [ 24.896287] ffff000800cabf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.903487] ffff000800cabf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.910694] >ffff000800cac000: 00 04 fc fc 00 05 fc fc 00 00 fc fc fa fb fc fc [ 24.917893] ^ [ 24.924234] ffff000800cac080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.931438] ffff000800cac100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.938641] ==================================================================
[ 17.858127] ================================================================== [ 17.858218] BUG: KASAN: slab-use-after-free in kmalloc_uaf_16+0x3bc/0x438 [ 17.858292] Read of size 16 at addr fff00000c5915940 by task kunit_try_catch/171 [ 17.858343] [ 17.859650] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT [ 17.859740] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.861466] Hardware name: linux,dummy-virt (DT) [ 17.861540] Call trace: [ 17.861565] show_stack+0x20/0x38 (C) [ 17.862836] dump_stack_lvl+0x8c/0xd0 [ 17.862935] print_report+0x118/0x608 [ 17.862988] kasan_report+0xdc/0x128 [ 17.863042] __asan_report_load16_noabort+0x20/0x30 [ 17.863125] kmalloc_uaf_16+0x3bc/0x438 [ 17.864483] kunit_try_run_case+0x170/0x3f0 [ 17.865970] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.866726] kthread+0x328/0x630 [ 17.866792] ret_from_fork+0x10/0x20 [ 17.866846] [ 17.866865] Allocated by task 171: [ 17.866895] kasan_save_stack+0x3c/0x68 [ 17.868442] kasan_save_track+0x20/0x40 [ 17.869456] kasan_save_alloc_info+0x40/0x58 [ 17.869739] __kasan_kmalloc+0xd4/0xd8 [ 17.869782] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.869825] kmalloc_uaf_16+0x140/0x438 [ 17.869863] kunit_try_run_case+0x170/0x3f0 [ 17.869904] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.869950] kthread+0x328/0x630 [ 17.869988] ret_from_fork+0x10/0x20 [ 17.870024] [ 17.870043] Freed by task 171: [ 17.870071] kasan_save_stack+0x3c/0x68 [ 17.870107] kasan_save_track+0x20/0x40 [ 17.872434] kasan_save_free_info+0x4c/0x78 [ 17.872511] __kasan_slab_free+0x6c/0x98 [ 17.872549] kfree+0x214/0x3c8 [ 17.872585] kmalloc_uaf_16+0x190/0x438 [ 17.872623] kunit_try_run_case+0x170/0x3f0 [ 17.872677] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.872865] kthread+0x328/0x630 [ 17.872902] ret_from_fork+0x10/0x20 [ 17.872939] [ 17.872961] The buggy address belongs to the object at fff00000c5915940 [ 17.872961] which belongs to the cache kmalloc-16 of size 16 [ 17.873075] The buggy address is located 0 bytes inside of [ 17.873075] freed 16-byte region [fff00000c5915940, fff00000c5915950) [ 17.873489] [ 17.873515] The buggy address belongs to the physical page: [ 17.873548] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105915 [ 17.873607] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.873660] page_type: f5(slab) [ 17.873704] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.873754] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.873793] page dumped because: kasan: bad access detected [ 17.873825] [ 17.873843] Memory state around the buggy address: [ 17.873877] fff00000c5915800: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.873919] fff00000c5915880: fa fb fc fc 00 04 fc fc fa fb fc fc fa fb fc fc [ 17.873961] >fff00000c5915900: fa fb fc fc 00 00 fc fc fa fb fc fc fc fc fc fc [ 17.873998] ^ [ 17.874032] fff00000c5915980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.874072] fff00000c5915a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.874108] ==================================================================
[ 16.527893] ================================================================== [ 16.529066] BUG: KASAN: slab-use-after-free in kmalloc_uaf_16+0x47b/0x4c0 [ 16.529716] Read of size 16 at addr ffff888102327aa0 by task kunit_try_catch/189 [ 16.530775] [ 16.530978] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT(voluntary) [ 16.531095] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.531161] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.531222] Call Trace: [ 16.531256] <TASK> [ 16.531302] dump_stack_lvl+0x73/0xb0 [ 16.531392] print_report+0xd1/0x650 [ 16.531438] ? __virt_addr_valid+0x1db/0x2d0 [ 16.531479] ? kmalloc_uaf_16+0x47b/0x4c0 [ 16.531503] ? kasan_complete_mode_report_info+0x64/0x200 [ 16.531529] ? kmalloc_uaf_16+0x47b/0x4c0 [ 16.531553] kasan_report+0x141/0x180 [ 16.531579] ? kmalloc_uaf_16+0x47b/0x4c0 [ 16.531608] __asan_report_load16_noabort+0x18/0x20 [ 16.531645] kmalloc_uaf_16+0x47b/0x4c0 [ 16.531672] ? __pfx_kmalloc_uaf_16+0x10/0x10 [ 16.531697] ? __schedule+0x10cc/0x2b30 [ 16.531723] ? __pfx_read_tsc+0x10/0x10 [ 16.531759] ? ktime_get_ts64+0x86/0x230 [ 16.531798] kunit_try_run_case+0x1a5/0x480 [ 16.531830] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.531855] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.531882] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.531907] ? __kthread_parkme+0x82/0x180 [ 16.531933] ? preempt_count_sub+0x50/0x80 [ 16.531963] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.531989] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.532014] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.532039] kthread+0x337/0x6f0 [ 16.532058] ? trace_preempt_on+0x20/0xc0 [ 16.532086] ? __pfx_kthread+0x10/0x10 [ 16.532155] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.532183] ? calculate_sigpending+0x7b/0xa0 [ 16.532209] ? __pfx_kthread+0x10/0x10 [ 16.532230] ret_from_fork+0x41/0x80 [ 16.532254] ? __pfx_kthread+0x10/0x10 [ 16.532273] ret_from_fork_asm+0x1a/0x30 [ 16.532309] </TASK> [ 16.532324] [ 16.543688] Allocated by task 189: [ 16.544034] kasan_save_stack+0x45/0x70 [ 16.544439] kasan_save_track+0x18/0x40 [ 16.544770] kasan_save_alloc_info+0x3b/0x50 [ 16.545138] __kasan_kmalloc+0xb7/0xc0 [ 16.545457] __kmalloc_cache_noprof+0x189/0x420 [ 16.545794] kmalloc_uaf_16+0x15b/0x4c0 [ 16.546003] kunit_try_run_case+0x1a5/0x480 [ 16.546355] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.546848] kthread+0x337/0x6f0 [ 16.547066] ret_from_fork+0x41/0x80 [ 16.547461] ret_from_fork_asm+0x1a/0x30 [ 16.547696] [ 16.547901] Freed by task 189: [ 16.548210] kasan_save_stack+0x45/0x70 [ 16.548477] kasan_save_track+0x18/0x40 [ 16.548684] kasan_save_free_info+0x3f/0x60 [ 16.549069] __kasan_slab_free+0x56/0x70 [ 16.549483] kfree+0x222/0x3f0 [ 16.549711] kmalloc_uaf_16+0x1d6/0x4c0 [ 16.550042] kunit_try_run_case+0x1a5/0x480 [ 16.550471] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.550865] kthread+0x337/0x6f0 [ 16.551207] ret_from_fork+0x41/0x80 [ 16.551450] ret_from_fork_asm+0x1a/0x30 [ 16.551770] [ 16.551973] The buggy address belongs to the object at ffff888102327aa0 [ 16.551973] which belongs to the cache kmalloc-16 of size 16 [ 16.552599] The buggy address is located 0 bytes inside of [ 16.552599] freed 16-byte region [ffff888102327aa0, ffff888102327ab0) [ 16.553296] [ 16.553492] The buggy address belongs to the physical page: [ 16.553970] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102327 [ 16.554506] flags: 0x200000000000000(node=0|zone=2) [ 16.554868] page_type: f5(slab) [ 16.555233] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 16.555720] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.556208] page dumped because: kasan: bad access detected [ 16.556561] [ 16.556784] Memory state around the buggy address: [ 16.557058] ffff888102327980: 00 05 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 16.557494] ffff888102327a00: 00 02 fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 16.557796] >ffff888102327a80: 00 00 fc fc fa fb fc fc fc fc fc fc fc fc fc fc [ 16.558075] ^ [ 16.558489] ffff888102327b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.559051] ffff888102327b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.559655] ==================================================================