{"id":"CVE-2024-57998","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:\n\nOPP: add index check to assert to avoid buffer overflow in _read_freq()\n\nPass the freq index to the assert function to make sure\nwe do not read a freq out of the opp-\u003erates[] table when called\nfrom the indexed variants:\ndev_pm_opp_find_freq_exact_indexed() or\ndev_pm_opp_find_freq_ceil/floor_indexed().\n\nAdd a secondary parameter to the assert function, unused\nfor assert_single_clk() then add assert_clk_index() which\nwill check for the clock index when called from the _indexed()\nfind functions.","modified":"2026-04-02T12:25:27.558825Z","published":"2025-02-27T02:07:17.965Z","related":["ALSA-2025:20518","SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:01972-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1","USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57998.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57998.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57998"},{"type":"PACKAGE","url":"https://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/cve-osv-conversion/osv-output/CVE-2024-57998.json"}}],"schema_version":"1.7.5"}