================================================================== 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+0x87c/0xe00 drivers/hid/hid-cp2112.c:698 Read of size 42 at addr ffffc900031ffd41 by task syz.0.17/5261 CPU: 0 PID: 5261 Comm: syz.0.17 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x168/0x230 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+0x27b/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+0x87c/0xe00 drivers/hid/hid-cp2112.c:698 __i2c_smbus_xfer+0x733/0x1d50 drivers/i2c/i2c-core-smbus.c:590 i2c_smbus_xfer+0x263/0x3a0 drivers/i2c/i2c-core-smbus.c:545 i2cdev_ioctl_smbus+0x3e3/0x650 drivers/i2c/i2c-dev.c:381 i2cdev_ioctl+0x545/0x750 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:0x7f4d8900c6c9 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:00007f4d8867b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4d89262fa0 RCX: 00007f4d8900c6c9 RDX: 0000200000000200 RSI: 0000000000000720 RDI: 0000000000000004 RBP: 00007f4d8908ef91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4d89263038 R14: 00007f4d89262fa0 R15: 00007ffeef6e3d88 addr ffffc900031ffd41 is located in stack of task syz.0.17/5261 at offset 33 in frame: i2cdev_ioctl_smbus+0x0/0x650 this frame has 1 object: [32, 66) 'temp' Memory state around the buggy address: ffffc900031ffc00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 ffffc900031ffc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900031ffd00: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 02 f3 f3 f3 ^ ffffc900031ffd80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900031ffe00: f1 f1 f1 f1 04 f2 00 00 f2 f2 00 00 f3 f3 f3 f3 ==================================================================