Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.593197] ================================================================== [ 16.593639] BUG: KASAN: slab-use-after-free in krealloc_uaf+0x180/0x520 [ 16.593925] Read of size 1 at addr fff00000c4409000 by task kunit_try_catch/165 [ 16.593973] [ 16.594017] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.594100] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.594126] Hardware name: linux,dummy-virt (DT) [ 16.594156] Call trace: [ 16.594178] show_stack+0x20/0x38 (C) [ 16.594224] dump_stack_lvl+0x8c/0xd0 [ 16.594268] print_report+0x118/0x608 [ 16.594313] kasan_report+0xdc/0x128 [ 16.594363] __kasan_check_byte+0x54/0x70 [ 16.594409] krealloc_noprof+0x44/0x360 [ 16.594454] krealloc_uaf+0x180/0x520 [ 16.594504] kunit_try_run_case+0x170/0x3f0 [ 16.594550] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.594599] kthread+0x328/0x630 [ 16.594639] ret_from_fork+0x10/0x20 [ 16.594685] [ 16.594703] Allocated by task 165: [ 16.595200] kasan_save_stack+0x3c/0x68 [ 16.595251] kasan_save_track+0x20/0x40 [ 16.595288] kasan_save_alloc_info+0x40/0x58 [ 16.595716] __kasan_kmalloc+0xd4/0xd8 [ 16.595764] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.596537] krealloc_uaf+0xc8/0x520 [ 16.597044] kunit_try_run_case+0x170/0x3f0 [ 16.597182] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.597435] kthread+0x328/0x630 [ 16.597649] ret_from_fork+0x10/0x20 [ 16.597872] [ 16.597913] Freed by task 165: [ 16.598388] kasan_save_stack+0x3c/0x68 [ 16.598442] kasan_save_track+0x20/0x40 [ 16.598813] kasan_save_free_info+0x4c/0x78 [ 16.598925] __kasan_slab_free+0x6c/0x98 [ 16.599096] kfree+0x214/0x3c8 [ 16.599131] krealloc_uaf+0x12c/0x520 [ 16.599171] kunit_try_run_case+0x170/0x3f0 [ 16.599208] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.599484] kthread+0x328/0x630 [ 16.599641] ret_from_fork+0x10/0x20 [ 16.599913] [ 16.600157] The buggy address belongs to the object at fff00000c4409000 [ 16.600157] which belongs to the cache kmalloc-256 of size 256 [ 16.600427] The buggy address is located 0 bytes inside of [ 16.600427] freed 256-byte region [fff00000c4409000, fff00000c4409100) [ 16.600852] [ 16.600894] The buggy address belongs to the physical page: [ 16.601058] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104408 [ 16.601442] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.601686] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.601931] page_type: f5(slab) [ 16.602075] raw: 0bfffe0000000040 fff00000c0001b40 dead000000000122 0000000000000000 [ 16.602596] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.602755] head: 0bfffe0000000040 fff00000c0001b40 dead000000000122 0000000000000000 [ 16.602899] head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.602952] head: 0bfffe0000000001 ffffc1ffc3110201 00000000ffffffff 00000000ffffffff [ 16.603134] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 16.603535] page dumped because: kasan: bad access detected [ 16.603690] [ 16.603881] Memory state around the buggy address: [ 16.603917] fff00000c4408f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.603959] fff00000c4408f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.604001] >fff00000c4409000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.604037] ^ [ 16.604064] fff00000c4409080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.604105] fff00000c4409100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.604142] ================================================================== [ 16.605858] ================================================================== [ 16.605992] BUG: KASAN: slab-use-after-free in krealloc_uaf+0x4c8/0x520 [ 16.606045] Read of size 1 at addr fff00000c4409000 by task kunit_try_catch/165 [ 16.606319] [ 16.606487] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.606632] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.606666] Hardware name: linux,dummy-virt (DT) [ 16.606741] Call trace: [ 16.606783] show_stack+0x20/0x38 (C) [ 16.606932] dump_stack_lvl+0x8c/0xd0 [ 16.607014] print_report+0x118/0x608 [ 16.607062] kasan_report+0xdc/0x128 [ 16.607116] __asan_report_load1_noabort+0x20/0x30 [ 16.607409] krealloc_uaf+0x4c8/0x520 [ 16.607465] kunit_try_run_case+0x170/0x3f0 [ 16.607578] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.607708] kthread+0x328/0x630 [ 16.607754] ret_from_fork+0x10/0x20 [ 16.607801] [ 16.607830] Allocated by task 165: [ 16.607867] kasan_save_stack+0x3c/0x68 [ 16.607906] kasan_save_track+0x20/0x40 [ 16.607942] kasan_save_alloc_info+0x40/0x58 [ 16.607981] __kasan_kmalloc+0xd4/0xd8 [ 16.608015] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.608052] krealloc_uaf+0xc8/0x520 [ 16.608085] kunit_try_run_case+0x170/0x3f0 [ 16.608121] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.608161] kthread+0x328/0x630 [ 16.608200] ret_from_fork+0x10/0x20 [ 16.608244] [ 16.608262] Freed by task 165: [ 16.608296] kasan_save_stack+0x3c/0x68 [ 16.608332] kasan_save_track+0x20/0x40 [ 16.608366] kasan_save_free_info+0x4c/0x78 [ 16.608404] __kasan_slab_free+0x6c/0x98 [ 16.608451] kfree+0x214/0x3c8 [ 16.608483] krealloc_uaf+0x12c/0x520 [ 16.608525] kunit_try_run_case+0x170/0x3f0 [ 16.608561] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.608602] kthread+0x328/0x630 [ 16.608633] ret_from_fork+0x10/0x20 [ 16.608676] [ 16.608693] The buggy address belongs to the object at fff00000c4409000 [ 16.608693] which belongs to the cache kmalloc-256 of size 256 [ 16.608770] The buggy address is located 0 bytes inside of [ 16.608770] freed 256-byte region [fff00000c4409000, fff00000c4409100) [ 16.608869] [ 16.608887] The buggy address belongs to the physical page: [ 16.608919] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104408 [ 16.608970] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.609015] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.609063] page_type: f5(slab) [ 16.609110] raw: 0bfffe0000000040 fff00000c0001b40 dead000000000122 0000000000000000 [ 16.609167] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.609230] head: 0bfffe0000000040 fff00000c0001b40 dead000000000122 0000000000000000 [ 16.609304] head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.609358] head: 0bfffe0000000001 ffffc1ffc3110201 00000000ffffffff 00000000ffffffff [ 16.609420] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 16.609468] page dumped because: kasan: bad access detected [ 16.609498] [ 16.609515] Memory state around the buggy address: [ 16.609544] fff00000c4408f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.609585] fff00000c4408f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.609626] >fff00000c4409000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.609662] ^ [ 16.609687] fff00000c4409080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.609728] fff00000c4409100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.609773] ==================================================================
[ 12.337055] ================================================================== [ 12.337483] BUG: KASAN: slab-use-after-free in krealloc_uaf+0x1b8/0x5e0 [ 12.337710] Read of size 1 at addr ffff888102244400 by task kunit_try_catch/181 [ 12.337945] [ 12.338034] CPU: 1 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.338076] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.338087] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.338107] Call Trace: [ 12.338119] <TASK> [ 12.338135] dump_stack_lvl+0x73/0xb0 [ 12.338165] print_report+0xd1/0x650 [ 12.338186] ? __virt_addr_valid+0x1db/0x2d0 [ 12.338209] ? krealloc_uaf+0x1b8/0x5e0 [ 12.338228] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.338250] ? krealloc_uaf+0x1b8/0x5e0 [ 12.338270] kasan_report+0x141/0x180 [ 12.338290] ? krealloc_uaf+0x1b8/0x5e0 [ 12.338313] ? krealloc_uaf+0x1b8/0x5e0 [ 12.338333] __kasan_check_byte+0x3d/0x50 [ 12.338354] krealloc_noprof+0x3f/0x340 [ 12.338376] krealloc_uaf+0x1b8/0x5e0 [ 12.338396] ? __pfx_krealloc_uaf+0x10/0x10 [ 12.338416] ? finish_task_switch.isra.0+0x153/0x700 [ 12.338438] ? __switch_to+0x47/0xf50 [ 12.338463] ? __schedule+0x10cc/0x2b60 [ 12.338484] ? __pfx_read_tsc+0x10/0x10 [ 12.338511] ? ktime_get_ts64+0x86/0x230 [ 12.338535] kunit_try_run_case+0x1a5/0x480 [ 12.338559] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.338580] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.338602] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.338624] ? __kthread_parkme+0x82/0x180 [ 12.338644] ? preempt_count_sub+0x50/0x80 [ 12.338665] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.338688] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.338710] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.338732] kthread+0x337/0x6f0 [ 12.338750] ? trace_preempt_on+0x20/0xc0 [ 12.338772] ? __pfx_kthread+0x10/0x10 [ 12.338791] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.338811] ? calculate_sigpending+0x7b/0xa0 [ 12.338833] ? __pfx_kthread+0x10/0x10 [ 12.338853] ret_from_fork+0x116/0x1d0 [ 12.338870] ? __pfx_kthread+0x10/0x10 [ 12.338889] ret_from_fork_asm+0x1a/0x30 [ 12.339283] </TASK> [ 12.339303] [ 12.355390] Allocated by task 181: [ 12.355534] kasan_save_stack+0x45/0x70 [ 12.355724] kasan_save_track+0x18/0x40 [ 12.355940] kasan_save_alloc_info+0x3b/0x50 [ 12.356236] __kasan_kmalloc+0xb7/0xc0 [ 12.356441] __kmalloc_cache_noprof+0x189/0x420 [ 12.356619] krealloc_uaf+0xbb/0x5e0 [ 12.356800] kunit_try_run_case+0x1a5/0x480 [ 12.357024] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.357223] kthread+0x337/0x6f0 [ 12.357351] ret_from_fork+0x116/0x1d0 [ 12.357536] ret_from_fork_asm+0x1a/0x30 [ 12.357731] [ 12.357858] Freed by task 181: [ 12.358056] kasan_save_stack+0x45/0x70 [ 12.358206] kasan_save_track+0x18/0x40 [ 12.358340] kasan_save_free_info+0x3f/0x60 [ 12.358548] __kasan_slab_free+0x56/0x70 [ 12.358739] kfree+0x222/0x3f0 [ 12.358932] krealloc_uaf+0x13d/0x5e0 [ 12.359102] kunit_try_run_case+0x1a5/0x480 [ 12.359246] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.359482] kthread+0x337/0x6f0 [ 12.359649] ret_from_fork+0x116/0x1d0 [ 12.359832] ret_from_fork_asm+0x1a/0x30 [ 12.360071] [ 12.360155] The buggy address belongs to the object at ffff888102244400 [ 12.360155] which belongs to the cache kmalloc-256 of size 256 [ 12.360680] The buggy address is located 0 bytes inside of [ 12.360680] freed 256-byte region [ffff888102244400, ffff888102244500) [ 12.361075] [ 12.361147] The buggy address belongs to the physical page: [ 12.361397] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102244 [ 12.361970] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.362213] flags: 0x200000000000040(head|node=0|zone=2) [ 12.362388] page_type: f5(slab) [ 12.362547] raw: 0200000000000040 ffff888100041b40 dead000000000122 0000000000000000 [ 12.363023] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.363352] head: 0200000000000040 ffff888100041b40 dead000000000122 0000000000000000 [ 12.363604] head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.364167] head: 0200000000000001 ffffea0004089101 00000000ffffffff 00000000ffffffff [ 12.364401] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 12.364681] page dumped because: kasan: bad access detected [ 12.365170] [ 12.365263] Memory state around the buggy address: [ 12.365472] ffff888102244300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.365820] ffff888102244380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.366053] >ffff888102244400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.366612] ^ [ 12.366729] ffff888102244480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.367310] ffff888102244500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.367562] ================================================================== [ 12.368565] ================================================================== [ 12.369141] BUG: KASAN: slab-use-after-free in krealloc_uaf+0x53c/0x5e0 [ 12.369393] Read of size 1 at addr ffff888102244400 by task kunit_try_catch/181 [ 12.369690] [ 12.369796] CPU: 1 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.369836] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.369846] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.369864] Call Trace: [ 12.369875] <TASK> [ 12.369890] dump_stack_lvl+0x73/0xb0 [ 12.369917] print_report+0xd1/0x650 [ 12.369951] ? __virt_addr_valid+0x1db/0x2d0 [ 12.369973] ? krealloc_uaf+0x53c/0x5e0 [ 12.369994] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.370018] ? krealloc_uaf+0x53c/0x5e0 [ 12.370039] kasan_report+0x141/0x180 [ 12.370060] ? krealloc_uaf+0x53c/0x5e0 [ 12.370086] __asan_report_load1_noabort+0x18/0x20 [ 12.370111] krealloc_uaf+0x53c/0x5e0 [ 12.370132] ? __pfx_krealloc_uaf+0x10/0x10 [ 12.370152] ? finish_task_switch.isra.0+0x153/0x700 [ 12.370186] ? __switch_to+0x47/0xf50 [ 12.370211] ? __schedule+0x10cc/0x2b60 [ 12.370232] ? __pfx_read_tsc+0x10/0x10 [ 12.370252] ? ktime_get_ts64+0x86/0x230 [ 12.370275] kunit_try_run_case+0x1a5/0x480 [ 12.370298] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.370321] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.370344] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.370367] ? __kthread_parkme+0x82/0x180 [ 12.370387] ? preempt_count_sub+0x50/0x80 [ 12.370409] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.370434] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.370457] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.370484] kthread+0x337/0x6f0 [ 12.370506] ? trace_preempt_on+0x20/0xc0 [ 12.370529] ? __pfx_kthread+0x10/0x10 [ 12.370549] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.370570] ? calculate_sigpending+0x7b/0xa0 [ 12.370593] ? __pfx_kthread+0x10/0x10 [ 12.370614] ret_from_fork+0x116/0x1d0 [ 12.370632] ? __pfx_kthread+0x10/0x10 [ 12.370651] ret_from_fork_asm+0x1a/0x30 [ 12.370683] </TASK> [ 12.370692] [ 12.378264] Allocated by task 181: [ 12.378444] kasan_save_stack+0x45/0x70 [ 12.378653] kasan_save_track+0x18/0x40 [ 12.378868] kasan_save_alloc_info+0x3b/0x50 [ 12.379158] __kasan_kmalloc+0xb7/0xc0 [ 12.379354] __kmalloc_cache_noprof+0x189/0x420 [ 12.379531] krealloc_uaf+0xbb/0x5e0 [ 12.379700] kunit_try_run_case+0x1a5/0x480 [ 12.379990] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.380236] kthread+0x337/0x6f0 [ 12.380357] ret_from_fork+0x116/0x1d0 [ 12.380487] ret_from_fork_asm+0x1a/0x30 [ 12.380625] [ 12.380718] Freed by task 181: [ 12.380967] kasan_save_stack+0x45/0x70 [ 12.381161] kasan_save_track+0x18/0x40 [ 12.381351] kasan_save_free_info+0x3f/0x60 [ 12.381792] __kasan_slab_free+0x56/0x70 [ 12.381976] kfree+0x222/0x3f0 [ 12.382209] krealloc_uaf+0x13d/0x5e0 [ 12.382344] kunit_try_run_case+0x1a5/0x480 [ 12.382490] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.382677] kthread+0x337/0x6f0 [ 12.382840] ret_from_fork+0x116/0x1d0 [ 12.383037] ret_from_fork_asm+0x1a/0x30 [ 12.383330] [ 12.383426] The buggy address belongs to the object at ffff888102244400 [ 12.383426] which belongs to the cache kmalloc-256 of size 256 [ 12.384128] The buggy address is located 0 bytes inside of [ 12.384128] freed 256-byte region [ffff888102244400, ffff888102244500) [ 12.384474] [ 12.384544] The buggy address belongs to the physical page: [ 12.384740] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102244 [ 12.385245] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.385583] flags: 0x200000000000040(head|node=0|zone=2) [ 12.385954] page_type: f5(slab) [ 12.386179] raw: 0200000000000040 ffff888100041b40 dead000000000122 0000000000000000 [ 12.386667] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.387009] head: 0200000000000040 ffff888100041b40 dead000000000122 0000000000000000 [ 12.387329] head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.387597] head: 0200000000000001 ffffea0004089101 00000000ffffffff 00000000ffffffff [ 12.388143] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 12.388514] page dumped because: kasan: bad access detected [ 12.388731] [ 12.388879] Memory state around the buggy address: [ 12.389105] ffff888102244300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.389377] ffff888102244380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.389669] >ffff888102244400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.389995] ^ [ 12.390170] ffff888102244480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.390426] ffff888102244500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.390746] ==================================================================