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.
[
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"arch/arm64/kernel/topology.c"
],
"versions": [
{
"version": "cd0ed03a8903",
"lessThan": "904f881b5736",
"status": "affected",
"versionType": "git"
},
{
"version": "cd0ed03a8903",
"lessThan": "3c3edb82d67b",
"status": "affected",
"versionType": "git"
},
{
"version": "cd0ed03a8903",
"lessThan": "bb6d99e27cbe",
"status": "affected",
"versionType": "git"
},
{
"version": "cd0ed03a8903",
"lessThan": "d4955c0ad77d",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"arch/arm64/kernel/topology.c"
],
"versions": [
{
"version": "5.7",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.7",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.10.150",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.15.71",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.19.12",
"lessThanOrEqual": "5.19.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.0",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
]