CVE-2021-46940
published 2024-02-27CVE-2021-46940: In the Linux kernel, the following vulnerability has been resolved: tools/power turbostat: Fix offset overflow issue in index converting The idx_to_offset()…
PriorityP421medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.22%
12.9th percentile
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.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.10.38-1 (bookworm) | linux 5.10.38-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 9972d5d84d76982606806b2ce887f70c2f8ba60a < ea6803ff2cd1a2d7d880256bf562172b708a76ff | ea6803ff2cd1a2d7d880256bf562172b708a76ff |
| linux | linux | >= 9972d5d84d76982606806b2ce887f70c2f8ba60a < dbdf22fc825fdb1d97f23230064e0f9819471628 | dbdf22fc825fdb1d97f23230064e0f9819471628 |
| linux | linux | >= 9972d5d84d76982606806b2ce887f70c2f8ba60a < 337b1546cde87fb8588ddaedf0201b769baa572a | 337b1546cde87fb8588ddaedf0201b769baa572a |
| linux | linux | >= 9972d5d84d76982606806b2ce887f70c2f8ba60a < 13a779de4175df602366d129e41782ad7168cef0 | 13a779de4175df602366d129e41782ad7168cef0 |
| linux | linux_kernel | >= 0 < 5.10.38-1 | 5.10.38-1 |
| linux | linux_kernel | >= 0 < 5.10.38-1 | 5.10.38-1 |
| linux | linux_kernel | >= 0 < 5.10.38-1 | 5.10.38-1 |
| linux | linux_kernel | >= 0 < 5.10.38-1 | 5.10.38-1 |
| linux | linux_kernel | >= 5.10.0 < 5.10.36 | 5.10.36 |
| linux | linux_kernel | >= 5.11.0 < 5.11.20 | 5.11.20 |
| linux | linux_kernel | >= 5.12.0 < 5.12.3 | 5.12.3 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-3whp-4394-49gc: In the Linux kernel, the following vulnerability has been resolved:
tools/power turbostat: Fix offset overflow issue in index converting
The idx_to_
ghsa_unreviewed·2024-02-27
CVE-2021-46940 [MEDIUM] CWE-190 GHSA-3whp-4394-49gc: In the Linux kernel, the following vulnerability has been resolved:
tools/power turbostat: Fix offset overflow issue in index converting
The idx_to_
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.
OSV
CVE-2021-46940: In the Linux kernel, the following vulnerability has been resolved: tools/power turbostat: Fix offset overflow issue in index converting The idx_to_of
osv·2024-02-27·CVSS 5.5
CVE-2021-46940 [MEDIUM] CVE-2021-46940: In the Linux kernel, the following vulnerability has been resolved: tools/power turbostat: Fix offset overflow issue in index converting The idx_to_of
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.
Red Hat
kernel: tools/power turbostat: Fix offset overflow issue in index converting
vendor_redhat·2024-02-27·CVSS 5.5
CVE-2021-46940 [MEDIUM] CWE-190 kernel: tools/power turbostat: Fix offset overflow issue in index converting
kernel: 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.
Statement: Red Hat Product Security does not consider this to be a vulnerability.
Package: kernel (Red Hat Enterprise Linux 6) - Ou
Debian
CVE-2021-46940: linux - In the Linux kernel, the following vulnerability has been resolved: tools/power...
vendor_debian·2021·CVSS 5.5
CVE-2021-46940 [MEDIUM] CVE-2021-46940: linux - In the Linux kernel, the following vulnerability has been resolved: tools/power...
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.
Scope: local
bookworm: resolved (fixed in 5.10.38-1)
bullseye: resolved (fixed in 5.10.38-1)
forky: resolved (fixed in 5.10.38-1)
sid: resolved (fixed in 5.10.38-1)
trixie: resolved (fixed in 5.10.38-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572ahttps://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ffhttps://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572ahttps://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff
2024-02-27
Published