CVE-2024-57998

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57998
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57998.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-57998
Downstream
Related
Published
2025-02-27T02:07:17.965Z
Modified
2025-11-27T02:32:28.108917Z
Summary
OPP: add index check to assert to avoid buffer overflow in _read_freq()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

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: devpmoppfindfreqexactindexed() or devpmoppfindfreqceil/floorindexed().

Add a secondary parameter to the assert function, unused for assertsingleclk() then add assertclkindex() which will check for the clock index when called from the _indexed() find functions.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2024/57xxx/CVE-2024-57998.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
92fcb46659d5dbfdad0422a503e289085990a5d0
Fixed
774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
142e17c1c2b48e3fb4f024e62ab6dee18f268694
Fixed
eb6ffa0192ba83ece1a318b956265519c5c7dcec
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
142e17c1c2b48e3fb4f024e62ab6dee18f268694
Fixed
7d68c20638e50d5eb4576492a7958328ae445248
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
142e17c1c2b48e3fb4f024e62ab6dee18f268694
Fixed
da2a6acc73933b7812c94794726e438cde39e037
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
142e17c1c2b48e3fb4f024e62ab6dee18f268694
Fixed
d659bc68ed489022ea33342cfbda2911a81e7a0d

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.76
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.13
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.2