Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.144459] ================================================================== [ 25.145042] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 25.145241] Read of size 1 at addr fff00000c784c000 by task kunit_try_catch/237 [ 25.145358] [ 25.145457] CPU: 1 UID: 0 PID: 237 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 25.145688] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.145726] Hardware name: linux,dummy-virt (DT) [ 25.145777] Call trace: [ 25.145831] show_stack+0x20/0x38 (C) [ 25.145936] dump_stack_lvl+0x8c/0xd0 [ 25.146021] print_report+0x118/0x608 [ 25.146079] kasan_report+0xdc/0x128 [ 25.146133] __asan_report_load1_noabort+0x20/0x30 [ 25.146193] mempool_uaf_helper+0x314/0x340 [ 25.146250] mempool_page_alloc_uaf+0xc0/0x118 [ 25.146733] kunit_try_run_case+0x170/0x3f0 [ 25.147145] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.147551] kthread+0x328/0x630 [ 25.148209] ret_from_fork+0x10/0x20 [ 25.148766] [ 25.148964] The buggy address belongs to the physical page: [ 25.149481] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10784c [ 25.149678] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.149791] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 25.149854] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 25.149907] page dumped because: kasan: bad access detected [ 25.149952] [ 25.149975] Memory state around the buggy address: [ 25.150044] fff00000c784bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.150120] fff00000c784bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.150175] >fff00000c784c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.150221] ^ [ 25.150262] fff00000c784c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.150339] fff00000c784c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.150386] ================================================================== [ 25.071764] ================================================================== [ 25.072133] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 25.072256] Read of size 1 at addr fff00000c7848000 by task kunit_try_catch/233 [ 25.072499] [ 25.072584] CPU: 1 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 25.072941] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.072993] Hardware name: linux,dummy-virt (DT) [ 25.073038] Call trace: [ 25.073136] show_stack+0x20/0x38 (C) [ 25.073213] dump_stack_lvl+0x8c/0xd0 [ 25.073411] print_report+0x118/0x608 [ 25.073551] kasan_report+0xdc/0x128 [ 25.073616] __asan_report_load1_noabort+0x20/0x30 [ 25.073676] mempool_uaf_helper+0x314/0x340 [ 25.073732] mempool_kmalloc_large_uaf+0xc4/0x120 [ 25.073793] kunit_try_run_case+0x170/0x3f0 [ 25.073851] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.074030] kthread+0x328/0x630 [ 25.074107] ret_from_fork+0x10/0x20 [ 25.074316] [ 25.074448] The buggy address belongs to the physical page: [ 25.074574] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107848 [ 25.074655] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 25.074719] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 25.074799] page_type: f8(unknown) [ 25.074856] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 25.074914] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 25.074973] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 25.075030] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 25.075087] head: 0bfffe0000000002 ffffc1ffc31e1201 00000000ffffffff 00000000ffffffff [ 25.075144] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 25.075193] page dumped because: kasan: bad access detected [ 25.075230] [ 25.075252] Memory state around the buggy address: [ 25.075296] fff00000c7847f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.075349] fff00000c7847f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.075395] >fff00000c7848000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.075461] ^ [ 25.075502] fff00000c7848080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.075552] fff00000c7848100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.075596] ==================================================================
[ 15.487893] ================================================================== [ 15.488372] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 15.488853] Read of size 1 at addr ffff8881029d8000 by task kunit_try_catch/249 [ 15.489073] [ 15.489278] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 15.489338] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.489352] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.489377] Call Trace: [ 15.489395] <TASK> [ 15.489418] dump_stack_lvl+0x73/0xb0 [ 15.489452] print_report+0xd1/0x650 [ 15.489477] ? __virt_addr_valid+0x1db/0x2d0 [ 15.489503] ? mempool_uaf_helper+0x392/0x400 [ 15.489524] ? kasan_addr_to_slab+0x11/0xa0 [ 15.489546] ? mempool_uaf_helper+0x392/0x400 [ 15.489579] kasan_report+0x141/0x180 [ 15.489603] ? mempool_uaf_helper+0x392/0x400 [ 15.489629] __asan_report_load1_noabort+0x18/0x20 [ 15.489650] mempool_uaf_helper+0x392/0x400 [ 15.489964] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 15.489991] ? dequeue_entities+0x852/0x1740 [ 15.490018] ? irqentry_exit+0x2a/0x60 [ 15.490044] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 15.490069] mempool_kmalloc_large_uaf+0xef/0x140 [ 15.490305] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 15.490334] ? __pfx_mempool_kmalloc+0x10/0x10 [ 15.490359] ? __pfx_mempool_kfree+0x10/0x10 [ 15.490380] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 15.490406] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 15.490431] kunit_try_run_case+0x1a5/0x480 [ 15.490460] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.490481] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.490505] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.490527] ? __kthread_parkme+0x82/0x180 [ 15.490550] ? preempt_count_sub+0x50/0x80 [ 15.490594] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.490617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.490640] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.490663] kthread+0x337/0x6f0 [ 15.490681] ? trace_preempt_on+0x20/0xc0 [ 15.490708] ? __pfx_kthread+0x10/0x10 [ 15.490727] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.490749] ? calculate_sigpending+0x7b/0xa0 [ 15.490775] ? __pfx_kthread+0x10/0x10 [ 15.490795] ret_from_fork+0x41/0x80 [ 15.490820] ? __pfx_kthread+0x10/0x10 [ 15.490840] ret_from_fork_asm+0x1a/0x30 [ 15.490875] </TASK> [ 15.490890] [ 15.501168] The buggy address belongs to the physical page: [ 15.501468] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029d8 [ 15.501672] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.501997] flags: 0x200000000000040(head|node=0|zone=2) [ 15.502231] page_type: f8(unknown) [ 15.502379] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.502861] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.503009] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.503437] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.503856] head: 0200000000000002 ffffea00040a7601 00000000ffffffff 00000000ffffffff [ 15.504214] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.504364] page dumped because: kasan: bad access detected [ 15.505014] [ 15.505237] Memory state around the buggy address: [ 15.505395] ffff8881029d7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.505586] ffff8881029d7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.505727] >ffff8881029d8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.506454] ^ [ 15.506605] ffff8881029d8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.506755] ffff8881029d8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.507049] ================================================================== [ 15.558354] ================================================================== [ 15.559006] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 15.559368] Read of size 1 at addr ffff888103984000 by task kunit_try_catch/253 [ 15.559879] [ 15.560093] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 15.560197] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.560226] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.560273] Call Trace: [ 15.560305] <TASK> [ 15.560345] dump_stack_lvl+0x73/0xb0 [ 15.560406] print_report+0xd1/0x650 [ 15.560447] ? __virt_addr_valid+0x1db/0x2d0 [ 15.560493] ? mempool_uaf_helper+0x392/0x400 [ 15.560529] ? kasan_addr_to_slab+0x11/0xa0 [ 15.561010] ? mempool_uaf_helper+0x392/0x400 [ 15.561078] kasan_report+0x141/0x180 [ 15.561119] ? mempool_uaf_helper+0x392/0x400 [ 15.561170] __asan_report_load1_noabort+0x18/0x20 [ 15.561210] mempool_uaf_helper+0x392/0x400 [ 15.561249] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 15.561285] ? dequeue_entities+0x852/0x1740 [ 15.561331] ? finish_task_switch.isra.0+0x153/0x700 [ 15.561377] mempool_page_alloc_uaf+0xed/0x140 [ 15.561420] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 15.561459] ? dequeue_task_fair+0x166/0x4e0 [ 15.561500] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 15.561545] ? __pfx_mempool_free_pages+0x10/0x10 [ 15.561954] ? __pfx_read_tsc+0x10/0x10 [ 15.562013] ? ktime_get_ts64+0x86/0x230 [ 15.562045] kunit_try_run_case+0x1a5/0x480 [ 15.562077] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.562101] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.562128] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.562152] ? __kthread_parkme+0x82/0x180 [ 15.562176] ? preempt_count_sub+0x50/0x80 [ 15.562203] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.562228] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.562252] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.562275] kthread+0x337/0x6f0 [ 15.562294] ? trace_preempt_on+0x20/0xc0 [ 15.562319] ? __pfx_kthread+0x10/0x10 [ 15.562337] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.562360] ? calculate_sigpending+0x7b/0xa0 [ 15.562385] ? __pfx_kthread+0x10/0x10 [ 15.562407] ret_from_fork+0x41/0x80 [ 15.562429] ? __pfx_kthread+0x10/0x10 [ 15.562449] ret_from_fork_asm+0x1a/0x30 [ 15.562483] </TASK> [ 15.562498] [ 15.576914] The buggy address belongs to the physical page: [ 15.577511] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103984 [ 15.578311] flags: 0x200000000000000(node=0|zone=2) [ 15.579174] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 15.579586] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 15.579993] page dumped because: kasan: bad access detected [ 15.580402] [ 15.580544] Memory state around the buggy address: [ 15.580880] ffff888103983f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.581246] ffff888103983f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.581450] >ffff888103984000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.582018] ^ [ 15.582158] ffff888103984080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.582445] ffff888103984100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.583213] ==================================================================