Date
July 13, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.029218] ================================================================== [ 16.029666] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 16.029742] Read of size 1 at addr fff00000c654e8a8 by task kunit_try_catch/189 [ 16.029850] [ 16.030113] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.030392] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.030464] Hardware name: linux,dummy-virt (DT) [ 16.030627] Call trace: [ 16.030714] show_stack+0x20/0x38 (C) [ 16.030792] dump_stack_lvl+0x8c/0xd0 [ 16.031168] print_report+0x118/0x5d0 [ 16.031325] kasan_report+0xdc/0x128 [ 16.031464] __asan_report_load1_noabort+0x20/0x30 [ 16.031619] kmalloc_uaf2+0x3f4/0x468 [ 16.031709] kunit_try_run_case+0x170/0x3f0 [ 16.031800] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.032156] kthread+0x328/0x630 [ 16.032286] ret_from_fork+0x10/0x20 [ 16.032391] [ 16.032453] Allocated by task 189: [ 16.032578] kasan_save_stack+0x3c/0x68 [ 16.032646] kasan_save_track+0x20/0x40 [ 16.032814] kasan_save_alloc_info+0x40/0x58 [ 16.032858] __kasan_kmalloc+0xd4/0xd8 [ 16.032895] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.032936] kmalloc_uaf2+0xc4/0x468 [ 16.032970] kunit_try_run_case+0x170/0x3f0 [ 16.033051] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.033117] kthread+0x328/0x630 [ 16.033475] ret_from_fork+0x10/0x20 [ 16.033614] [ 16.033658] Freed by task 189: [ 16.033697] kasan_save_stack+0x3c/0x68 [ 16.033844] kasan_save_track+0x20/0x40 [ 16.033884] kasan_save_free_info+0x4c/0x78 [ 16.033926] __kasan_slab_free+0x6c/0x98 [ 16.033990] kfree+0x214/0x3c8 [ 16.034351] kmalloc_uaf2+0x134/0x468 [ 16.034423] kunit_try_run_case+0x170/0x3f0 [ 16.034464] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.035179] kthread+0x328/0x630 [ 16.035275] ret_from_fork+0x10/0x20 [ 16.035367] [ 16.035429] The buggy address belongs to the object at fff00000c654e880 [ 16.035429] which belongs to the cache kmalloc-64 of size 64 [ 16.035508] The buggy address is located 40 bytes inside of [ 16.035508] freed 64-byte region [fff00000c654e880, fff00000c654e8c0) [ 16.035598] [ 16.035878] The buggy address belongs to the physical page: [ 16.036017] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10654e [ 16.036093] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.036410] page_type: f5(slab) [ 16.036608] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 16.036664] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.036707] page dumped because: kasan: bad access detected [ 16.037004] [ 16.037122] Memory state around the buggy address: [ 16.037239] fff00000c654e780: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.037325] fff00000c654e800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.037385] >fff00000c654e880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.037520] ^ [ 16.037565] fff00000c654e900: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 16.037672] fff00000c654e980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.037716] ==================================================================
[ 16.790450] ================================================================== [ 16.790514] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 16.790574] Read of size 1 at addr fff00000c5ac51a8 by task kunit_try_catch/189 [ 16.790625] [ 16.790656] CPU: 1 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.790736] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.790888] Hardware name: linux,dummy-virt (DT) [ 16.790968] Call trace: [ 16.790991] show_stack+0x20/0x38 (C) [ 16.791042] dump_stack_lvl+0x8c/0xd0 [ 16.791088] print_report+0x118/0x5d0 [ 16.791145] kasan_report+0xdc/0x128 [ 16.791202] __asan_report_load1_noabort+0x20/0x30 [ 16.791504] kmalloc_uaf2+0x3f4/0x468 [ 16.791606] kunit_try_run_case+0x170/0x3f0 [ 16.791726] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.791781] kthread+0x328/0x630 [ 16.791846] ret_from_fork+0x10/0x20 [ 16.791895] [ 16.791918] Allocated by task 189: [ 16.791950] kasan_save_stack+0x3c/0x68 [ 16.792008] kasan_save_track+0x20/0x40 [ 16.792066] kasan_save_alloc_info+0x40/0x58 [ 16.792115] __kasan_kmalloc+0xd4/0xd8 [ 16.792160] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.792220] kmalloc_uaf2+0xc4/0x468 [ 16.792253] kunit_try_run_case+0x170/0x3f0 [ 16.792290] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.792342] kthread+0x328/0x630 [ 16.792374] ret_from_fork+0x10/0x20 [ 16.792423] [ 16.792444] Freed by task 189: [ 16.792477] kasan_save_stack+0x3c/0x68 [ 16.792516] kasan_save_track+0x20/0x40 [ 16.792552] kasan_save_free_info+0x4c/0x78 [ 16.792597] __kasan_slab_free+0x6c/0x98 [ 16.792645] kfree+0x214/0x3c8 [ 16.792684] kmalloc_uaf2+0x134/0x468 [ 16.792734] kunit_try_run_case+0x170/0x3f0 [ 16.792772] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.792831] kthread+0x328/0x630 [ 16.792870] ret_from_fork+0x10/0x20 [ 16.792903] [ 16.792923] The buggy address belongs to the object at fff00000c5ac5180 [ 16.792923] which belongs to the cache kmalloc-64 of size 64 [ 16.792997] The buggy address is located 40 bytes inside of [ 16.792997] freed 64-byte region [fff00000c5ac5180, fff00000c5ac51c0) [ 16.793067] [ 16.793087] The buggy address belongs to the physical page: [ 16.793116] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ac5 [ 16.793170] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.793577] page_type: f5(slab) [ 16.793734] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 16.793808] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.793897] page dumped because: kasan: bad access detected [ 16.793975] [ 16.793993] Memory state around the buggy address: [ 16.794030] fff00000c5ac5080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.794349] fff00000c5ac5100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.794464] >fff00000c5ac5180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.794528] ^ [ 16.794662] fff00000c5ac5200: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 16.794757] fff00000c5ac5280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.794796] ==================================================================
[ 12.942019] ================================================================== [ 12.942638] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x4a8/0x520 [ 12.942871] Read of size 1 at addr ffff8881026bfb28 by task kunit_try_catch/205 [ 12.943109] [ 12.943279] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.943324] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.943335] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.943355] Call Trace: [ 12.943367] <TASK> [ 12.943382] dump_stack_lvl+0x73/0xb0 [ 12.943421] print_report+0xd1/0x610 [ 12.943443] ? __virt_addr_valid+0x1db/0x2d0 [ 12.943486] ? kmalloc_uaf2+0x4a8/0x520 [ 12.943505] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.943529] ? kmalloc_uaf2+0x4a8/0x520 [ 12.943561] kasan_report+0x141/0x180 [ 12.943583] ? kmalloc_uaf2+0x4a8/0x520 [ 12.943607] __asan_report_load1_noabort+0x18/0x20 [ 12.943643] kmalloc_uaf2+0x4a8/0x520 [ 12.943663] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 12.943683] ? finish_task_switch.isra.0+0x153/0x700 [ 12.943718] ? __switch_to+0x47/0xf50 [ 12.943745] ? __schedule+0x10cc/0x2b60 [ 12.943779] ? __pfx_read_tsc+0x10/0x10 [ 12.943800] ? ktime_get_ts64+0x86/0x230 [ 12.943824] kunit_try_run_case+0x1a5/0x480 [ 12.943882] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.943907] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.943941] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.943965] ? __kthread_parkme+0x82/0x180 [ 12.943985] ? preempt_count_sub+0x50/0x80 [ 12.944020] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.944044] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.944069] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.944105] kthread+0x337/0x6f0 [ 12.944125] ? trace_preempt_on+0x20/0xc0 [ 12.944148] ? __pfx_kthread+0x10/0x10 [ 12.944169] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.944190] ? calculate_sigpending+0x7b/0xa0 [ 12.944216] ? __pfx_kthread+0x10/0x10 [ 12.944238] ret_from_fork+0x116/0x1d0 [ 12.944258] ? __pfx_kthread+0x10/0x10 [ 12.944283] ret_from_fork_asm+0x1a/0x30 [ 12.944314] </TASK> [ 12.944323] [ 12.954925] Allocated by task 205: [ 12.955116] kasan_save_stack+0x45/0x70 [ 12.955271] kasan_save_track+0x18/0x40 [ 12.955753] kasan_save_alloc_info+0x3b/0x50 [ 12.956051] __kasan_kmalloc+0xb7/0xc0 [ 12.956195] __kmalloc_cache_noprof+0x189/0x420 [ 12.956825] kmalloc_uaf2+0xc6/0x520 [ 12.957015] kunit_try_run_case+0x1a5/0x480 [ 12.957176] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.957606] kthread+0x337/0x6f0 [ 12.957958] ret_from_fork+0x116/0x1d0 [ 12.958129] ret_from_fork_asm+0x1a/0x30 [ 12.958469] [ 12.958566] Freed by task 205: [ 12.958844] kasan_save_stack+0x45/0x70 [ 12.959003] kasan_save_track+0x18/0x40 [ 12.959202] kasan_save_free_info+0x3f/0x60 [ 12.959406] __kasan_slab_free+0x56/0x70 [ 12.959899] kfree+0x222/0x3f0 [ 12.960027] kmalloc_uaf2+0x14c/0x520 [ 12.960382] kunit_try_run_case+0x1a5/0x480 [ 12.960617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.961042] kthread+0x337/0x6f0 [ 12.961300] ret_from_fork+0x116/0x1d0 [ 12.961456] ret_from_fork_asm+0x1a/0x30 [ 12.961998] [ 12.962078] The buggy address belongs to the object at ffff8881026bfb00 [ 12.962078] which belongs to the cache kmalloc-64 of size 64 [ 12.962971] The buggy address is located 40 bytes inside of [ 12.962971] freed 64-byte region [ffff8881026bfb00, ffff8881026bfb40) [ 12.963755] [ 12.963851] The buggy address belongs to the physical page: [ 12.964029] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026bf [ 12.964633] flags: 0x200000000000000(node=0|zone=2) [ 12.964982] page_type: f5(slab) [ 12.965159] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.965729] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.966120] page dumped because: kasan: bad access detected [ 12.966386] [ 12.966566] Memory state around the buggy address: [ 12.967025] ffff8881026bfa00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.967326] ffff8881026bfa80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.967974] >ffff8881026bfb00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.968230] ^ [ 12.968637] ffff8881026bfb80: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 12.969103] ffff8881026bfc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.969588] ==================================================================
[ 13.149258] ================================================================== [ 13.149705] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x4a8/0x520 [ 13.149986] Read of size 1 at addr ffff888102b39ea8 by task kunit_try_catch/206 [ 13.150342] [ 13.150459] CPU: 1 UID: 0 PID: 206 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.150500] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.150512] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.150531] Call Trace: [ 13.150542] <TASK> [ 13.150556] dump_stack_lvl+0x73/0xb0 [ 13.150655] print_report+0xd1/0x610 [ 13.150729] ? __virt_addr_valid+0x1db/0x2d0 [ 13.150755] ? kmalloc_uaf2+0x4a8/0x520 [ 13.150775] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.150799] ? kmalloc_uaf2+0x4a8/0x520 [ 13.150819] kasan_report+0x141/0x180 [ 13.150841] ? kmalloc_uaf2+0x4a8/0x520 [ 13.150866] __asan_report_load1_noabort+0x18/0x20 [ 13.150892] kmalloc_uaf2+0x4a8/0x520 [ 13.150912] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 13.150932] ? finish_task_switch.isra.0+0x153/0x700 [ 13.150956] ? __switch_to+0x47/0xf50 [ 13.150985] ? __schedule+0x10cc/0x2b60 [ 13.151009] ? __pfx_read_tsc+0x10/0x10 [ 13.151031] ? ktime_get_ts64+0x86/0x230 [ 13.151070] kunit_try_run_case+0x1a5/0x480 [ 13.151095] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.151118] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.151143] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.151167] ? __kthread_parkme+0x82/0x180 [ 13.151188] ? preempt_count_sub+0x50/0x80 [ 13.151211] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.151236] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.151262] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.151288] kthread+0x337/0x6f0 [ 13.151307] ? trace_preempt_on+0x20/0xc0 [ 13.151331] ? __pfx_kthread+0x10/0x10 [ 13.151353] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.151375] ? calculate_sigpending+0x7b/0xa0 [ 13.151400] ? __pfx_kthread+0x10/0x10 [ 13.151421] ret_from_fork+0x116/0x1d0 [ 13.151440] ? __pfx_kthread+0x10/0x10 [ 13.151461] ret_from_fork_asm+0x1a/0x30 [ 13.151492] </TASK> [ 13.151501] [ 13.159908] Allocated by task 206: [ 13.160108] kasan_save_stack+0x45/0x70 [ 13.160296] kasan_save_track+0x18/0x40 [ 13.160468] kasan_save_alloc_info+0x3b/0x50 [ 13.160763] __kasan_kmalloc+0xb7/0xc0 [ 13.160926] __kmalloc_cache_noprof+0x189/0x420 [ 13.161143] kmalloc_uaf2+0xc6/0x520 [ 13.161306] kunit_try_run_case+0x1a5/0x480 [ 13.161453] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.161630] kthread+0x337/0x6f0 [ 13.161918] ret_from_fork+0x116/0x1d0 [ 13.162136] ret_from_fork_asm+0x1a/0x30 [ 13.162344] [ 13.162439] Freed by task 206: [ 13.162559] kasan_save_stack+0x45/0x70 [ 13.162696] kasan_save_track+0x18/0x40 [ 13.162836] kasan_save_free_info+0x3f/0x60 [ 13.163006] __kasan_slab_free+0x56/0x70 [ 13.163218] kfree+0x222/0x3f0 [ 13.163524] kmalloc_uaf2+0x14c/0x520 [ 13.163844] kunit_try_run_case+0x1a5/0x480 [ 13.164097] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.164395] kthread+0x337/0x6f0 [ 13.164537] ret_from_fork+0x116/0x1d0 [ 13.164668] ret_from_fork_asm+0x1a/0x30 [ 13.164805] [ 13.164874] The buggy address belongs to the object at ffff888102b39e80 [ 13.164874] which belongs to the cache kmalloc-64 of size 64 [ 13.165328] The buggy address is located 40 bytes inside of [ 13.165328] freed 64-byte region [ffff888102b39e80, ffff888102b39ec0) [ 13.166236] [ 13.167324] The buggy address belongs to the physical page: [ 13.167631] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b39 [ 13.167879] flags: 0x200000000000000(node=0|zone=2) [ 13.168042] page_type: f5(slab) [ 13.168346] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 13.169473] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 13.170039] page dumped because: kasan: bad access detected [ 13.170425] [ 13.170559] Memory state around the buggy address: [ 13.170749] ffff888102b39d80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.171533] ffff888102b39e00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.172233] >ffff888102b39e80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.172645] ^ [ 13.173107] ffff888102b39f00: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 13.173519] ffff888102b39f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.174156] ==================================================================