Skip to content
CVE PROGRAM SOURCE RECORD5.5 Medium

CVE-2022-49748

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • d8a6a443ff0aea5893f0a7f2726973b496b76420 to < fbf7b0e4cef3b5470b610f14fb9faa5ee7f63954affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to < f84c9b72fb200633774704d8020f769c88a4b249affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to < 14cc13e433e1067557435b1adbf05608d7d47a93affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to < a4d01fb87ece45d4164fd725890211ccf9a307a9affected
  • 471af006a747f1c535c8a8c6c0973c320fe01b22 to < 08245672cdc6505550d1a5020603b0a8d4a6dcc7affected
  • 3512462036dbe44d88e93e75ee8a993781183ddbaffected
  • 5.4.22 to < 5.4.231affected
  • 5.5.6 to < 5.6affected

Linux Linux

Default version status: affected

  • 5.6affected
  • 0 to < 5.6unaffected
  • 5.4.231 to ≤ 5.4.*unaffected
  • 5.10.166 to ≤ 5.10.*unaffected
  • 5.15.91 to ≤ 5.15.*unaffected
  • 6.1.9 to ≤ 6.1.*unaffected
  • 6.2 to ≤ *unaffected

References