================================================================== BUG: KASAN: stack-out-of-bounds in cp2112_write_req drivers/hid/hid-cp2112.c:481 [inline] BUG: KASAN: stack-out-of-bounds in cp2112_xfer+0x89d/0xe30 drivers/hid/hid-cp2112.c:698 Read of size 42 at addr ffffc900030efd41 by task syz.0.17/5083 CPU: 1 PID: 5083 Comm: syz.0.17 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 cp2112_write_req drivers/hid/hid-cp2112.c:481 [inline] cp2112_xfer+0x89d/0xe30 drivers/hid/hid-cp2112.c:698 __i2c_smbus_xfer+0x7b4/0x1dc0 drivers/i2c/i2c-core-smbus.c:590 i2c_smbus_xfer+0x272/0x3b0 drivers/i2c/i2c-core-smbus.c:545 i2cdev_ioctl_smbus+0x432/0x680 drivers/i2c/i2c-dev.c:381 i2cdev_ioctl+0x583/0x7b0 drivers/i2c/i2c-dev.c:467 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fd8c9b82e79 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd8c91e6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd8c9dedfa0 RCX: 00007fd8c9b82e79 RDX: 0000200000000200 RSI: 0000000000000720 RDI: 0000000000000004 RBP: 00007fd8c9c15ee0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd8c9dee038 R14: 00007fd8c9dedfa0 R15: 00007ffe86560768 addr ffffc900030efd41 is located in stack of task syz.0.17/5083 at offset 33 in frame: i2cdev_ioctl_smbus+0x0/0x680 this frame has 1 object: [32, 66) 'temp' Memory state around the buggy address: ffffc900030efc00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f8 f3 f3 f3 ffffc900030efc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900030efd00: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 02 f3 f3 f3 ^ ffffc900030efd80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900030efe00: f1 f1 f1 f1 f8 f2 f8 f8 f2 f2 00 00 f3 f3 f3 f3 ==================================================================