CVE-2021-46940: tools/power turbostat: Fix offset overflow issue in index converting
In the Linux kernel, the following vulnerability has been resolved:
tools/power turbostat: Fix offset overflow issue in index converting
The idx_to_offset() function returns type int (32-bit signed), but
MSR_PKG_ENERGY_STAT is u32 and would be interpreted as a negative number.
The end result is that it hits the if (offset < 0) check in update_msr_sum()
which prevents the timer callback from updating the stat in the background when
long durations are used. The similar issue exists in offset_to_idx() and
update_msr_sum(). Fix this issue by converting the 'int' to 'off_t' accordingly.
Security readout for executives and security teams
Plain-English summary
This CVE concerns Linux turbostat, a power and CPU statistics tool, not a network-facing service. A signed integer overflow can cause long-running measurements to stop updating one energy statistic. Based on the supplied sources, the business impact appears to be monitoring accuracy, not system compromise.
Executive priority
Handle through normal patch management unless turbostat data drives operational or financial decisions. There is no supplied evidence of active exploitation or direct compromise risk, but unreliable telemetry can still affect planning and incident analysis.
Technical view
idx_to_offset() returned a 32-bit signed int while MSR_PKG_ENERGY_STAT is u32, causing some offsets to be interpreted as negative. update_msr_sum() then rejects the value, preventing background statistic updates during long-duration turbostat runs. Related conversions in offset_to_idx() and update_msr_sum() were changed to off_t.
Likely exposure
Exposure is most likely where affected Linux versions use turbostat for long-running CPU package energy or power telemetry. The source marks Linux 5.10, 5.10.36, 5.11.20, 5.12.3, and 5.13 as affected. It does not identify remote exposure or privilege-impacting attack paths.
Exploitation context
The bundle provides no CVSS score, CWE, exploit report, or CISA KEV listing. There is no evidence here of active exploitation. The described failure mode is incorrect or missing telemetry updates under long durations, which limits direct attacker value based on available evidence.
Researcher notes
The source evidence is narrow: it describes a type-conversion bug and stable kernel fixes. It does not establish exploitability beyond telemetry failure. Validate by code provenance and package advisory mapping, not by assuming all Linux systems are materially exposed.
Mitigation direction
Update to a vendor kernel or turbostat package containing the referenced stable fixes.
Check Linux distribution advisories for the exact fixed package version in your environment.
Prioritize systems relying on turbostat telemetry for capacity, billing, or operational decisions.
Document any monitoring blind spots caused by affected long-duration turbostat runs.
Validation and detection
Inventory Linux versions and turbostat package sources on monitored hosts.
Confirm whether the stable fix commits are present in your kernel source or package changelog.
Review long-duration turbostat output for missing package energy statistic updates.
Verify vendor advisories before treating a build as fixed.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-46940 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.