CVE-2026-63904: usb: usbtmc: check URB actual_length for interrupt-IN notifications
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
usb: usbtmc: check URB actual_length for interrupt-IN notifications
USBTMC devices can use an optional interrupt endpoint for notification messages. These typically contain two-byte headers indicating the payload format, but the driver does not check if these headers are present before accessing the data buffers. In cases where the URB actual_length is not enough to fit these headers, the driver will either cause an out-of-bounds read, or consume stale leftover data from a previous notification.
Fix by checking if actual_data contains enough bytes for the headers, otherwise resubmit URB to the interrupt endpoint.
The Linux kernel CVE team has assigned CVE-2026-63904 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 5.10.259 with commit e794bd67b3faf98af46f958897f6b91412c7d2a9 Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 5.15.210 with commit e3eec3005de44e7f37d8d7724be636446516ab42 Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 6.1.176 with commit ae87f505917e703ae3b487d9663d78826ff43608 Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 6.6.143 with commit 5de7df75ef3a2756b25fe3d582a4a2970444fe5a Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 6.12.93 with commit 69020fa089f1bf0e1a10a15265f31b143a846409 Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 6.18.35 with commit 75f6d3da2cc646983f41807ef98851569c12bca9 Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 7.0.12 with commit f141b01eaa58ac7e323931d670318aa247bff087 Issue introduced in 4.6 with commit dbf3e7f654c0f06a932b8fcafac78de9d0b81d68 and fixed in 7.1 with commit 52f2ad3f7e5eb3b5908e1d685d4342519dc9cfcd
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-63904
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/usb/class/usbtmc.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/e794bd67b3faf98af46f958897f6b91412c7d2a9 https://git.kernel.org/stable/c/e3eec3005de44e7f37d8d7724be636446516ab42 https://git.kernel.org/stable/c/ae87f505917e703ae3b487d9663d78826ff43608 https://git.kernel.org/stable/c/5de7df75ef3a2756b25fe3d582a4a2970444fe5a https://git.kernel.org/stable/c/69020fa089f1bf0e1a10a15265f31b143a846409 https://git.kernel.org/stable/c/75f6d3da2cc646983f41807ef98851569c12bca9 https://git.kernel.org/stable/c/f141b01eaa58ac7e323931d670318aa247bff087 https://git.kernel.org/stable/c/52f2ad3f7e5eb3b5908e1d685d4342519dc9cfcd