{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99876",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.440Z",
        "datePublished": "2026-11-30T13:17:53.019Z",
        "dateUpdated": "2026-11-30T13:17:53.019Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:17:53.019Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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->last_index to -1 if policy->cur\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->last_index to -1 if\nthe pol->cur 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()."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/cpufreq/cpufreq_stats.c"
                    ],
                    "versions": [
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "d1c6da8a2206e8939d27ba0946569389308e7808",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "d991a62546bb98e9e87fb97ea5d62d4cb00433e1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "fa2e26c8531a11071bec15bbded56e759a8025e4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "5d4b0896f954d348cda6c1ba766332ecad3898a5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "778a4553b1c6ef05dd356503a2a227c4fb449072",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "f5841241474fa4465d24f88860ace7683fdc6fc7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "c93782c737864bcc89b98a4ba778689b62fbbcb2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "40c3bd4cfa6fe5756344709b98611a1ddd15bf9d",
                            "lessThan": "8a702989677216489e471a6f27599da53f753567",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/cpufreq/cpufreq_stats.c"
                    ],
                    "versions": [
                        {
                            "version": "5.10",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.10",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/d1c6da8a2206e8939d27ba0946569389308e7808"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d991a62546bb98e9e87fb97ea5d62d4cb00433e1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fa2e26c8531a11071bec15bbded56e759a8025e4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5d4b0896f954d348cda6c1ba766332ecad3898a5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/778a4553b1c6ef05dd356503a2a227c4fb449072"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f5841241474fa4465d24f88860ace7683fdc6fc7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c93782c737864bcc89b98a4ba778689b62fbbcb2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8a702989677216489e471a6f27599da53f753567"
                }
            ],
            "title": "cpufreq: stats: Fix potential out-of-bounds access in deferred reset",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}