CVE-2022-50366

powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue

High · published September 17, 2025

CVSS v3.1
7.1
EPSS
0%
Percentile
11.5
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue

When value < time_unit, the parameter of ilog2() will be zero and

the return value is -1. u64(-1) is too large for shift exponent

and then will trigger shift-out-of-bounds:

shift exponent 18446744073709551615 is too large for 32-bit type 'int'

Call Trace:

rapl_compute_time_window_core

rapl_write_data_raw

set_time_window

store_constraint_time_window_us

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00218 · 11.5th percentile
Published
2025-09-17T14:56Z
EPSS history
Timeline
  • 17 SEP 14:56Z
    powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
    cvelistv5