CVE-2024-57998

Source
https://cve.org/CVERecord?id=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
2026-03-20T12:41:05.564809Z
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57998.json",
    "cna_assigner": "Linux"
}
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
Fixed
7d68c20638e50d5eb4576492a7958328ae445248
Fixed
da2a6acc73933b7812c94794726e438cde39e037
Fixed
d659bc68ed489022ea33342cfbda2911a81e7a0d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57998.json"