{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-57998","id":"CVE-2024-57998","title":"OPP: add index check to assert to avoid buffer overflow in _read_freq()","description":"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 t","descriptionLong":"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.","published":"2025-02-27T02:07:17.965Z","updated":"2026-10-28T02:30:40.083473532Z","reserved":"2025-02-27T02:04:28.915Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"92fcb46659d5dbfdad0422a503e289085990a5d0","lessThan":"774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd","status":"affected","versionType":"git"},{"version":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","lessThan":"eb6ffa0192ba83ece1a318b956265519c5c7dcec","status":"affected","versionType":"git"},{"version":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","lessThan":"7d68c20638e50d5eb4576492a7958328ae445248","status":"affected","versionType":"git"},{"version":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","lessThan":"da2a6acc73933b7812c94794726e438cde39e037","status":"affected","versionType":"git"},{"version":"142e17c1c2b48e3fb4f024e62ab6dee18f268694","lessThan":"d659bc68ed489022ea33342cfbda2911a81e7a0d","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.6.76","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.13","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13.2","lessThanOrEqual":"6.13.*","status":"unaffected","versionType":"semver"},{"version":"6.14","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57998.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57998","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00241,"epssPercentile":0.15353,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-57998","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57998","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-57998","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-57998","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}