CVE-2021-46940
Last modified
CVE-2021-46940 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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(). EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.10.0, < 5.10.36 |
| Linux | Linux Kernel | >= 5.11.0, < 5.11.20 |
| Linux | Linux Kernel | >= 5.12.0, < 5.12.3 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-46940?
How severe is CVE-2021-46940?
How do I fix CVE-2021-46940?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-46934In the Linux kernel, the following vulnerability has been re…3.3
- CVE-2021-46935In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-46936In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-46937In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-46938In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-46939In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-46941In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-46942In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-46943In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-46944In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-46945In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-46946Rejected reason: This CVE ID has been rejected or withdrawn …
Are you affected by CVE-2021-46940?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
