CVE-2024-57998
OPP: add index check to assert to avoid buffer overflow in _read_freq()
Check your servers for CVE-2024-57998
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-57998 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 92fcb46659d5dbfdad0422a503e289085990a5d0, before 774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd affected from 142e17c1c2b48e3fb4f024e62ab6dee18f268694, before eb6ffa0192ba83ece1a318b956265519c5c7dcec affected from 142e17c1c2b48e3fb4f024e62ab6dee18f268694, before 7d68c20638e50d5eb4576492a7958328ae445248 affected from 142e17c1c2b48e3fb4f024e62ab6dee18f268694, before da2a6acc73933b7812c94794726e438cde39e037 affected from 142e17c1c2b48e3fb4f024e62ab6dee18f268694, before d659bc68ed489022ea33342cfbda2911a81e7a0d
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.6.76 up to and including 6.6.* unaffected from 6.12.13 up to and including 6.12.* unaffected from 6.13.2 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-57998 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-57998
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-57998
trivy image --scanners vuln IMAGE | grep CVE-2024-57998
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd git.kernel.org
- https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec git.kernel.org
- https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248 git.kernel.org
- https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037 git.kernel.org
- https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
Source: the record CVE-2024-57998 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse