CVE-2022-50366

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

7.1 high EPSS 0.23%

Published 17 Sep 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50366

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50366 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Severity (CVSS)

7.1 high CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 14 Jan 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 42f79dbb9514f726ff21df25f09cb0693b0b2445
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 3eb0ba70376f6ee40fa843fc9cee49269370b0b3
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 4ebba43384722adbd325baec3a12c572d94488eb
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 49a6ffdaed60f0eb52c198fafebc05994e16e305
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 708b9abe1b4a2f050a483db4b7edfc446b13df1f
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 139bbbd01114433b80fe59f5e1330615aadf9752
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 6216b685b8f48ab7b721a6fd5acbf526b41c13e8
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 1d94af37565e4d3c26b0d63428e093a37d5b4c32
affected from 2d281d8196e38dd3a4ee9af26621ddde8329f269, before 2d93540014387d1c73b9ccc4d7895320df66d01b
Other versions: unaffected
Linux
affected 3.13
unaffected before 3.13
unaffected from 4.9.331 up to and including 4.9.*
unaffected from 4.14.296 up to and including 4.14.*
unaffected from 4.19.262 up to and including 4.19.*
unaffected from 5.4.220 up to and including 5.4.*
unaffected from 5.10.150 up to and including 5.10.*
unaffected from 5.15.75 up to and including 5.15.*
unaffected from 5.19.17 up to and including 5.19.*
unaffected from 6.0.3 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50366 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50366

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50366
trivy image --scanners vuln IMAGE | grep CVE-2022-50366

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50366 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.