arm64: topology: fix possible overflow in amu_fie_setup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's arm64 topology code can overflow when converting a maximum CPU frequency from kHz to Hz in amu_fie_setup(). The input does not establish what an attacker could do or whether exploitation requires local or network access, authentication, or user interaction.
Engineers running Linux kernels on arm64 systems should check their kernel versions; affected versions are not specified in the input.