7.8high
media: dvb-frontends: avoid stack overflow warnings with clang
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: media: dvb-frontends: avoid stack overflow warnings with clang A previous patch worked around a KASAN issue in stv0367, now a similar problem showed up with clang: drivers/media/dvb-frontends/stv0367.c:1222:12: error: stack frame size (3624) exceeds limit (2048) in 'stv0367ter_set_frontend' [-Werror,-Wframe-larger-than] 1214 | static int stv0367ter_set_frontend(struct dvb_frontend *fe) Rework the stv0367_writereg() function to be simpler and mark both register access functions as noinline_for_stack so the temporary i2c_msg structures do not get duplicated on the stack when KASAN_STACK is enabled.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before c073c8cede5abd3836e83d70d72606d11d0759d4, from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before fa8b472952ef46eb632825051078c21ce0cafe55, from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before fb07104a02e87c06c39914d13ed67fd8f839ca82, from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before d20b64f156de5d10410963fe238d82a4e7e97a2f, from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before 107052a8cfeff3a97326277192b4f052e4860a8a, from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before 8fad9c5bb00d3a9508d18bbfe832e33a47377730, from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before d6b4895197ab5a47cb81c6852d49320b05052960, from 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e before ed514ecf4f29c80a2f09ae3c877059b401efe893 and 10 more Not affected: before 4.16, from 4.19.311 up to 4.19.*, from 5.4.273 up to 5.4.*, from 5.10.214 up to 5.10.*, from 5.15.153 up to 5.15.*, from 6.1.83 up to 6.1.* | CVE List |
| linux linux_kernel | from 4.4.168 before 4.5, from 4.9.82 before 4.10, from 4.14.20 before 4.15, from 4.15.4 before 4.19.311, from 4.20 before 5.4.273, from 5.5 before 5.10.214, from 5.11 before 5.15.153, from 5.16 before 6.1.83 and 3 more | NVD |
| debian debian_linux | 10.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: media: dvb-frontends: avoid stack overflow warnings with clang A previous patch worked around a KASAN issue in stv0367, now a similar problem showed up with clang: drivers/media/dvb-frontends/stv0367.c:1222:12: error: stack frame size (3624) exceeds limit (2048) in 'stv0367ter_set_frontend' [-Werror,-Wframe-larger-than] 1214 | static int stv0367ter_set_frontend(struct dvb_frontend *fe) Rework the stv0367_writereg() function to be simpler and mark both register access functions as noinline_for_stack so the temporary i2c_msg structures do not get duplicated on the stack when KASAN_STACK is enabled.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: dvb-frontends: evita advertencias de desbordamiento de pila con clang. Un parche anterior solucionó un problema de KASAN en stv0367, ahora apareció un problema similar con clang: drivers/media/dvb- frontends/stv0367.c:1222:12: error: el tamaño del marco de pila (3624) excede el límite (2048) en 'stv0367ter_set_frontend' [-Werror,-Wframe-larger-than] 1214 | static int stv0367ter_set_frontend(struct dvb_frontend *fe) Vuelva a trabajar la función stv0367_writereg() para que sea más simple y marque ambas funciones de acceso a registros como noinline_for_stack para que las estructuras temporales i2c_msg no se dupliquen en la pila cuando KASAN_STACK esté habilitado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27075 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2024-27075 changed 2026-06-17 | Public domain |