CVE-2026-139026: media: cx231xx: preserve I2C transfer length
In the Linux kernel, the following vulnerability has been resolved:
media: cx231xx: preserve I2C transfer length
The I2C core stores message lengths in u16, but cx231xx truncates them to u8 when populating cx231xxi2cxferdata. A 0x700-byte read therefore becomes a zero-length request. USB treats zero-length control transfers as OUT regardless of bRequestType, so the IN control pipe trips the usbsubmiturb() direction warning.
Use u16 for bufsize, matching both i2cmsg.len and VENDORREQUESTIN.wLength. Oversized transfers then reach the existing URBMAXCTRLSIZE check and return -EINVAL.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In cx231xx, use u16 for buf_size to match i2c_msg.len and VENDOR_REQUEST_IN.wLength, preserving the I2C transfer length.