Date
July 15, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.614738] ================================================================== [ 17.614996] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 17.615092] Read of size 1 at addr fff00000c787c000 by task kunit_try_catch/150 [ 17.615228] [ 17.615267] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT [ 17.615351] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.615663] Hardware name: linux,dummy-virt (DT) [ 17.615729] Call trace: [ 17.615835] show_stack+0x20/0x38 (C) [ 17.615920] dump_stack_lvl+0x8c/0xd0 [ 17.616048] print_report+0x118/0x5d0 [ 17.616113] kasan_report+0xdc/0x128 [ 17.616158] __asan_report_load1_noabort+0x20/0x30 [ 17.616498] kmalloc_large_uaf+0x2cc/0x2f8 [ 17.616665] kunit_try_run_case+0x170/0x3f0 [ 17.616739] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.616824] kthread+0x328/0x630 [ 17.616961] ret_from_fork+0x10/0x20 [ 17.617013] [ 17.617035] The buggy address belongs to the physical page: [ 17.617096] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10787c [ 17.617150] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.617662] raw: 0bfffe0000000000 ffffc1ffc31e2008 fff00000da47fe00 0000000000000000 [ 17.617727] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 17.617935] page dumped because: kasan: bad access detected [ 17.618187] [ 17.618259] Memory state around the buggy address: [ 17.618391] fff00000c787bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.618482] fff00000c787bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.618632] >fff00000c787c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.618733] ^ [ 17.618761] fff00000c787c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.618991] fff00000c787c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.619132] ==================================================================
[ 10.523392] ================================================================== [ 10.523779] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 10.524290] Read of size 1 at addr ffff888103954000 by task kunit_try_catch/167 [ 10.524524] [ 10.524609] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT(voluntary) [ 10.524650] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.524662] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.524689] Call Trace: [ 10.524701] <TASK> [ 10.524714] dump_stack_lvl+0x73/0xb0 [ 10.524739] print_report+0xd1/0x610 [ 10.524761] ? __virt_addr_valid+0x1db/0x2d0 [ 10.524782] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.524802] ? kasan_addr_to_slab+0x11/0xa0 [ 10.524822] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.524842] kasan_report+0x141/0x180 [ 10.524864] ? kmalloc_large_uaf+0x2f1/0x340 [ 10.525390] __asan_report_load1_noabort+0x18/0x20 [ 10.525422] kmalloc_large_uaf+0x2f1/0x340 [ 10.525443] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 10.525465] ? __schedule+0x10cc/0x2b60 [ 10.525488] ? __pfx_read_tsc+0x10/0x10 [ 10.525506] ? ktime_get_ts64+0x86/0x230 [ 10.525529] kunit_try_run_case+0x1a5/0x480 [ 10.525550] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.525567] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.525589] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.525611] ? __kthread_parkme+0x82/0x180 [ 10.525632] ? preempt_count_sub+0x50/0x80 [ 10.525655] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.525730] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.525755] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.525777] kthread+0x337/0x6f0 [ 10.525809] ? trace_preempt_on+0x20/0xc0 [ 10.525831] ? __pfx_kthread+0x10/0x10 [ 10.525848] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.525869] ? calculate_sigpending+0x7b/0xa0 [ 10.525898] ? __pfx_kthread+0x10/0x10 [ 10.525915] ret_from_fork+0x41/0x80 [ 10.525934] ? __pfx_kthread+0x10/0x10 [ 10.525952] ret_from_fork_asm+0x1a/0x30 [ 10.525981] </TASK> [ 10.525991] [ 10.535927] The buggy address belongs to the physical page: [ 10.536455] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103954 [ 10.537395] flags: 0x200000000000000(node=0|zone=2) [ 10.537816] raw: 0200000000000000 ffffea00040e5608 ffff88815b139a80 0000000000000000 [ 10.538590] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 10.539439] page dumped because: kasan: bad access detected [ 10.540132] [ 10.540289] Memory state around the buggy address: [ 10.540779] ffff888103953f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.541521] ffff888103953f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.542218] >ffff888103954000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.542904] ^ [ 10.543306] ffff888103954080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.544137] ffff888103954100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.544849] ==================================================================