CVE-2026-99876: cpufreq: stats: Fix potential out-of-bounds access in deferred reset
cpufreq: stats: Fix potential out-of-bounds access in deferred reset
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In cpufreq_stats_record_transition(), return early when last_index == -1 before updating last_index or accessing time_in_state.
Event History
Frequently Asked Questions
What conditions are required to trigger the out-of-bounds access?
The CPU frequency policy's current frequency must not be present in its frequency table, causing stats->last_index to remain -1. A write to the cpufreq stats "reset" attribute must then occur before the next frequency transition.
What component is affected?
The issue is in the Linux kernel cpufreq statistics code, specifically its deferred statistics reset handling. The invalid access occurs when the subsequent transition causes an update of time_in_state using the -1 index.
How is the issue fixed?
The fix makes cpufreq_stats_reset_table() return early when last_index is -1, preventing the unconditional statistics update from indexing time_in_state with -1.