{"id":"CVE-2026-99876","summary":"cpufreq: stats: Fix potential out-of-bounds access in deferred reset","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpufreq: stats: Fix potential out-of-bounds access in deferred reset\n\ncpufreq_stats_create_table() sets stats-\u003elast_index to -1 if policy-\u003ecur\nis not in the frequency table. It then stays at -1, because\ncpufreq_stats_record_transition() returns early on old_index == -1 before\nit gets to update last_index.\n\nCommit 46a310b80bc2 (\"[CPUFREQ] Don't set stat-\u003elast_index to -1 if\nthe pol-\u003ecur has incorrect value.\") added that check. However, since\ncommit 40c3bd4cfa6f (\"cpufreq: stats: Defer stats update to\ncpufreq_stats_record_transition()\"), the stats reset is deferred to the\nbeginning of cpufreq_stats_record_transition(), before that check, and\ncpufreq_stats_reset_table() ends with an unconditional\ncpufreq_stats_update(). So if the \"reset\" attribute is written while\nlast_index is -1, the next frequency transition accesses\ntime_in_state[-1].\n\nFix it by also returning early on last_index == -1 in\ncpufreq_stats_reset_table().","modified":"2026-11-30T15:02:31.916851100Z","published":"2026-11-30T13:17:53.019Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99876.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d4b0896f954d348cda6c1ba766332ecad3898a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/778a4553b1c6ef05dd356503a2a227c4fb449072"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a702989677216489e471a6f27599da53f753567"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c93782c737864bcc89b98a4ba778689b62fbbcb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1c6da8a2206e8939d27ba0946569389308e7808"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d991a62546bb98e9e87fb97ea5d62d4cb00433e1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f5841241474fa4465d24f88860ace7683fdc6fc7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fa2e26c8531a11071bec15bbded56e759a8025e4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99876.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99876"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"40c3bd4cfa6fe5756344709b98611a1ddd15bf9d"},{"fixed":"d1c6da8a2206e8939d27ba0946569389308e7808"},{"fixed":"d991a62546bb98e9e87fb97ea5d62d4cb00433e1"},{"fixed":"fa2e26c8531a11071bec15bbded56e759a8025e4"},{"fixed":"5d4b0896f954d348cda6c1ba766332ecad3898a5"},{"fixed":"778a4553b1c6ef05dd356503a2a227c4fb449072"},{"fixed":"f5841241474fa4465d24f88860ace7683fdc6fc7"},{"fixed":"c93782c737864bcc89b98a4ba778689b62fbbcb2"},{"fixed":"8a702989677216489e471a6f27599da53f753567"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99876.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99876.json"}}],"schema_version":"1.9.2"}