CVE-2024-57998

OPP: add index check to assert to avoid buffer overflow in _read_freq()

HIGH
7.8
CVSS Score
Published: February 27, 2025 at 02:07 AM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.13 ≤ v < 6.13.26.6 ≤ v < 6.12.136.6 ≤ v < 6.13.26.6 ≤ v < 6.146.6 ≤ v < 6.6.766.7 ≤ v < 6.12.13142e17c1c2b48e3fb4f024e62ab6dee18f2686946.692fcb46659d5dbfdad0422a503e289085990a5d0
Vendor states this is fixed in 774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd (fixed)
Vendor states this is fixed in 7d68c20638e50d5eb4576492a7958328ae445248 (fixed)
Vendor states this is fixed in d659bc68ed489022ea33342cfbda2911a81e7a0d (fixed)
Vendor states this is fixed in da2a6acc73933b7812c94794726e438cde39e037 (fixed)
Vendor states this is fixed in eb6ffa0192ba83ece1a318b956265519c5c7dcec (fixed)
Vendor states this is fixed in 6.12.13 (unaffected)
Vendor states this is fixed in 6.13.2 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.76 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card