Description
In the Linux kernel, the following vulnerability has been resolved: media: go7007: bound EZ-USB I2C transfers to the usb_buf size go7007_usb_i2c_master_xfer() copies msgs[i].len bytes into go->usb_buf, a 16-byte buffer embedded in struct go7007, without any length check. The adapter declares no transfer limits, so an SMBus block transfer issued through /dev/i2c-N can write up to 34 bytes into it and corrupt the struct fields that follow the buffer. Bound the transfer size with i2c_adapter_quirks so the I2C core rejects oversized messages before they reach the driver.
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
7955f03d18d14d18188f94581a4ea336c94b1e2d to < 40419e7be1dfcf6f00233a2c94144fb7fed4d848affected7955f03d18d14d18188f94581a4ea336c94b1e2d to < cbaec6495e132d077e85c3aacaaf7f13ee37741daffected7955f03d18d14d18188f94581a4ea336c94b1e2d to < 352510af428a29b51c37b8bfe4f3610eb1685a42affected7955f03d18d14d18188f94581a4ea336c94b1e2d to < 5396bd025884030a6d5db3993cbbb05b67d74773affected7955f03d18d14d18188f94581a4ea336c94b1e2d to < 027740b8c75bc34710a624ffefbbcd3b18ab54a4affected7955f03d18d14d18188f94581a4ea336c94b1e2d to < d208c267148f61a041a1927fec5f48c793e5d975affected7955f03d18d14d18188f94581a4ea336c94b1e2d to < 37630129efa1f356d5266476bbeadcb929790d3aaffected7955f03d18d14d18188f94581a4ea336c94b1e2d to < 816c4628b23e8c3d925978433f4dd1a13620c01baffected
Linux Linux
Default version status: affected
3.17affected0 to < 3.17unaffected5.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/40419e7be1dfcf6f00233a2c94144fb7fed4d848 ↗
- https://git.kernel.org/stable/c/cbaec6495e132d077e85c3aacaaf7f13ee37741d ↗
- https://git.kernel.org/stable/c/352510af428a29b51c37b8bfe4f3610eb1685a42 ↗
- https://git.kernel.org/stable/c/5396bd025884030a6d5db3993cbbb05b67d74773 ↗
- https://git.kernel.org/stable/c/027740b8c75bc34710a624ffefbbcd3b18ab54a4 ↗
- https://git.kernel.org/stable/c/d208c267148f61a041a1927fec5f48c793e5d975 ↗
- https://git.kernel.org/stable/c/37630129efa1f356d5266476bbeadcb929790d3a ↗
- https://git.kernel.org/stable/c/816c4628b23e8c3d925978433f4dd1a13620c01b ↗