CVE Database›Document archive›CVE-2024-57998

CVE-2024-57998

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

Loading…

Severity

Moderate

Red Hat Product Security

7.1

CVSS 3.1

Review impact separately from score.

Published · February 27, 2025

Updated · November 4, 2026

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.

Statement

This vulnerability is evaluated as having Moderate impact because it requires local access and is limited to hardware configurations utilizing multi-clock Operating Performance Points (OPP) drivers. An unprivileged local user triggering invalid frequency queries could induce an out-of-bounds read, leading to a kernel crash or potential leakage of kernel memory. Standard enterprise server deployments are generally unaffected as they do not typically expose or use indexed OPP clock routines.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

CWE-120 · Buffer Copy without Checking Size of Input