Date
July 15, 2025, 11:35 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 46.753329] ================================================================== [ 46.762858] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 46.769453] Read of size 1 at addr ffff000807fd0228 by task kunit_try_catch/269 [ 46.776744] [ 46.778230] CPU: 3 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 46.778283] Tainted: [B]=BAD_PAGE, [N]=TEST [ 46.778300] Hardware name: WinLink E850-96 board (DT) [ 46.778323] Call trace: [ 46.778337] show_stack+0x20/0x38 (C) [ 46.778371] dump_stack_lvl+0x8c/0xd0 [ 46.778404] print_report+0x118/0x5d0 [ 46.778435] kasan_report+0xdc/0x128 [ 46.778462] __asan_report_load1_noabort+0x20/0x30 [ 46.778495] kmalloc_uaf2+0x3f4/0x468 [ 46.778524] kunit_try_run_case+0x170/0x3f0 [ 46.778555] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 46.778590] kthread+0x328/0x630 [ 46.778620] ret_from_fork+0x10/0x20 [ 46.778654] [ 46.841762] Allocated by task 269: [ 46.845149] kasan_save_stack+0x3c/0x68 [ 46.848964] kasan_save_track+0x20/0x40 [ 46.852783] kasan_save_alloc_info+0x40/0x58 [ 46.857037] __kasan_kmalloc+0xd4/0xd8 [ 46.860769] __kmalloc_cache_noprof+0x16c/0x3c0 [ 46.865283] kmalloc_uaf2+0xc4/0x468 [ 46.868843] kunit_try_run_case+0x170/0x3f0 [ 46.873009] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 46.878477] kthread+0x328/0x630 [ 46.881689] ret_from_fork+0x10/0x20 [ 46.885248] [ 46.886724] Freed by task 269: [ 46.889764] kasan_save_stack+0x3c/0x68 [ 46.893581] kasan_save_track+0x20/0x40 [ 46.897401] kasan_save_free_info+0x4c/0x78 [ 46.901567] __kasan_slab_free+0x6c/0x98 [ 46.905475] kfree+0x214/0x3c8 [ 46.908511] kmalloc_uaf2+0x134/0x468 [ 46.912158] kunit_try_run_case+0x170/0x3f0 [ 46.916324] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 46.921793] kthread+0x328/0x630 [ 46.925005] ret_from_fork+0x10/0x20 [ 46.928563] [ 46.930041] The buggy address belongs to the object at ffff000807fd0200 [ 46.930041] which belongs to the cache kmalloc-64 of size 64 [ 46.942369] The buggy address is located 40 bytes inside of [ 46.942369] freed 64-byte region [ffff000807fd0200, ffff000807fd0240) [ 46.954431] [ 46.955911] The buggy address belongs to the physical page: [ 46.961466] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x887fd0 [ 46.969450] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 46.975961] page_type: f5(slab) [ 46.979097] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 46.986816] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 46.994537] page dumped because: kasan: bad access detected [ 47.000090] [ 47.001566] Memory state around the buggy address: [ 47.006348] ffff000807fd0100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.013550] ffff000807fd0180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.020753] >ffff000807fd0200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.027954] ^ [ 47.032472] ffff000807fd0280: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 47.039677] ffff000807fd0300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.046879] ==================================================================
[ 30.711487] ================================================================== [ 30.711873] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x3f4/0x468 [ 30.712158] Read of size 1 at addr fff00000c6503828 by task kunit_try_catch/220 [ 30.712341] [ 30.712568] CPU: 0 UID: 0 PID: 220 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 30.713205] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.713999] Hardware name: linux,dummy-virt (DT) [ 30.714040] Call trace: [ 30.714903] show_stack+0x20/0x38 (C) [ 30.715414] dump_stack_lvl+0x8c/0xd0 [ 30.715877] print_report+0x118/0x5d0 [ 30.715923] kasan_report+0xdc/0x128 [ 30.715968] __asan_report_load1_noabort+0x20/0x30 [ 30.716018] kmalloc_uaf2+0x3f4/0x468 [ 30.716066] kunit_try_run_case+0x170/0x3f0 [ 30.716114] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.716167] kthread+0x328/0x630 [ 30.716209] ret_from_fork+0x10/0x20 [ 30.716263] [ 30.716281] Allocated by task 220: [ 30.716310] kasan_save_stack+0x3c/0x68 [ 30.716354] kasan_save_track+0x20/0x40 [ 30.716391] kasan_save_alloc_info+0x40/0x58 [ 30.716429] __kasan_kmalloc+0xd4/0xd8 [ 30.717330] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.717936] kmalloc_uaf2+0xc4/0x468 [ 30.717977] kunit_try_run_case+0x170/0x3f0 [ 30.718106] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.718248] kthread+0x328/0x630 [ 30.718286] ret_from_fork+0x10/0x20 [ 30.718572] [ 30.718846] Freed by task 220: [ 30.719113] kasan_save_stack+0x3c/0x68 [ 30.719225] kasan_save_track+0x20/0x40 [ 30.719265] kasan_save_free_info+0x4c/0x78 [ 30.719304] __kasan_slab_free+0x6c/0x98 [ 30.719673] kfree+0x214/0x3c8 [ 30.719723] kmalloc_uaf2+0x134/0x468 [ 30.719965] kunit_try_run_case+0x170/0x3f0 [ 30.720002] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.720144] kthread+0x328/0x630 [ 30.720180] ret_from_fork+0x10/0x20 [ 30.720654] [ 30.720733] The buggy address belongs to the object at fff00000c6503800 [ 30.720733] which belongs to the cache kmalloc-64 of size 64 [ 30.721129] The buggy address is located 40 bytes inside of [ 30.721129] freed 64-byte region [fff00000c6503800, fff00000c6503840) [ 30.721332] [ 30.721597] The buggy address belongs to the physical page: [ 30.721664] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106503 [ 30.722112] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.722167] page_type: f5(slab) [ 30.722466] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 30.722521] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 30.722573] page dumped because: kasan: bad access detected [ 30.722971] [ 30.722991] Memory state around the buggy address: [ 30.723222] fff00000c6503700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.723269] fff00000c6503780: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.723311] >fff00000c6503800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.723349] ^ [ 30.723381] fff00000c6503880: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 30.723422] fff00000c6503900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.723801] ==================================================================
[ 24.353421] ================================================================== [ 24.354003] BUG: KASAN: slab-use-after-free in kmalloc_uaf2+0x4a8/0x520 [ 24.354279] Read of size 1 at addr ffff8881055e17a8 by task kunit_try_catch/236 [ 24.354720] [ 24.354833] CPU: 1 UID: 0 PID: 236 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) [ 24.354884] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.354896] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.354919] Call Trace: [ 24.354931] <TASK> [ 24.354948] dump_stack_lvl+0x73/0xb0 [ 24.354979] print_report+0xd1/0x610 [ 24.355001] ? __virt_addr_valid+0x1db/0x2d0 [ 24.355025] ? kmalloc_uaf2+0x4a8/0x520 [ 24.355045] ? kasan_complete_mode_report_info+0x64/0x200 [ 24.355070] ? kmalloc_uaf2+0x4a8/0x520 [ 24.355090] kasan_report+0x141/0x180 [ 24.355112] ? kmalloc_uaf2+0x4a8/0x520 [ 24.355137] __asan_report_load1_noabort+0x18/0x20 [ 24.355161] kmalloc_uaf2+0x4a8/0x520 [ 24.355181] ? __pfx_kmalloc_uaf2+0x10/0x10 [ 24.355200] ? finish_task_switch.isra.0+0x153/0x700 [ 24.355222] ? __switch_to+0x47/0xf80 [ 24.355250] ? __schedule+0x10cc/0x2b60 [ 24.355271] ? __pfx_read_tsc+0x10/0x10 [ 24.355292] ? ktime_get_ts64+0x86/0x230 [ 24.355317] kunit_try_run_case+0x1a5/0x480 [ 24.355340] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.355361] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.355383] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.355405] ? __kthread_parkme+0x82/0x180 [ 24.355425] ? preempt_count_sub+0x50/0x80 [ 24.355448] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.355470] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.355496] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.355533] kthread+0x337/0x6f0 [ 24.355553] ? trace_preempt_on+0x20/0xc0 [ 24.355576] ? __pfx_kthread+0x10/0x10 [ 24.355597] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.355620] ? calculate_sigpending+0x7b/0xa0 [ 24.355644] ? __pfx_kthread+0x10/0x10 [ 24.355666] ret_from_fork+0x116/0x1d0 [ 24.355684] ? __pfx_kthread+0x10/0x10 [ 24.355704] ret_from_fork_asm+0x1a/0x30 [ 24.355795] </TASK> [ 24.355810] [ 24.367109] Allocated by task 236: [ 24.367270] kasan_save_stack+0x45/0x70 [ 24.367456] kasan_save_track+0x18/0x40 [ 24.368021] kasan_save_alloc_info+0x3b/0x50 [ 24.368227] __kasan_kmalloc+0xb7/0xc0 [ 24.368399] __kmalloc_cache_noprof+0x189/0x420 [ 24.368650] kmalloc_uaf2+0xc6/0x520 [ 24.369218] kunit_try_run_case+0x1a5/0x480 [ 24.369659] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.370087] kthread+0x337/0x6f0 [ 24.370266] ret_from_fork+0x116/0x1d0 [ 24.370437] ret_from_fork_asm+0x1a/0x30 [ 24.370669] [ 24.371145] Freed by task 236: [ 24.371495] kasan_save_stack+0x45/0x70 [ 24.371871] kasan_save_track+0x18/0x40 [ 24.372066] kasan_save_free_info+0x3f/0x60 [ 24.372252] __kasan_slab_free+0x56/0x70 [ 24.372416] kfree+0x222/0x3f0 [ 24.372571] kmalloc_uaf2+0x14c/0x520 [ 24.373201] kunit_try_run_case+0x1a5/0x480 [ 24.373399] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.373876] kthread+0x337/0x6f0 [ 24.374182] ret_from_fork+0x116/0x1d0 [ 24.374367] ret_from_fork_asm+0x1a/0x30 [ 24.374549] [ 24.374941] The buggy address belongs to the object at ffff8881055e1780 [ 24.374941] which belongs to the cache kmalloc-64 of size 64 [ 24.375442] The buggy address is located 40 bytes inside of [ 24.375442] freed 64-byte region [ffff8881055e1780, ffff8881055e17c0) [ 24.376767] [ 24.377014] The buggy address belongs to the physical page: [ 24.377339] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1055e1 [ 24.378165] flags: 0x200000000000000(node=0|zone=2) [ 24.378471] page_type: f5(slab) [ 24.378898] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 24.379219] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 24.379534] page dumped because: kasan: bad access detected [ 24.380267] [ 24.380464] Memory state around the buggy address: [ 24.380999] ffff8881055e1680: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.381453] ffff8881055e1700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.381978] >ffff8881055e1780: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.382266] ^ [ 24.382454] ffff8881055e1800: 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc [ 24.382958] ffff8881055e1880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.383974] ==================================================================