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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-27 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-57998, DEBIAN-CVE-2024-57998
- Record: https://cvemate.com/vulnerability/CVE-2024-57998 · JSON: https://cvemate.com/vulnerability/CVE-2024-57998/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.241%, percentile 16.328%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 109)

- debian linux (Debian): \< 6.1.129-1 \| \< 6.12.13-1
- ubuntu linux (Ubuntu): \< 6.8.0-64.67
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1032.34
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1032.34~22.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1034.39
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.11 (Ubuntu): \< 6.11.0-1015.15~24.04.1

## References (first 20 of 22)

- <https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd>
- <https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec>
- <https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248>
- <https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037>
- <https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- <https://ubuntu.com/security/CVE-2024-57998>
- <https://www.cve.org/CVERecord?id=CVE-2024-57998>
- <https://git.kernel.org/linus/d659bc68ed489022ea33342cfbda2911a81e7a0d>
- <https://ubuntu.com/security/notices/USN-7521-1>
- <https://ubuntu.com/security/notices/USN-7521-2>
- <https://ubuntu.com/security/notices/USN-7521-3>
- <https://ubuntu.com/security/notices/USN-7651-1>
- <https://ubuntu.com/security/notices/USN-7652-1>
- <https://ubuntu.com/security/notices/USN-7653-1>
- <https://ubuntu.com/security/notices/USN-7651-2>
- <https://ubuntu.com/security/notices/USN-7651-3>
- <https://ubuntu.com/security/notices/USN-7651-4>
- <https://ubuntu.com/security/notices/USN-7651-5>
- <https://ubuntu.com/security/notices/USN-7651-6>

---

Data as of 2026-12-05T05:11:15.573Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
