CVE-2022-50366
kernel: powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
Overview
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
Source: OX vulnerability database
Severity
7.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weakness: CWE-125
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 87 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | bpftool +9 | 5.10.46-2.ph4 |
Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | bpftool +45 | affected |
| 9 | bpftool +106 | affected |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | 5.10.158-1 |
| 12 | linux | 6.0.3-1 |
| 13 | linux | 6.0.3-1 |
| 14 | linux | 6.0.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.0.3-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-linux | 5.10.158-1 |
| 12 | rootio-linux | 6.0.3-1 |
| 13 | rootio-linux | 6.0.3-1 |
root.io ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | rootio-linux | 5.15.0-60.66 |
ubuntu 5 releases · 32 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | linux-oracle | 4.15.0-1114.125 |
| 18.04 | linux-kvm | 4.15.0-1135.140 |
| 18.04 | linux-gcp-4-15 | 4.15.0-1145.161 |
| 18.04 | linux-aws | 4.15.0-1150.163 |
| 18.04 | linux-azure-4-15 | 4.15.0-1161.176 |
| 18.04 | linux | 4.15.0-204.215 |
69 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-50366
- git.kernel.org https://git.kernel.org/linus/2d93540014387d1c73b9ccc4d7895320df66d01b (6.1-rc1)
- git.kernel.org https://git.kernel.org/stable/c/139bbbd01114433b80fe59f5e1330615aadf9752
- git.kernel.org https://git.kernel.org/stable/c/1d94af37565e4d3c26b0d63428e093a37d5b4c32
- git.kernel.org https://git.kernel.org/stable/c/2d93540014387d1c73b9ccc4d7895320df66d01b
- git.kernel.org https://git.kernel.org/stable/c/3eb0ba70376f6ee40fa843fc9cee49269370b0b3
- git.kernel.org https://git.kernel.org/stable/c/42f79dbb9514f726ff21df25f09cb0693b0b2445
- git.kernel.org https://git.kernel.org/stable/c/49a6ffdaed60f0eb52c198fafebc05994e16e305
- git.kernel.org https://git.kernel.org/stable/c/4ebba43384722adbd325baec3a12c572d94488eb
- git.kernel.org https://git.kernel.org/stable/c/6216b685b8f48ab7b721a6fd5acbf526b41c13e8
Show all 14 references
- git.kernel.org https://git.kernel.org/stable/c/708b9abe1b4a2f050a483db4b7edfc446b13df1f
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2025091716-CVE-2022-50366-0f75@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-50366
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-50366
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.