{ "data_version": "4.0", "data_type": "CVE", "data_format": "MITRE", "CVE_data_meta": { "ID": "CVE-2021-46940", "ASSIGNER": "cve@kernel.org", "STATE": "PUBLIC" }, "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "n/a" } ] } ] }, "affects": { "vendor": { "vendor_data": [ { "vendor_name": "Linux", "product": { "product_data": [ { "product_name": "Linux", "version": { "version_data": [ { "version_affected": "<", "version_name": "9972d5d84d76", "version_value": "ea6803ff2cd1" }, { "version_value": "not down converted", "x_cve_json_5_version_data": { "versions": [ { "version": "5.10", "status": "affected" }, { "version": "0", "lessThan": "5.10", "status": "unaffected", "versionType": "semver" }, { "version": "5.10.36", "lessThanOrEqual": "5.10.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.11.20", "lessThanOrEqual": "5.11.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.12.3", "lessThanOrEqual": "5.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.13", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "semver" } ], "defaultStatus": "affected" } } ] } } ] } } ] } }, "references": { "reference_data": [ { "url": "https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/ea6803ff2cd1a2d7d880256bf562172b708a76ff" }, { "url": "https://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/dbdf22fc825fdb1d97f23230064e0f9819471628" }, { "url": "https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572a", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/337b1546cde87fb8588ddaedf0201b769baa572a" }, { "url": "https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/13a779de4175df602366d129e41782ad7168cef0" } ] }, "generator": { "engine": "bippy-c8e10e5f6187" } }