CVE-2026-63902: USB: serial: cypress_m8: validate interrupt packet headers
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: cypress_m8: validate interrupt packet headers
cypress_read_int_callback() parses the interrupt-in buffer according to the selected Cypress packet format. Format 1 has a two-byte status/count header and format 2 has a one-byte combined status/count header. The usb-serial core sizes the interrupt-in buffer from the endpoint descriptor's wMaxPacketSize, and successful interrupt transfers can complete short when URB_SHORT_NOT_OK is not set.
Check that the completed packet contains the selected header before reading it. Malformed short reports are ignored and the interrupt URB is resubmitted through the existing retry path, preventing out-of-bounds header-byte reads.
KASAN report as below:
KASAN slab-out-of-bounds in cypress_read_int_callback+0x240/0x7f0
Read of size 1 Call trace: cypress_read_int_callback() (drivers/usb/serial/cypress_m8.c:1009) __usb_hcd_giveback_urb() dummy_timer()
[ johan: use constants in header length sanity checks ]
The Linux kernel CVE team has assigned CVE-2026-63902 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 5.10.259 with commit fcef31a5a85ccf3c313449a866ec6ed7e4132425 Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 5.15.210 with commit aaa66708bfb1dca2acd219d1c1582f9f6d5492cb Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 6.1.176 with commit 44f9bab8df7750a1e2a4d6cc22d7c9c2dc096aed Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 6.6.143 with commit be50533fe7068e86eb7adb81988e6d6a3f6dfe53 Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 6.12.93 with commit 90664556916de22467097d4c8ceb716d597a5c32 Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 6.18.35 with commit ae03453f2c809ca3cf73753269fa6184dea7160f Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 7.0.12 with commit 4a4cb0021ebe1fcadb52e04d19ed8d71470a530b Issue introduced in 2.6.26 with commit 3416eaa1f8f8d516b77de514e14cf8da256d28fb and fixed in 7.1 with commit 9f9bfc80c67f35a275820da7e83a35dface08281
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-63902
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/serial/cypress_m8.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/fcef31a5a85ccf3c313449a866ec6ed7e4132425 https://git.kernel.org/stable/c/aaa66708bfb1dca2acd219d1c1582f9f6d5492cb https://git.kernel.org/stable/c/44f9bab8df7750a1e2a4d6cc22d7c9c2dc096aed https://git.kernel.org/stable/c/be50533fe7068e86eb7adb81988e6d6a3f6dfe53 https://git.kernel.org/stable/c/90664556916de22467097d4c8ceb716d597a5c32 https://git.kernel.org/stable/c/ae03453f2c809ca3cf73753269fa6184dea7160f https://git.kernel.org/stable/c/4a4cb0021ebe1fcadb52e04d19ed8d71470a530b https://git.kernel.org/stable/c/9f9bfc80c67f35a275820da7e83a35dface08281