CVE-2022-49748

perf/x86/amd: fix potential integer overflow on shift of a int

State
Published
Severity
5.5 Medium
Published
Mar 27, 2025
Updated
May 23, 2026
Reserved
Mar 27, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
LinuxLinux
  • d8a6a443ff0aea5893f0a7f2726973b496b76420 to before fbf7b0e4cef3b5470b610f14fb9faa5ee7f63954Affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to before f84c9b72fb200633774704d8020f769c88a4b249Affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to before 14cc13e433e1067557435b1adbf05608d7d47a93Affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to before a4d01fb87ece45d4164fd725890211ccf9a307a9Affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to before 08245672cdc6505550d1a5020603b0a8d4a6dcc7Affected
  • 3512462036dbe44d88e93e75ee8a993781183ddbAffected
  • 5.4.22 to before 5.4.231Affected
  • 5.5.6 to before 5.6Affected
LinuxLinux
  • 5.6Affected
  • before 5.6Not affected
  • 5.4.231 through 5.4.*Not affected
  • 5.10.166 through 5.10.*Not affected
  • 5.15.91 through 5.15.*Not affected
  • 6.1.9 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.