Skip to content
pkgseek
Back to CVE search

CVE-2021-46940

medium · 5.5

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.

First indexed 2/27/2024View on NVD

Advisory Facts

Markdown

CVE-2021-46940 is rated MEDIUM (5.5), with 18 indexed affected package builds across 1 distributions.

Severity / Score
MEDIUM (5.5)
Affected builds
18
Affected distros
1
Distros with fixed_in
None recorded in sample
+ Embed this vulnerability status card

https://pkgseek.com/embed/security/CVE-2021-46940?locale=en

Distribution-aware status

1
Distributions
18
Package/release records
1
Vendor advisories
0
Fix versions available

Why the upstream version is not enough

Linux distributions often keep an upstream version and backport security patches into the distribution revision. PkgSeek therefore uses exact package versions and vendor advisories; a lower-looking upstream version alone does not prove that a package is vulnerable.

Affected packages

Newest affected build per package, repository source and distribution release.

18 affected package/release combinations

CNNVD cross-reference

Cached Chinese vulnerability records provide local-language classification and aliases. They do not override distribution package or backport status.