{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50366","id":"CVE-2022-50366","title":"powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npowercap: intel_rapl: fix UBSAN shift-out-of-bounds issue\n\nWhen value < 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_t","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\npowercap: intel_rapl: fix UBSAN shift-out-of-bounds issue\n\nWhen value < 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","published":"2025-09-17T14:56:17.441Z","updated":"2026-10-28T02:30:20.668618820Z","reserved":"2025-09-17T14:53:06.995Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"42f79dbb9514f726ff21df25f09cb0693b0b2445","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"3eb0ba70376f6ee40fa843fc9cee49269370b0b3","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"4ebba43384722adbd325baec3a12c572d94488eb","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"49a6ffdaed60f0eb52c198fafebc05994e16e305","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"708b9abe1b4a2f050a483db4b7edfc446b13df1f","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"139bbbd01114433b80fe59f5e1330615aadf9752","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"6216b685b8f48ab7b721a6fd5acbf526b41c13e8","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"1d94af37565e4d3c26b0d63428e093a37d5b4c32","status":"affected","versionType":"git"},{"version":"2d281d8196e38dd3a4ee9af26621ddde8329f269","lessThan":"2d93540014387d1c73b9ccc4d7895320df66d01b","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.13","status":"affected"},{"version":"0","lessThan":"3.13","status":"unaffected","versionType":"semver"},{"version":"4.9.331","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.296","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.262","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.220","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.150","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.75","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.17","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0.3","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/42f79dbb9514f726ff21df25f09cb0693b0b2445","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3eb0ba70376f6ee40fa843fc9cee49269370b0b3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4ebba43384722adbd325baec3a12c572d94488eb","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/49a6ffdaed60f0eb52c198fafebc05994e16e305","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/708b9abe1b4a2f050a483db4b7edfc446b13df1f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/139bbbd01114433b80fe59f5e1330615aadf9752","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6216b685b8f48ab7b721a6fd5acbf526b41c13e8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1d94af37565e4d3c26b0d63428e093a37d5b4c32","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2d93540014387d1c73b9ccc4d7895320df66d01b","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50366.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50366","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00226,"epssPercentile":0.13468,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50366","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50366","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50366","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50366","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}