cbcvebase.
CVE-2021-46940
published 2024-02-27

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_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
VendorProductVersion rangeFixed in
debianlinux< linux 5.10.38-1 (bookworm)linux 5.10.38-1 (bookworm)
linuxlinux
linuxlinux>= 9972d5d84d76982606806b2ce887f70c2f8ba60a < ea6803ff2cd1a2d7d880256bf562172b708a76ffea6803ff2cd1a2d7d880256bf562172b708a76ff
linuxlinux>= 9972d5d84d76982606806b2ce887f70c2f8ba60a < dbdf22fc825fdb1d97f23230064e0f9819471628dbdf22fc825fdb1d97f23230064e0f9819471628
linuxlinux>= 9972d5d84d76982606806b2ce887f70c2f8ba60a < 337b1546cde87fb8588ddaedf0201b769baa572a337b1546cde87fb8588ddaedf0201b769baa572a
linuxlinux>= 9972d5d84d76982606806b2ce887f70c2f8ba60a < 13a779de4175df602366d129e41782ad7168cef013a779de4175df602366d129e41782ad7168cef0
linuxlinux_kernel>= 0 < 5.10.38-15.10.38-1
linuxlinux_kernel>= 0 < 5.10.38-15.10.38-1
linuxlinux_kernel>= 0 < 5.10.38-15.10.38-1
linuxlinux_kernel>= 0 < 5.10.38-15.10.38-1
linuxlinux_kernel>= 5.10.0 < 5.10.365.10.36
linuxlinux_kernel>= 5.11.0 < 5.11.205.11.20
linuxlinux_kernel>= 5.12.0 < 5.12.35.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.