Description
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.
Affected products and versions
Linux Linux99277b3824e4bfd290c30e8981929373c9a9e6a4 – < f48c6fc2481c507d84278e781f279deacac0b91c · 99277b3824e4bfd290c30e8981929373c9a9e6a4 – < 2ff8c697358649f6795305ffdd3e763f4f24abc7 · 99277b3824e4bfd290c30e8981929373c9a9e6a4 – < afc9cc35ed214391e03c1cfa44d85574a95f80a3 · 99277b3824e4bfd290c30e8981929373c9a9e6a4 – < cac52936e3564d081f1e3fdf2b20924f0495f6e7 · 99277b3824e4bfd290c30e8981929373c9a9e6a4 – < 8d1cf1a3de3647565d2ce60daf1448defe6cc7ce · 99277b3824e4bfd290c30e8981929373c9a9e6a4 – < 8018d370be35e9f9ad9193a785b44179d4d55251 · 99277b3824e4bfd290c30e8981929373c9a9e6a4 – < d8dbd8de9334c079c90cfdc2bac081e3b62c0d8d · 99277b3824e4bfd290c30e8981929373c9a9e6a4 – < 6d7e70111b9c80a9e4cb17fe6a6c4f5470847722Fixed in: f48c6fc2481c507d84278e781f279deacac0b91c · 2ff8c697358649f6795305ffdd3e763f4f24abc7 · afc9cc35ed214391e03c1cfa44d85574a95f80a3 · cac52936e3564d081f1e3fdf2b20924f0495f6e7 · 8d1cf1a3de3647565d2ce60daf1448defe6cc7ce · 8018d370be35e9f9ad9193a785b44179d4d55251 · d8dbd8de9334c079c90cfdc2bac081e3b62c0d8d · 6d7e70111b9c80a9e4cb17fe6a6c4f5470847722
Linux Linux2.6.30Fixed in: 5.10.275 · 5.15.226 · 6.1.193 · 6.6.163 · 6.12.117 · 6.18.63 · 7.3.4 · 7.4-rc1
References
- git.kernel.org/stable/c/f48c6fc2481c507d84278e781f279deacac0b91c
- git.kernel.org/stable/c/2ff8c697358649f6795305ffdd3e763f4f24abc7
- git.kernel.org/stable/c/afc9cc35ed214391e03c1cfa44d85574a95f80a3
- git.kernel.org/stable/c/cac52936e3564d081f1e3fdf2b20924f0495f6e7
- git.kernel.org/stable/c/8d1cf1a3de3647565d2ce60daf1448defe6cc7ce
- git.kernel.org/stable/c/8018d370be35e9f9ad9193a785b44179d4d55251
- git.kernel.org/stable/c/d8dbd8de9334c079c90cfdc2bac081e3b62c0d8d
- git.kernel.org/stable/c/6d7e70111b9c80a9e4cb17fe6a6c4f5470847722
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.