7.3high
OPP: add index check to assert to avoid buffer overflow in _read_freq()
- Severity
- 7.3high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: OPP: add index check to assert to avoid buffer overflow in _read_freq() Pass the freq index to the assert function to make sure we do not read a freq out of the opp->rates[] table when called from the indexed variants: dev_pm_opp_find_freq_exact_indexed() or dev_pm_opp_find_freq_ceil/floor_indexed(). Add a secondary parameter to the assert function, unused for assert_single_clk() then add assert_clk_index() which will check for the clock index when called from the _indexed() find functions.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 92fcb46659d5dbfdad0422a503e289085990a5d0 before 774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd, from 142e17c1c2b48e3fb4f024e62ab6dee18f268694 before eb6ffa0192ba83ece1a318b956265519c5c7dcec, from 142e17c1c2b48e3fb4f024e62ab6dee18f268694 before 7d68c20638e50d5eb4576492a7958328ae445248, from 142e17c1c2b48e3fb4f024e62ab6dee18f268694 before da2a6acc73933b7812c94794726e438cde39e037, from 142e17c1c2b48e3fb4f024e62ab6dee18f268694 before d659bc68ed489022ea33342cfbda2911a81e7a0d, 6.6 Not affected: before 6.6, from 6.6.76 up to 6.6.*, from 6.12.13 up to 6.12.*, from 6.13.2 up to 6.13.*, from 6.14 up to * | CVE List |
| linux linux_kernel | from 6.6 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2 | NVD |
All scores
| Linux | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/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
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: OPP: add index check to assert to avoid buffer overflow in _read_freq() Pass the freq index to the assert function to make sure we do not read a freq out of the opp->rates[] table when called from the indexed variants: dev_pm_opp_find_freq_exact_indexed() or dev_pm_opp_find_freq_ceil/floor_indexed(). Add a secondary parameter to the assert function, unused for assert_single_clk() then add assert_clk_index() which will check for the clock index when called from the _indexed() find functions.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: OPP: agregar comprobación de índice a assert para evitar el desbordamiento de búfer en _read_freq() Pasar el índice freq a la función assert para asegurarnos de que no leemos un freq de la tabla opp->rates[] cuando se llama desde las variantes indexadas: dev_pm_opp_find_freq_exact_indexed() o dev_pm_opp_find_freq_ceil/floor_indexed(). Agregar un parámetro secundario a la función assert, no utilizado para assert_single_clk() y luego agregar assert_clk_index() que verificará el índice del reloj cuando se llame desde las funciones de búsqueda _indexed().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-57998 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-57998 changed 2026-08-04 | Public domain |