CVE-2022-50366 powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
A shift-out-of-bounds error in the Linux kernel's Intel RAPL powercap driver can cause a system crash when processing specific time window values.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50366?
CVE-2022-50366 is a high-severity vulnerability in Linux kernel, published on 17 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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
Weakness: CWE-125
Which versions are affected by CVE-2022-50366?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50366?
Apply the vendor's patch.
Is CVE-2022-50366 being exploited?
There is no known exploitation of CVE-2022-50366 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50366, GHSA-pvwj-2m48-hxq3, UBUNTU-CVE-2022-50366.