{"id":"CVE-2022-50366","summary":"powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npowercap: intel_rapl: fix UBSAN shift-out-of-bounds issue\n\nWhen value \u003c time_unit, the parameter of ilog2() will be zero and\nthe return value is -1. u64(-1) is too large for shift exponent\nand then will trigger shift-out-of-bounds:\n\nshift exponent 18446744073709551615 is too large for 32-bit type 'int'\nCall Trace:\n rapl_compute_time_window_core\n rapl_write_data_raw\n set_time_window\n store_constraint_time_window_us","modified":"2026-04-02T08:28:27.019825Z","published":"2025-09-17T14:56:17.441Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50366.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/139bbbd01114433b80fe59f5e1330615aadf9752"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1d94af37565e4d3c26b0d63428e093a37d5b4c32"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2d93540014387d1c73b9ccc4d7895320df66d01b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3eb0ba70376f6ee40fa843fc9cee49269370b0b3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/42f79dbb9514f726ff21df25f09cb0693b0b2445"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49a6ffdaed60f0eb52c198fafebc05994e16e305"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ebba43384722adbd325baec3a12c572d94488eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6216b685b8f48ab7b721a6fd5acbf526b41c13e8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/708b9abe1b4a2f050a483db4b7edfc446b13df1f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50366.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50366"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2d281d8196e38dd3a4ee9af26621ddde8329f269"},{"fixed":"42f79dbb9514f726ff21df25f09cb0693b0b2445"},{"fixed":"3eb0ba70376f6ee40fa843fc9cee49269370b0b3"},{"fixed":"4ebba43384722adbd325baec3a12c572d94488eb"},{"fixed":"49a6ffdaed60f0eb52c198fafebc05994e16e305"},{"fixed":"708b9abe1b4a2f050a483db4b7edfc446b13df1f"},{"fixed":"139bbbd01114433b80fe59f5e1330615aadf9752"},{"fixed":"6216b685b8f48ab7b721a6fd5acbf526b41c13e8"},{"fixed":"1d94af37565e4d3c26b0d63428e093a37d5b4c32"},{"fixed":"2d93540014387d1c73b9ccc4d7895320df66d01b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50366.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}