CVE-2021-46940
Intel Linux turbostat Integer Overflow Vulnerability
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.
INFO
Published Date :
Feb. 27, 2024, 7:04 p.m.
Last Modified :
April 10, 2024, 7:44 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-46940
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-46940
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-46940
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 28, 2024
Action Type Old Value New Value -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Apr. 10, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0 No Types Assigned https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0 Patch Changed Reference Type https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572a No Types Assigned https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572a Patch Changed Reference Type https://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628 No Types Assigned https://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628 Patch Changed Reference Type https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff No Types Assigned https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff Patch Added CWE NIST CWE-190 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10.0 up to (excluding) 5.10.36 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11.0 up to (excluding) 5.11.20 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.12.0 up to (excluding) 5.12.3 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Feb. 27, 2024
Action Type Old Value New Value Added 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. Added Reference Linux https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff [No types assigned] Added Reference Linux https://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628 [No types assigned] Added Reference Linux https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572a [No types assigned] Added Reference Linux https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-46940
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-46940
weaknesses.