CVE-2026-53196: USB: serial: io_ti: fix heap overflow in get_manuf_info()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: io_ti: fix heap overflow in get_manuf_info()
get_manuf_info() reads le16_to_cpu(rom_desc->Size) bytes from the device I2C EEPROM into a buffer allocated with kmalloc_obj(), which is sizeof(struct edge_ti_manuf_descriptor) = 10 bytes.
The Size field comes from the device and is only validated (in check_i2c_image()) to make sure the descriptor fits within TI_MAX_I2C_SIZE (16384 bytes), not against the destination buffer size. A malicious USB device can therefore set Size to any value up to 16377, causing a heap overflow of up to 16367 bytes when plugged into a host running this driver.
valid_csum() is called after read_rom() and also iterates buffer[0..Size-1], compounding the out-of-bounds access.
Fix by rejecting descriptors with unexpected length before calling read_rom().
[ johan: amend commit message; also check for short descriptors ]
The Linux kernel CVE team has assigned CVE-2026-53196 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.259 with commit e168db91442b94e64fa82a7dd297983d48ea5cc0 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.210 with commit 561edb021486e6723d841926aa4b48097da06190 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.176 with commit cfd634f6dfd40c49a84f9bddc2867a80e2e2623a Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.143 with commit d92f17af7097d10bdeddf26f66f34b354104b277 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.94 with commit b849f30d1a9e66aae6b715aaef66e427390cb081 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.36 with commit f96cf7bf9fbf15d7fcf0c91fec47ba8a010369ea Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.13 with commit d214d2341d4f9f447e36a7d012cdf6a6631a55f1 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1 with commit 183c1076eca43bbb3e7bdf597456f91d81c73e74
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-53196
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/io_ti.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/e168db91442b94e64fa82a7dd297983d48ea5cc0 https://git.kernel.org/stable/c/561edb021486e6723d841926aa4b48097da06190 https://git.kernel.org/stable/c/cfd634f6dfd40c49a84f9bddc2867a80e2e2623a https://git.kernel.org/stable/c/d92f17af7097d10bdeddf26f66f34b354104b277 https://git.kernel.org/stable/c/b849f30d1a9e66aae6b715aaef66e427390cb081 https://git.kernel.org/stable/c/f96cf7bf9fbf15d7fcf0c91fec47ba8a010369ea https://git.kernel.org/stable/c/d214d2341d4f9f447e36a7d012cdf6a6631a55f1 https://git.kernel.org/stable/c/183c1076eca43bbb3e7bdf597456f91d81c73e74