7.8high
PM / devfreq: Fix buffer overflow in trans_stat_show
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: PM / devfreq: Fix buffer overflow in trans_stat_show Fix buffer overflow in trans_stat_show(). Convert simple snprintf to the more secure scnprintf with size of PAGE_SIZE. Add condition checking if we are exceeding PAGE_SIZE and exit early from loop. Also add at the end a warning that we exceeded PAGE_SIZE and that stats is disabled. Return -EFBIG in the case where we don't have enough space to write the full transition table. Also document in the ABI that this function can return -EFBIG error.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from e552bbaf5b987f57c43e6981a452b8a3c700b1ae before 087de000e4f8c878c81d9dd3725f00a1d292980c, from e552bbaf5b987f57c43e6981a452b8a3c700b1ae before 796d3fad8c35ee9df9027899fb90ceaeb41b958f, from e552bbaf5b987f57c43e6981a452b8a3c700b1ae before 8a7729cda2dd276d7a3994638038fb89035b6f2c, from e552bbaf5b987f57c43e6981a452b8a3c700b1ae before a979f56aa4b93579cf0e4265ae04d7e9300fd3e8, from e552bbaf5b987f57c43e6981a452b8a3c700b1ae before eaef4650fa2050147ca25fd7ee43bc0082e03c87, from e552bbaf5b987f57c43e6981a452b8a3c700b1ae before 08e23d05fa6dc4fc13da0ccf09defdd4bbc92ff4, 3.8 Not affected: before 3.8, from 5.10.216 up to 5.10.*, from 5.15.149 up to 5.15.*, from 6.1.76 up to 6.1.*, from 6.6.15 up to 6.6.*, from 6.7.3 up to 6.7.* | CVE List |
| linux linux_kernel | from 3.8 before 5.10.216, from 5.11 before 5.15.149, from 5.16 before 6.1.76, from 6.2 before 6.6.15, from 6.7 before 6.7.3 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
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: PM / devfreq: Fix buffer overflow in trans_stat_show Fix buffer overflow in trans_stat_show(). Convert simple snprintf to the more secure scnprintf with size of PAGE_SIZE. Add condition checking if we are exceeding PAGE_SIZE and exit early from loop. Also add at the end a warning that we exceeded PAGE_SIZE and that stats is disabled. Return -EFBIG in the case where we don't have enough space to write the full transition table. Also document in the ABI that this function can return -EFBIG error.
NVD (es)
En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: PM / devfreq: Arreglar desbordamiento de búfer en trans_stat_show Arreglar desbordamiento de búfer en trans_stat_show(). Convierta snprintf simple en scnprintf más seguro con un tamaño de PAGE_SIZE. Agregue verificación de condiciones si excedemos PAGE_SIZE y salga temprano del ciclo. También agregue al final una advertencia de que excedimos PAGE_SIZE y que las estadísticas están deshabilitadas. Devuelve -EFBIG en el caso de que no tengamos suficiente espacio para escribir la tabla de transición completa. También documente en la ABI que esta función puede devolver el error -EFBIG.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52614 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2023-52614 changed 2026-10-15 | Public domain |