{"id":"CVE-2021-46940","published":"2024-02-27T18:40:28Z","modified":"2026-05-11T13:44:51Z","title":"tools/power turbostat: Fix offset overflow issue in index converting","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00222,"percentile":0.07557,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff","tags":[]},{"url":"https://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628","tags":[]},{"url":"https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572a","tags":[]},{"url":"https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0","tags":[]}],"priority":{"score":1.5,"factors":[{"name":"EPSS percentile","points":1.51}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 9972d5d84d76982606806b2ce887f70c2f8ba60a, < ea6803ff2cd1a2d7d880256bf562172b708a76ff",">= 9972d5d84d76982606806b2ce887f70c2f8ba60a, < dbdf22fc825fdb1d97f23230064e0f9819471628",">= 9972d5d84d76982606806b2ce887f70c2f8ba60a, < 337b1546cde87fb8588ddaedf0201b769baa572a",">= 9972d5d84d76982606806b2ce887f70c2f8ba60a, < 13a779de4175df602366d129e41782ad7168cef0"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-05T20:11:09.167869Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33588","exploited":false,"provenance":"source"}}