CVE-2022-49748 perf/x86/amd: fix potential integer overflow on shift of a int
An integer overflow in the Linux kernel's AMD perf subsystem can cause unexpected behavior or crashes when handling large shift 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-49748?
CVE-2022-49748 is a medium-severity vulnerability in Linux kernel, published on 27 Mar 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:
perf/x86/amd: fix potential integer overflow on shift of a int
The left shift of int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then passed as a 64 bit function argument. In the case where i is 32 or more this can lead to an overflow. Avoid this by shifting using the BIT_ULL macro instead.
Weakness: CWE-190
Which versions are affected by CVE-2022-49748?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49748?
Apply the vendor's patch.
Is CVE-2022-49748 being exploited?
There is no known exploitation of CVE-2022-49748 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49748, GHSA-hjff-56wf-4v5f, UBUNTU-CVE-2022-49748.