USB: usbtmc: Use usb_bulk_msg_killable() with user-specified timeouts
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 048c6d88a0214757926f264823829e79154fcd4f · < 6cb7dc91f057dd8ce44f6caa2995d8e22784ed0a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
USB: usbtmc: Use usb_bulk_msg_killable() with user-specified timeouts
The usbtmc driver accepts timeout values specified by the user in an ioctl command, and uses these timeouts for some usb_bulk_msg() calls. Since the user can specify arbitrarily long timeouts and usb_bulk_msg() uses unkillable waits, call usb_bulk_msg_killable() instead to avoid the possibility of the user hanging a kernel thread indefinitely.
From the CVE record · Linux
The Linux kernel's USB usbtmc driver accepts user-specified timeouts for an ioctl command and uses them in unkillable USB bulk-message waits. A local user who supplies an arbitrarily long timeout can hang a kernel thread indefinitely.
Anyone running a Linux kernel with the USB usbtmc driver should check whether their version is affected; affected versions were not specified.