syzbot


KASAN: slab-out-of-bounds Write in udf_write_aext (2)

Status: upstream: reported on 2025/07/15 07:05
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+4e1da0d327b65949fe1b@syzkaller.appspotmail.com
First crash: 152d, last: 17d
Discussions (4)
Title Replies (including bot) Last reply
[syzbot] Monthly udf report (Oct 2025) 0 (1) 2025/10/27 12:50
[syzbot] Monthly udf report (Sep 2025) 0 (1) 2025/09/26 05:14
[syzbot] Monthly udf report (Jul 2025) 0 (1) 2025/07/26 20:43
[syzbot] [udf?] KASAN: slab-out-of-bounds Write in udf_write_aext (2) 0 (1) 2025/07/15 07:05
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: slab-out-of-bounds Write in udf_write_aext origin:lts-only 24 C error 7050 413d 1004d 0/3 auto-obsoleted due to no activity on 2025/01/22 09:20
linux-6.1 KASAN: slab-out-of-bounds Write in udf_write_aext origin:lts-only 24 C done 5821 415d 1004d 0/3 upstream: reported C repro on 2023/03/11 14:12
linux-4.14 KASAN: slab-out-of-bounds Write in udf_write_aext udf f2fs tmpfs 23 C 17 1010d 1172d 0/1 upstream: reported C repro on 2022/09/25 01:59
upstream KASAN: slab-out-of-bounds Write in udf_write_aext udf 24 C error error 674 1010d 1170d 0/29 auto-obsoleted due to no activity on 2023/07/26 07:31
linux-4.19 KASAN: slab-out-of-bounds Write in udf_write_aext udf tmpfs erofs 23 C error 67 1010d 1501d 0/1 upstream: reported C repro on 2021/10/31 06:20

Sample crash report:
loop0: detected capacity change from 2048 to 64
==================================================================
BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x69d/0x7b0 fs/udf/inode.c:2167
Write of size 4 at addr ffff88803ec1d5d8 by task syz.0.0/5319

CPU: 0 UID: 0 PID: 5319 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0xca/0x240 mm/kasan/report.c:482
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 udf_write_aext+0x69d/0x7b0 fs/udf/inode.c:2167
 __udf_add_aext+0x2b9/0x6d0 fs/udf/inode.c:2092
 udf_table_free_blocks fs/udf/balloc.c:481 [inline]
 udf_free_blocks+0x1466/0x17f0 fs/udf/balloc.c:677
 extent_trunc+0x35c/0x450 fs/udf/truncate.c:52
 udf_truncate_extents+0x5b0/0xec0 fs/udf/truncate.c:271
 udf_setsize+0x972/0x1000 fs/udf/inode.c:1324
 udf_setattr+0x3a1/0x5a0 fs/udf/file.c:236
 notify_change+0xc1a/0xf40 fs/attr.c:546
 do_truncate+0x1a4/0x220 fs/open.c:68
 vfs_truncate+0x493/0x520 fs/open.c:118
 do_sys_truncate+0xdb/0x190 fs/open.c:141
 __do_sys_truncate fs/open.c:153 [inline]
 __se_sys_truncate fs/open.c:151 [inline]
 __x64_sys_truncate+0x5b/0x70 fs/open.c:151
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5e59d8f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5e5ac3e038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f5e59fe6090 RCX: 00007f5e59d8f749
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000013c0
RBP: 00007f5e59e13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5e59fe6128 R14: 00007f5e59fe6090 R15: 00007ffc4bd0cbc8
 </TASK>

Allocated by task 5318:
 kasan_save_stack mm/kasan/common.c:56 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:77
 poison_kmalloc_redzone mm/kasan/common.c:400 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:417
 kasan_kmalloc include/linux/kasan.h:262 [inline]
 __do_kmalloc_node mm/slub.c:5650 [inline]
 __kmalloc_noprof+0x411/0x7f0 mm/slub.c:5662
 kmalloc_noprof include/linux/slab.h:961 [inline]
 udf_alloc_i_data fs/udf/inode.c:1668 [inline]
 udf_read_inode fs/udf/inode.c:1480 [inline]
 __udf_iget+0xc66/0x3ae0 fs/udf/inode.c:1974
 udf_iget_special fs/udf/udfdecl.h:147 [inline]
 udf_fill_partdesc_info+0x773/0x1320 fs/udf/super.c:1162
 udf_load_partdesc fs/udf/super.c:1321 [inline]
 udf_process_sequence+0x111c/0x47e0 fs/udf/super.c:1846
 udf_load_sequence fs/udf/super.c:1884 [inline]
 udf_check_anchor_block+0x28e/0x550 fs/udf/super.c:1919
 udf_scan_anchors fs/udf/super.c:1973 [inline]
 udf_load_vrs+0x96d/0xf20 fs/udf/super.c:2033
 udf_fill_super+0x5ad/0x17a0 fs/udf/super.c:2201
 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1698
 vfs_get_tree+0x92/0x2b0 fs/super.c:1758
 fc_mount fs/namespace.c:1199 [inline]
 do_new_mount_fc fs/namespace.c:3642 [inline]
 do_new_mount+0x302/0xa10 fs/namespace.c:3718
 do_mount fs/namespace.c:4041 [inline]
 __do_sys_mount fs/namespace.c:4229 [inline]
 __se_sys_mount+0x313/0x410 fs/namespace.c:4206
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88803ec1d400
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 0 bytes to the right of
 allocated 472-byte region [ffff88803ec1d400, ffff88803ec1d5d8)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3ec1c
head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
ksm flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 04fff00000000040 ffff88801a041c80 ffffea0000f27f80 dead000000000003
raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
head: 04fff00000000040 ffff88801a041c80 ffffea0000f27f80 dead000000000003
head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
head: 04fff00000000001 ffffea0000fb0701 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 23984091264, free_ts 0
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x234/0x290 mm/page_alloc.c:1845
 prep_new_page mm/page_alloc.c:1853 [inline]
 get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3879
 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5178
 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416
 alloc_slab_page mm/slub.c:3059 [inline]
 allocate_slab+0x96/0x350 mm/slub.c:3232
 new_slab mm/slub.c:3286 [inline]
 ___slab_alloc+0xf56/0x1990 mm/slub.c:4655
 __slab_alloc+0x65/0x100 mm/slub.c:4778
 __slab_alloc_node mm/slub.c:4854 [inline]
 slab_alloc_node mm/slub.c:5276 [inline]
 __do_kmalloc_node mm/slub.c:5649 [inline]
 __kmalloc_node_track_caller_noprof+0x5c7/0x800 mm/slub.c:5759
 __do_krealloc mm/slub.c:6991 [inline]
 krealloc_node_align_noprof+0x140/0x390 mm/slub.c:7050
 add_sysfs_param+0xd4/0xa30 kernel/params.c:655
 kernel_add_sysfs_param+0x7f/0xe0 kernel/params.c:812
 param_sysfs_builtin+0x18a/0x230 kernel/params.c:851
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:987
 do_one_initcall+0x236/0x820 init/main.c:1283
 do_initcall_level+0x104/0x190 init/main.c:1345
 do_initcalls+0x59/0xa0 init/main.c:1361
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88803ec1d480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88803ec1d500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88803ec1d580: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc
                                                    ^
 ffff88803ec1d600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88803ec1d680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/23 03:48 upstream 89edd36fd801 4fb8ef37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/11/17 11:25 upstream 6a23ae0a96a6 c1ade9dd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/11/16 12:39 upstream f824272b6e3f f7988ea4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/11/15 17:29 upstream 7a0892d2836e f7988ea4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/11/12 08:35 upstream 24172e0d7990 4e1406b4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/11/08 00:46 upstream da32d155f4a8 4e1406b4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/11/05 01:40 upstream c9cfc122f037 a6c9c731 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/11/02 13:52 upstream 691d401c7e0e 2c50b6a9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/30 21:20 upstream e53642b87a4f 2c50b6a9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/30 18:37 upstream e53642b87a4f 2c50b6a9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/29 04:49 upstream 8eefed8f65cc fd2207e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/25 22:22 upstream 566771afc7a8 c0460fcd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/21 15:05 upstream 6548d364a3e8 9832ed61 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/12 19:32 upstream 67029a49db6c ff1712fe .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/12 09:58 upstream 98906f9d850e ff1712fe .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/12 02:25 upstream 98906f9d850e ff1712fe .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/11 01:23 upstream 917167ed1211 ff1712fe .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/10/05 09:21 upstream 6093a688a07d 49379ee0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/09/28 16:30 upstream 51a24b7deaae 001c9061 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/09/24 02:10 upstream cec1e6e5d1ab e667a34f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/27 10:29 upstream ec2df4364666 fb8f743d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/26 20:47 upstream 302f88ff3584 fb8f743d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/24 10:06 upstream f9af7b5d9349 0c1d6ded .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/23 04:56 upstream 89be9a83ccf1 e1dd4f22 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/13 13:02 upstream 3f31a806a62e 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/11 20:25 upstream 40f92e79b0aa 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/11 12:38 upstream bc9ff192a6c9 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
2025/07/10 23:38 upstream bc9ff192a6c9 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Write in udf_write_aext
* Struck through repros no longer work on HEAD.