CVE-2026-99876
publishedcpufreq: stats: Fix potential out-of-bounds access in deferred reset
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < d1c6da8a2206e8939d27ba0946569389308e7808 · 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < d991a62546bb98e9e87fb97ea5d62d4cb00433e1 · 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < fa2e26c8531a11071bec15bbded56e759a8025e4 · 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < 5d4b0896f954d348cda6c1ba766332ecad3898a5 · 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < 778a4553b1c6ef05dd356503a2a227c4fb449072 · 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < f5841241474fa4465d24f88860ace7683fdc6fc7 · 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < c93782c737864bcc89b98a4ba778689b62fbbcb2 · 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < 8a702989677216489e471a6f27599da53f753567 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.10 (affected) · 0 to < 5.10 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: cpufreq: stats: Fix potential out-of-bounds access in deferred reset cpufreq_stats_create_table() sets stats->last_index to -1 if policy->cur is not in the frequency table. It then stays at -1, because cpufreq_stats_record_transition() returns early on old_index == -1 before it gets to update last_index. Commit 46a310b80bc2 ("[CPUFREQ] Don't set stat->last_index to -1 if the pol->cur has incorrect value.") added that check. However, since commit 40c3bd4cfa6f ("cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()"), the stats reset is deferred to the beginning of cpufreq_stats_record_transition(), before that check, and cpufreq_stats_reset_table() ends with an unconditional cpufreq_stats_update(). So if the "reset" attribute is written while last_index is -1, the next frequency transition accesses time_in_state[-1]. Fix it by also returning early on last_index == -1 in cpufreq_stats_reset_table().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < d1c6da8a2206e8939d27ba0946569389308e7808 (affected · git)40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < d991a62546bb98e9e87fb97ea5d62d4cb00433e1 (affected · git)40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < fa2e26c8531a11071bec15bbded56e759a8025e4 (affected · git)40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < 5d4b0896f954d348cda6c1ba766332ecad3898a5 (affected · git)40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < 778a4553b1c6ef05dd356503a2a227c4fb449072 (affected · git)40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < f5841241474fa4465d24f88860ace7683fdc6fc7 (affected · git)40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < c93782c737864bcc89b98a4ba778689b62fbbcb2 (affected · git)40c3bd4cfa6fe5756344709b98611a1ddd15bf9d to < 8a702989677216489e471a6f27599da53f753567 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.10 (affected)0 to < 5.10 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/5d4b0896f954d348cda6c1ba766332ecad3898a5
- https://git.kernel.org/stable/c/778a4553b1c6ef05dd356503a2a227c4fb449072
- https://git.kernel.org/stable/c/8a702989677216489e471a6f27599da53f753567
- https://git.kernel.org/stable/c/c93782c737864bcc89b98a4ba778689b62fbbcb2
- https://git.kernel.org/stable/c/d1c6da8a2206e8939d27ba0946569389308e7808
- https://git.kernel.org/stable/c/d991a62546bb98e9e87fb97ea5d62d4cb00433e1
- https://git.kernel.org/stable/c/f5841241474fa4465d24f88860ace7683fdc6fc7
- https://git.kernel.org/stable/c/fa2e26c8531a11071bec15bbded56e759a8025e4
Provider assertions
1Linux · cna
cpufreq: stats: Fix potential out-of-bounds access in deferred reset
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 13d6fdbf98c7342cf31ed15bbe83ad48b5e81ef6f6d2876f783cc3e4ed53dd62
- Ingested
- 30 Nov 2026, 13:30:07 UTC
- Source record
- Official CVE record