Bug 2396107 (CVE-2022-50366) - CVE-2022-50366 kernel: powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
Summary: CVE-2022-50366 kernel: powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
Keywords:
Status: NEW
Alias: CVE-2022-50366
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-17 15:01 UTC by OSIDB Bzimport
Modified: 2025-09-22 23:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-17 15:01:41 UTC
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


Note You need to log in before you can comment on or make changes to this bug.