7.1high
media: av7110: prevent underflow in write_ts_to_decoder()
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: media: av7110: prevent underflow in write_ts_to_decoder() The buf[4] value comes from the user via ts_play(). It is a value in the u8 range. The final length we pass to av7110_ipack_instant_repack() is "len - (buf[4] + 1) - 4" so add a check to ensure that the length is not negative. It's not clear that passing a negative len value does anything bad necessarily, but it's not best practice. With the new bounds checking the "if (!len)" condition is no longer possible or required so remove that.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before 6680af5be9f08d830567e9118f76d3e64684db8f, from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before 6606e2404ee9e20a3ae5b42fc3660d41b739ed3e, from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before 620b983589e0223876bf1463b01100a9c67b56ba, from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before 86ba65e5357bfbb6c082f68b265a292ee1bdde1d, from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before ca4ce92e3ec9fd3c7c936b912b95c53331d5159c, from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before 423350af9e27f005611bd881b1df2cab66de943d, from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before 77eeb4732135c18c2fdfab80839645b393f3e774, from fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf before 7b93ab60fe9ed04be0ff155bc30ad39dea23e22b and 2 more Not affected: before 2.6.31, from 4.14.315 up to 4.14.*, from 4.19.283 up to 4.19.*, from 5.4.243 up to 5.4.*, from 5.10.211 up to 5.10.*, from 5.15.111 up to 5.15.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: media: av7110: prevent underflow in write_ts_to_decoder() The buf[4] value comes from the user via ts_play(). It is a value in the u8 range. The final length we pass to av7110_ipack_instant_repack() is "len - (buf[4] + 1) - 4" so add a check to ensure that the length is not negative. It's not clear that passing a negative len value does anything bad necessarily, but it's not best practice. With the new bounds checking the "if (!len)" condition is no longer possible or required so remove that.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: av7110: evitar desbordamiento negativo en write_ts_to_decoder() El valor de buf[4] proviene del usuario a través de ts_play(). Es un valor en el rango u8. La longitud final que pasamos a av7110_ipack_instant_repack() es 'len - (buf[4] + 1) - 4', por lo que se añade una comprobación para asegurar que la longitud no sea negativa. No está claro que pasar un valor 'len' negativo cause algo malo necesariamente, pero no es una buena práctica. Con la nueva comprobación de límites, la condición 'if (!len)' ya no es posible ni necesaria, por lo que se elimina.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54284 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2023-54284 changed 2026-08-04 | Public domain |