# CVE-2024-57998: OPP: add index check to assert to avoid buffer overflow in _read_freq()

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-02-27T02:07:17.965Z
- Modified: 2026-08-05T11:47:18.059Z
- Weaknesses: CWE-125
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.6 before 6.6.76; from 6.7 before 6.12.13; from 6.13 before 6.13.2

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd> (patch)
- <https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec> (patch)
- <https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248> (patch)
- <https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037> (patch)
- <https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

- CVE List: [CVE-2024-57998](https://www.cve.org/CVERecord?id=CVE-2024-57998), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-57998](https://nvd.nist.gov/vuln/detail/CVE-2024-57998), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-57998 · Whole record: https://cve.day/CVE-2024-57998.json · Rebuilt by cve.day 2026-11-25T22:58:52.094Z
