The ITE it51xxx I2C driver, when operating as an I2C target (slave) in buffer mode (CONFIG_I2C_TARGET + CONFIG_I2C_TARGET_BUFFER_MODE), transmits response data from the fixed-size data->target_out_buffer inside its target FIFO interrupt handler target_i2c_isr_fifo() in drivers/i2c/i2c_ite_it51xxx.c. On every data interrupt of a host read transaction the handler pushes a fixed 16 bytes from target_out_buffer[i + data->r_index] into the hardware FIFO and then advances data->r_index by 16, without ever checking that index against the size of the buffer.
data->r_index is reset to zero only on a STOP or timeout condition, so within a single transaction it only accumulates. An I2C host that keeps clocking read bytes without issuing STOP drives data->r_index past the end of the buffer after sixteen interrupts (default CONFIG_I2C_TARGET_IT51XXX_MAX_BUF_SIZE = 256 bytes), and every interrupt after that reads 16 bytes from beyond target_out_buffer and places them on the bus. What follows the buffer in the driver's device data structure is data->target_shared_fifo and the remaining static device state, so a sufficiently long read transaction streams adjacent firmware memory to the host.
The same handler, and the shared-FIFO arm of target_i2c_isr_pio(), also declare the transfer length uninitialised and invoke the optional buf_read_requested() callback without checking that it is registered. A target that supplies no read callback leaves the source pointer NULL and the length indeterminate; when that length compares below the destination size, memcpy() runs with a NULL source. Because the transmit path feeds the FIFO whether or not the callback provided data, such a target also places whatever the previous request left in the buffer onto the bus.
The trigger is a malicious or misbehaving I2C master on the same bus (for example a compromised application processor or a rogue device on an exposed I2C bus); no software privilege on the victim is required and the handler runs in the target's kernel/firmware context. The disclosed bytes are not attacker-chosen, but their extent is: the host controls how long the transaction runs and therefore how far past the buffer the driver reads.
This is the read-direction counterpart of CVE-2026-14986, which closed the write direction of the same routine without adding the matching bound on the read path.
Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme ve üretici referansları için kaynak kaydı inceleyin.

