CVE-2022-50366 json
powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
published 2025-09-17 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55632
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 12%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- Linux Linux 4.9.331, 4.14.296, 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1
- linux Debian 14, Debian 13, Debian 12 6.0.3-1
debian advisories DEBIAN-CVE-2022-50366
- linux Ubuntu 18.04 LTS 4.15.0-204.215
- linux Ubuntu 20.04 LTS 5.4.0-139.156
- linux Ubuntu 22.04 LTS 5.15.0-60.66
- linux-aws Ubuntu 18.04 LTS 4.15.0-1150.163
- linux-aws Ubuntu 20.04 LTS 5.4.0-1096.104
- linux-aws Ubuntu 22.04 LTS 5.15.0-1030.34
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1100.109
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1029.36
ubuntu advisories UBUNTU-CVE-2022-50366
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/42f79dbb9514f726ff21df25f09cb0693b0b2445 commit
- git.kernel.org/stable/c/3eb0ba70376f6ee40fa843fc9cee49269370b0b3 commit
- git.kernel.org/stable/c/4ebba43384722adbd325baec3a12c572d94488eb commit
- git.kernel.org/stable/c/49a6ffdaed60f0eb52c198fafebc05994e16e305 commit
- git.kernel.org/stable/c/708b9abe1b4a2f050a483db4b7edfc446b13df1f commit
- git.kernel.org/stable/c/139bbbd01114433b80fe59f5e1330615aadf9752 commit
- git.kernel.org/stable/c/6216b685b8f48ab7b721a6fd5acbf526b41c13e8 commit
- git.kernel.org/stable/c/1d94af37565e4d3c26b0d63428e093a37d5b4c32 commit
- git.kernel.org/stable/c/2d93540014387d1c73b9ccc4d7895320df66d01b commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50366 updated cvss 5.5
kernel: powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/42f79dbb9514f726ff21df25f09cb0693b0b2445
patch
-
git.kernel.org
/stable/c/3eb0ba70376f6ee40fa843fc9cee49269370b0b3
patch
-
git.kernel.org
/stable/c/4ebba43384722adbd325baec3a12c572d94488eb
patch
-
git.kernel.org
/stable/c/49a6ffdaed60f0eb52c198fafebc05994e16e305
patch
-
git.kernel.org
/stable/c/708b9abe1b4a2f050a483db4b7edfc446b13df1f
patch
-
git.kernel.org
/stable/c/139bbbd01114433b80fe59f5e1330615aadf9752
patch
-
git.kernel.org
/stable/c/6216b685b8f48ab7b721a6fd5acbf526b41c13e8
patch
-
git.kernel.org
/stable/c/1d94af37565e4d3c26b0d63428e093a37d5b4c32
patch
-
git.kernel.org
/stable/c/2d93540014387d1c73b9ccc4d7895320df66d01b
patch
Sources
- CVE List CVE-2022-50366
- NVD CVE-2022-50366
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.