{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-46940","published":"2024-02-27T19:04:05.927000Z","last_modified":"2026-06-17T04:15:55.530000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-190"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.10.0","version_end_excluding":"5.10.36"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11.0","version_end_excluding":"5.11.20"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.12.0","version_end_excluding":"5.12.3"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00222,"percentile":0.07544,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2021-46940/","html_en":"/en/cve/CVE-2021-46940/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-46940","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-46940"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\ntools/power turbostat: Fix offset overflow issue in index converting\n\nThe idx_to_offset() function returns type int (32-bit signed), but\nMSR_PKG_ENERGY_STAT is u32 and would be interpreted as a negative number.\nThe end result is that it hits the if (offset < 0) check in update_msr_sum()\nwhich prevents the timer callback from updating the stat in the background when\nlong durations are used. The similar issue exists in offset_to_idx() and\nupdate_msr_sum(). Fix this issue by converting the 'int' to 'off_t' accordingly.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572a","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff","tags":["Patch"]}]}}