In the Linux kernel, the following vulnerability has been resolved: media: rc: fintek-cir: process a full RX buffer instead of overflowing it fintek_get_rx_ir_data() drains the CIR RX FIFO into fintek->buf[], which holds RX_BUF_LEN (32) bytes, for as long as CIR_STATUS reports pending RX data: do { sample = fintek_cir_reg_read(fintek, CIR_RX_DATA); ... fintek->buf[fintek->pkts] = sample; fintek->pkts++; ... } while (status & rx_irqs); Nothing bounds fintek->pkts. If the hardware reports data for more than RX_BUF_LEN reads in one interrupt, the loop writes past the end of buf[], starting with the pkts counter that follows it in struct fintek_dev. Hand a full buffer to fintek_process_rx_ir_data(), which parses the samples and resets fintek->pkts, before storing the next sample. This keeps the parser state consistent and drops no samples. The loop still relies on the status register to terminate. The driver does not document the hardware FIFO depth, so it is not known whether a working device can trigger this. Found by static analysis tool CodeQL.
https://git.kernel.org/stable/c/e6cbaa1a56b686b9d3fad44dfbc4148760cdff94
https://git.kernel.org/stable/c/d5e446e0a0541bf76e6e157a310f370699731cfd
https://git.kernel.org/stable/c/d1febef1bcfa7bbc401729f994c375b91a833911
https://git.kernel.org/stable/c/acee0a8e501ec3ba1687e67e62c797745262757c
https://git.kernel.org/stable/c/9bf274b20b17ac76398052f62916f0c633c28307
https://git.kernel.org/stable/c/49d605bfc40bb561f876956688d2a774d100eff9
https://git.kernel.org/stable/c/114c870480277554bf8242a14fa136347da81aef
https://git.kernel.org/stable/c/0b7c968ec9b9d53734cc102260cc211b55ae0d8c