CVE-2024-57998·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: OPP: add index check to assert to avoid buffer overflow in _read_freq() 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: dev_pm_opp_find_freq_exact_indexed() or dev_pm_opp_find_freq_ceil/floor_indexed(). Add a secondary parameter to the assert function, unused for assert_single_clk() then add assert_clk_index() which will check for the clock index when called from the _indexed() find functions.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 10% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2024-57998 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.13
Until: 6.13.2
Fixed in: 6.13.2
How to fix this CVE
Update your Linux kernel to version 6.13.2 or later to patch a buffer overflow vulnerability in the OPP (Operating Performance Points) frequency lookup functions. The vulnerability exists in indexed frequency-finding operations that fail to validate array bounds, potentially allowing out-of-bounds memory reads. Apply kernel updates through your distribution's package manager and reboot your system to activate the patched kernel.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version with: uname -r — compare the output against the affected range 6.13.0 through 6.13.1
- Verify OPP support in your kernel by checking: grep -i 'CONFIG_PM_OPP' /boot/config-$(uname -r) — if set to 'y', the vulnerable code path may be present
- Search kernel logs for OPP-related warnings: sudo journalctl -b | grep -i 'opp\|freq' — look for memory access anomalies or assertion failures
- Confirm the patch has been applied by checking kernel version with uname -r — should show 6.13.2 or later
FAQ
What is CVE-2024-57998?
A buffer overflow vulnerability in the Linux kernel's OPP (Operating Performance Points) subsystem where frequency lookup operations using indexed variants fail to validate array bounds before accessing the opp->rates[] table, potentially allowing out-of-bounds memory reads.
Is CVE-2024-57998 being actively exploited?
No, there is no evidence of active exploitation or public exploits available for this vulnerability at this time.
What versions of Kernel are affected by CVE-2024-57998?
Linux kernel versions 6.13.0 through 6.13.1 are affected. Version 6.13.2 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-57998?
Run 'uname -r' and check if the output shows kernel version 6.13.0 or 6.13.1. If so, your system is vulnerable and requires a kernel update to 6.13.2 or later.
Does Defensia detect CVE-2024-57998?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-57998 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/774dd6f0f0a61c9c3848e025d7d9eeed1a7ca4cd
- https://git.kernel.org/stable/c/7d68c20638e50d5eb4576492a7958328ae445248
- https://git.kernel.org/stable/c/d659bc68ed489022ea33342cfbda2911a81e7a0d
- https://git.kernel.org/stable/c/da2a6acc73933b7812c94794726e438cde39e037
- https://git.kernel.org/stable/c/eb6ffa0192ba83ece1a318b956265519c5c7dcec
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57998. Free for 1 server.
Get started free