KASAN: slab-out-of-bounds Read in ec168_i2c_xfer

Status: upstream: reported C repro on 2026/03/23 20:13
Subsystems: usb media
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+64485d3659c4c07111b4@syzkaller.appspotmail.com
First crash: 238d, last: 5d13h
Cause bisection: failed (error log, bisect log)
  
▶ ▼ ✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
1cc2c070 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KASAN: slab-out-of-bounds Read in ec168_i2c_xfer 2026/05/21 19:25 2026/05/21 19:25 2026/05/21 20:16 d5742584
▶ ▼ Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] media: ec168: fix slab-out-of-bounds in ec168_i2c_xfer 4 (4) 2026/05/31 01:47
[PATCH] media: ec168: fix slab-out-of-bounds in ec168_i2c_xfer 1 (1) 2026/03/24 00:15
[syzbot] [media?] [usb?] KASAN: slab-out-of-bounds Read in ec168_i2c_xfer 0 (2) 2026/03/23 23:28
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer origin:upstream 17 syz, C 5 21d 69d 0/2 upstream: reported C repro on 2026/09/06 18:09
linux-5.15 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer 17 syz, C 2 48d 69d 0/3 upstream: reported C repro on 2026/09/06 22:26
▶ ▼ Last patch testing requests (11)
Created Duration User Patch Repo Result
2026/10/05 06:20 33m retest repro linux-next report job log log
2026/10/05 06:20 37m retest repro linux-next report job log log
2026/10/05 06:20 56m retest repro linux-next report job log log
2026/10/05 06:20 21m retest repro upstream report job log log
2026/10/05 06:20 36m retest repro linux-next report job log log
2026/10/04 12:32 18m retest repro upstream error job log
2026/10/04 12:32 19m retest repro upstream error job log
2026/10/04 12:32 1h07m retest repro upstream error job log
2026/08/31 11:43 21m retest repro linux-next report job log log
2026/07/08 06:30 28m retest repro linux-next log
2026/03/23 23:28 37m kartikey406@gmail.com patch linux-next OK log

Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in ec168_i2c_xfer+0x4d4/0x630 drivers/media/usb/dvb-usb-v2/ec168.c:143
Read of size 1 at addr ffff888036fc5da1 by task syz-executor274/5649

CPU: 0 UID: 0 PID: 5649 Comm: syz-executor274 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 ec168_i2c_xfer+0x4d4/0x630 drivers/media/usb/dvb-usb-v2/ec168.c:143
 __i2c_transfer+0x7bf/0x1fe0 drivers/i2c/i2c-core-base.c:-1
 i2c_transfer+0x1cb/0x2d0 drivers/i2c/i2c-core-base.c:2396
 i2cdev_ioctl_rdwr+0x460/0x740 drivers/i2c/i2c-dev.c:306
 i2cdev_ioctl+0x6a5/0x880 drivers/i2c/i2c-dev.c:467
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc5422a0989
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcb3083688 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffcb30837b8 RCX: 00007fc5422a0989
RDX: 0000200000000140 RSI: 0000000000000707 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000000 R09: 00007ffcb30837b8
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcb30837a8
R13: 0000000000000002 R14: 00007fc542330ca0 R15: 0000000000000002
 </TASK>

Allocated by task 5649:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:409 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __do_kmalloc_node mm/slub.c:5531 [inline]
 __kmalloc_node_track_caller_noprof+0x4af/0x720 mm/slub.c:5662
 memdup_user+0x2b/0xd0 mm/util.c:221
 i2cdev_ioctl_rdwr+0x1c6/0x740 drivers/i2c/i2c-dev.c:266
 i2cdev_ioctl+0x6a5/0x880 drivers/i2c/i2c-dev.c:467
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888036fc5da0
 which belongs to the cache kmalloc-8 of size 8
The buggy address is located 0 bytes to the right of
 allocated 1-byte region [ffff888036fc5da0, ffff888036fc5da1)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888036fc5740 pfn:0x36fc5
flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000200 ffff88813ff25500 ffffea0000dd4d90 ffffea0000d86e50
raw: ffff888036fc5740 0000000000800065 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 18777803496
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859
 prep_new_page mm/page_alloc.c:1867 [inline]
 get_page_from_freelist+0x2224/0x2290 mm/page_alloc.c:3940
 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5464
 alloc_slab_page mm/slub.c:3384 [inline]
 allocate_slab+0x7d/0x5e0 mm/slub.c:3499
 new_slab mm/slub.c:3550 [inline]
 refill_objects+0x2d5/0x350 mm/slub.c:7539
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811
 alloc_from_pcs mm/slub.c:4887 [inline]
 slab_alloc_node mm/slub.c:5021 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_node_track_caller_noprof+0x543/0x720 mm/slub.c:5662
 __kmemdup_nul mm/util.c:64 [inline]
 kstrdup+0x42/0x100 mm/util.c:84
 kobject_set_name_vargs+0x61/0x110 lib/kobject.c:274
 kobject_add_varg lib/kobject.c:368 [inline]
 kobject_init_and_add+0xee/0x1a0 lib/kobject.c:457
 lookup_or_create_module_kobject+0xe3/0x170 kernel/params.c:767
 kernel_add_sysfs_param+0x14/0xe0 kernel/params.c:790
 param_sysfs_builtin+0x199/0x250 kernel/params.c:838
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:974
 do_one_initcall+0x250/0x870 init/main.c:1419
 do_initcall_level+0x10a/0x1a0 init/main.c:1481
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888036fc5c80: fa fc fc fc 00 fc fc fc 00 fc fc fc fa fc fc fc
 ffff888036fc5d00: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc
>ffff888036fc5d80: fa fc fc fc 01 fc fc fc 00 fc fc fc fa fc fc fc
                               ^
 ffff888036fc5e00: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc
 ffff888036fc5e80: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc
==================================================================

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/09 14:21 upstream e0d8e8de8bcb 5cecaf1f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/05 23:25 upstream 0d9ff90a5422 4f7b22a0 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/20 07:24 upstream 50d05c7c76c9 853b104b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/20 02:36 upstream 50d05c7c76c9 853b104b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/19 01:51 upstream 50d05c7c76c9 8d7d05f1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/24 12:03 linux-next 09c0f7f1bcdb baf8bf12 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/24 10:26 linux-next 09c0f7f1bcdb baf8bf12 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/22 11:14 linux-next 785f0eb2f85d 5b92003d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/22 09:47 linux-next 785f0eb2f85d 5b92003d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/22 07:47 linux-next 785f0eb2f85d 5b92003d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/22 05:59 linux-next 785f0eb2f85d 5b92003d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/22 04:30 linux-next 785f0eb2f85d 5b92003d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/11/04 17:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6628e7d4c6b2 5af5b6c6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/11/03 19:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6628e7d4c6b2 d02c3949 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/11/01 07:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7a19f0cc94ad 25a0ae84 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 16:20 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 16:19 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 15:05 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 15:05 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:54 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:53 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:53 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:26 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:25 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/05 22:28 upstream 0d9ff90a5422 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/05 22:28 upstream 0d9ff90a5422 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/29 08:46 upstream cbfffcca2bf0 356bdfc9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/05 23:48 upstream 0d9ff90a5422 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/05 23:48 upstream 0d9ff90a5422 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/10/15 02:30 upstream 0fcb05b72344 8fb0ae89 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:33 linux-next 9d80aa4617b3 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:33 linux-next 9d80aa4617b3 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:19 linux-next 9d80aa4617b3 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/09/06 13:19 linux-next 9d80aa4617b3 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
2026/03/22 03:05 linux-next 785f0eb2f85d 5b92003d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ec168_i2c_xfer
* Struck through repros no longer work on HEAD.