perf/x86/amd: fix potential integer overflow on shift of a int
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
3512462036dbe44d88e93e75ee8a993781183ddb| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
A 32-bit integer left shift in the Linux kernel’s perf/x86/amd code can overflow when the shift count is 32 or greater. The input does not describe an attacker action or specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their build includes the affected perf/x86/amd code; affected versions are not specified.