================================================================== BUG: KASAN: vmalloc-out-of-bounds in update_fwhdr drivers/staging/rtl8712/hal_init.c:124 [inline] BUG: KASAN: vmalloc-out-of-bounds in rtl8712_dl_fw+0xc99/0xe10 drivers/staging/rtl8712/hal_init.c:172 Read of size 2 at addr ffffc90010411000 by task dhcpcd/1207 CPU: 1 PID: 1207 Comm: dhcpcd Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x309 mm/kasan/report.c:256 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 update_fwhdr drivers/staging/rtl8712/hal_init.c:124 [inline] rtl8712_dl_fw+0xc99/0xe10 drivers/staging/rtl8712/hal_init.c:172 rtl8712_hal_init drivers/staging/rtl8712/hal_init.c:330 [inline] rtl871x_hal_init+0xae/0x180 drivers/staging/rtl8712/hal_init.c:394 netdev_open+0xe6/0x6c0 drivers/staging/rtl8712/os_intfs.c:380 __dev_open+0x2bc/0x4d0 net/core/dev.c:1490 __dev_change_flags+0x583/0x750 net/core/dev.c:8790 dev_change_flags+0x93/0x170 net/core/dev.c:8861 devinet_ioctl+0x15d1/0x1ca0 net/ipv4/devinet.c:1144 inet_ioctl+0x1e6/0x320 net/ipv4/af_inet.c:969 sock_do_ioctl+0xcc/0x230 net/socket.c:1118 sock_ioctl+0x2f1/0x640 net/socket.c:1235 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ff9710680e7 Code: 3c 1c e8 1c ff ff ff 85 c0 79 87 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 61 9d 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffda8312038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff970f7a6c8 RCX: 00007ff9710680e7 RDX: 00007ffda8322228 RSI: 0000000000008914 RDI: 0000000000000005 RBP: 00007ffda83323d8 R08: 00007ffda83221e8 R09: 00007ffda8322198 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffda8322228 R14: 0000000000000028 R15: 0000000000008914 Memory state around the buggy address: ffffc90010410f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90010410f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90010411000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90010411080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90010411100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================