CVE-2022-48657

arm64: topology: fix possible overflow in amu_fie_setup()

HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: arm64: topology: fix possible overflow in amu_fie_setup() cpufreq_get_hw_max_freq() returns max frequency in kHz as *unsigned int*, while freq_inv_set_max_ratio() gets passed this frequency in Hz as 'u64'. Multiplying max frequency by 1000 can potentially result in overflow -- multiplying by 1000ULL instead should avoid that... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Weaknesses (CWE)

  • CWE-120 — Buffer Copy without Checking Size of Input

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected cd0ed03a8903a0b0c6fc36e32d133d1ddfe70cd6 < 904f881b57360cf85de962d84d8614d94431f60e ; affected cd0ed03a8903a0b0c6fc36e32d133d1ddfe70cd6 < 3c3edb82d67b2be9231174ac2af4af60d4af7549 ; affected cd0ed03a8903a0b0c6fc36e32d133d1ddfe70cd6 < bb6d99e27cbe6b30e4e3bbd32927fd3b0bdec6eb ; affected cd0ed03a8903a0b0c6fc36e32d133d1ddfe70cd6 < d4955c0ad77dbc684fc716387070ac24801b8bca
Linux · Linuxaffected 5.7 ; unaffected 0 < 5.7 ; unaffected 5.10.150 ≤ 5.10.* ; unaffected 5.15.71 ≤ 5.15.* ; unaffected 5.19.12 ≤ 5.19.* ; unaffected 6.0 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD