]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: usbtmc: prevent kernel-usb-infoleak
authorEdward Adam Davis <eadavis@qq.com>
Sun, 8 Sep 2024 09:17:41 +0000 (17:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2024 14:31:09 +0000 (16:31 +0200)
commit6c7fc36da021b13c34c572a26ba336cd102418f8
tree27fdfb7893746c50234414d1a16f3431b67b637d
parent70b6f471b5c7f6a39f85d3ee1890534b4f182e8b
USB: usbtmc: prevent kernel-usb-infoleak

commit 625fa77151f00c1bd00d34d60d6f2e710b3f9aad upstream.

The syzbot reported a kernel-usb-infoleak in usbtmc_write,
we need to clear the structure before filling fields.

Fixes: 4ddc645f40e9 ("usb: usbtmc: Add ioctl for vendor specific write")
Reported-and-tested-by: syzbot+9d34f80f841e948c3fdb@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=9d34f80f841e948c3fdb
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/tencent_9649AA6EC56EDECCA8A7D106C792D1C66B06@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c