powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
Published Sep 17, 2025
7.1
HIGHCVSS 3.1
EPSS 0.21%
Description
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 products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 3.13StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<3.13
- Version 4.14.296StatusunaffectedConstraints<=4.14.*
- Version 4.19.262StatusunaffectedConstraints<=4.19.*
- Version 4.9.331StatusunaffectedConstraints<=4.9.*
- Version 5.10.150StatusunaffectedConstraints<=5.10.*
- Version 5.15.75StatusunaffectedConstraints<=5.15.*
- Version 5.19.17StatusunaffectedConstraints<=5.19.*
- Version 5.4.220StatusunaffectedConstraints<=5.4.*
- Version 6.0.3StatusunaffectedConstraints<=6.0.*
- Version 6.1StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- < 4.9.331
- ≥ 4.10 · < 4.14.296
- ≥ 4.15 · < 4.19.262
- ≥ 4.20 · < 5.4.220
- ≥ 5.5 · < 5.10.150
- ≥ 5.11 · < 5.15.75
- ≥ 5.16 · < 5.19.17
- ≥ 6.0 · < 6.0.3
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Fix deferred
Red Hat Enterprise Linux 8
kernel-rt
Fix deferred
Red Hat Enterprise Linux 9
kernel
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This patch fixes a shift-out-of-bounds bug in the Intel RAPL driver when value < time_unit, which previously caused ilog2(0) to return -1. While not exploitable remotely, a local user with write access to RAPL sysfs controls could trigger a kernel warning or crash.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Jan 14, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2025–2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.21% (0.00213) | 10.48th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.20% (0.00200) | 9.87th | v5 (v2026.06.15) |
| Sep 18, 2025 | 0.03% (0.00033) | 8.06th | v4 (v2025.03.14) |
References (14)
- https://access.redhat.com/security/cve/CVE-2022-50366 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2396107 Issue Tracking
- https://git.kernel.org/stable/c/139bbbd01114433b80fe59f5e1330615aadf9752 Patch
- https://git.kernel.org/stable/c/1d94af37565e4d3c26b0d63428e093a37d5b4c32 Patch
- https://git.kernel.org/stable/c/2d93540014387d1c73b9ccc4d7895320df66d01b Patch
- https://git.kernel.org/stable/c/3eb0ba70376f6ee40fa843fc9cee49269370b0b3 Patch
- https://git.kernel.org/stable/c/42f79dbb9514f726ff21df25f09cb0693b0b2445 Patch
- https://git.kernel.org/stable/c/49a6ffdaed60f0eb52c198fafebc05994e16e305 Patch
- https://git.kernel.org/stable/c/4ebba43384722adbd325baec3a12c572d94488eb Patch
- https://git.kernel.org/stable/c/6216b685b8f48ab7b721a6fd5acbf526b41c13e8 Patch
- https://git.kernel.org/stable/c/708b9abe1b4a2f050a483db4b7edfc446b13df1f Patch
- https://lore.kernel.org/linux-cve-announce/2025091716-CVE-2022-50366-0f75@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-50366
- https://www.cve.org/CVERecord?id=CVE-2022-50366
Change history (0)
No recorded changes yet.