{"id":"CVE-2024-57998","aliases":["CVE-2024-57998"],"related":[],"kind":"vulnerability","state":"published","title":"OPP: add index check to assert to avoid buffer overflow in _read_freq()","summary":"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->rates[] 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->rates[] 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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: OPP: agregar comprobación de índice a assert para evitar el desbordamiento de búfer en _read_freq() Pasar el índice freq a la función assert para asegurarnos de que no leemos un freq de la tabla opp-&gt;rates[] cuando se llama desde las variantes indexadas: dev_pm_opp_find_freq_exact_indexed() o dev_pm_opp_find_freq_ceil/floor_indexed(). Agregar un parámetro secundario a la función assert, no utilizado para assert_single_clk() y luego agregar assert_clk_index() que verificará el índice del reloj cuando se llame desde las funciones de búsqueda _indexed().","source":"nvd"}],"published":"2025-02-27T02:07:17.965Z","modified":"2026-08-05T11:47:18.059Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"92fcb46659d5dbfdad0422a503e289085990a5d0","fixed":"774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd","status":"affected"},{"type":"git","introduced":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","fixed":"eb6ffa0192ba83ece1a318b956265519c5c7dcec","status":"affected"},{"type":"git","introduced":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","fixed":"7d68c20638e50d5eb4576492a7958328ae445248","status":"affected"},{"type":"git","introduced":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","fixed":"da2a6acc73933b7812c94794726e438cde39e037","status":"affected"},{"type":"git","introduced":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","fixed":"d659bc68ed489022ea33342cfbda2911a81e7a0d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.76","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.13","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.2","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6","fixed":"6.6.76"},{"status":"affected","introduced":"6.7","fixed":"6.12.13"},{"status":"affected","introduced":"6.13","fixed":"6.13.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-57998","url":"https://www.cve.org/CVERecord?id=CVE-2024-57998","licence":"CVE Terms of Use","modified":"2026-08-05T11:47:18.059Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-57998","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57998","licence":"Public domain","modified":"2026-08-04T11:22:35.817Z"}],"updatedAt":"2026-11-25T22:58:52.094Z","epss":{"score":0.00241,"percentile":0.16309,"date":"2026-12-01T12:00:22.000Z"}}