Description
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 cx231xx_i2c_xfer_data. 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 usb_submit_urb() direction warning. Use u16 for buf_size, matching both i2c_msg.len and VENDOR_REQUEST_IN.wLength. Oversized transfers then reach the existing URB_MAX_CTRL_SIZE check and return -EINVAL.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e0d3bafd02586cfde286c320f56906fd9fa8d256 to < d923ec5bf89bc15d44f2f8e533a8d702dfe889e0affectede0d3bafd02586cfde286c320f56906fd9fa8d256 to < 013ecc2e23c0dddb0d45dfff15b467997899cfa2affectede0d3bafd02586cfde286c320f56906fd9fa8d256 to < bb4d9bc83e524f33c9bfcb8a4aa6478b17f2c8efaffectede0d3bafd02586cfde286c320f56906fd9fa8d256 to < 66f938eb5246f62cacc46ef3418af78651b0eaf5affectede0d3bafd02586cfde286c320f56906fd9fa8d256 to < af8382230b821b50fd01920043e54618b497d726affectede0d3bafd02586cfde286c320f56906fd9fa8d256 to < 876ba0c13671407f7bd48791b84d5013a21188b0affectede0d3bafd02586cfde286c320f56906fd9fa8d256 to < af77a46d2303eeb6536701e76f5996ce53bd7972affectede0d3bafd02586cfde286c320f56906fd9fa8d256 to < a19c9502a69bbd42c18816b09cbefdeb4cb68066affected
Linux Linux
Default version status: affected
2.6.30affected0 to < 2.6.30unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.117 to ≤ 6.12.*unaffected6.18.63 to ≤ 6.18.*unaffected7.3.4 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/d923ec5bf89bc15d44f2f8e533a8d702dfe889e0 ↗
- https://git.kernel.org/stable/c/013ecc2e23c0dddb0d45dfff15b467997899cfa2 ↗
- https://git.kernel.org/stable/c/bb4d9bc83e524f33c9bfcb8a4aa6478b17f2c8ef ↗
- https://git.kernel.org/stable/c/66f938eb5246f62cacc46ef3418af78651b0eaf5 ↗
- https://git.kernel.org/stable/c/af8382230b821b50fd01920043e54618b497d726 ↗
- https://git.kernel.org/stable/c/876ba0c13671407f7bd48791b84d5013a21188b0 ↗
- https://git.kernel.org/stable/c/af77a46d2303eeb6536701e76f5996ce53bd7972 ↗
- https://git.kernel.org/stable/c/a19c9502a69bbd42c18816b09cbefdeb4cb68066 ↗