CVE-2022-50366

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

HIGH
7.1
CVSS Score
Published: September 17, 2025 at 02:56 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.9.3313.13 ≤ v < 4.14.2963.13 ≤ v < 4.19.2623.13 ≤ v < 4.9.3313.13 ≤ v < 5.10.1503.13 ≤ v < 5.15.753.13 ≤ v < 5.19.173.13 ≤ v < 5.4.2203.13 ≤ v < 6.0.33.13 ≤ v < 6.14.10 ≤ v < 4.14.2964.15 ≤ v < 4.19.2624.20 ≤ v < 5.4.2205.11 ≤ v < 5.15.755.16 ≤ v < 5.19.175.5 ≤ v < 5.10.1506.0 ≤ v < 6.0.32d281d8196e38dd3a4ee9af26621ddde8329f2693.13
Vendor states this is fixed in 139bbbd01114433b80fe59f5e1330615aadf9752 (fixed)
Vendor states this is fixed in 1d94af37565e4d3c26b0d63428e093a37d5b4c32 (fixed)
Vendor states this is fixed in 2d93540014387d1c73b9ccc4d7895320df66d01b (fixed)
Vendor states this is fixed in 3eb0ba70376f6ee40fa843fc9cee49269370b0b3 (fixed)
Vendor states this is fixed in 42f79dbb9514f726ff21df25f09cb0693b0b2445 (fixed)
Vendor states this is fixed in 49a6ffdaed60f0eb52c198fafebc05994e16e305 (fixed)
Vendor states this is fixed in 4ebba43384722adbd325baec3a12c572d94488eb (fixed)
Vendor states this is fixed in 6216b685b8f48ab7b721a6fd5acbf526b41c13e8 (fixed)
Vendor states this is fixed in 708b9abe1b4a2f050a483db4b7edfc446b13df1f (fixed)
Vendor states this is fixed in 3.13 (unaffected)
Vendor states this is fixed in 4.14.296 (unaffected)
Vendor states this is fixed in 4.19.262 (unaffected)
Vendor states this is fixed in 4.9.331 (unaffected)
Vendor states this is fixed in 5.10.150 (unaffected)
Vendor states this is fixed in 5.15.75 (unaffected)
Vendor states this is fixed in 5.19.17 (unaffected)
Vendor states this is fixed in 5.4.220 (unaffected)
Vendor states this is fixed in 6.0.3 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.1HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card