In the Linux kernel, the following vulnerability has been resolved: media: stv0900: bound DiSEqC reply length to msg[] size The FIFO_BYTENBR field is 4 bits (mask 0x0f), giving a length of 0..15 but reply->msg is __u8[4] in struct dvb_diseqc_slave_reply. A faulty or malicious device reporting more than 4 bytes will the array and clobber the stack. The stb0899, tda10071, and s5h1420 drivers all properly bound the FIFO count against sizeof(reply->msg) before the read loop, so do the same thing in this driver.
https://git.kernel.org/stable/c/f48c6fc2481c507d84278e781f279deacac0b91c
https://git.kernel.org/stable/c/d8dbd8de9334c079c90cfdc2bac081e3b62c0d8d
https://git.kernel.org/stable/c/cac52936e3564d081f1e3fdf2b20924f0495f6e7
https://git.kernel.org/stable/c/afc9cc35ed214391e03c1cfa44d85574a95f80a3
https://git.kernel.org/stable/c/8d1cf1a3de3647565d2ce60daf1448defe6cc7ce
https://git.kernel.org/stable/c/8018d370be35e9f9ad9193a785b44179d4d55251
https://git.kernel.org/stable/c/6d7e70111b9c80a9e4cb17fe6a6c4f5470847722
https://git.kernel.org/stable/c/2ff8c697358649f6795305ffdd3e763f4f24abc7