In the Linux kernel, the following vulnerability has been resolved:
cppc_cpufreq: Fix possible null pointer dereference
cppc_cpufreq_get_rate() and hisi_cppc_cpufreq_get_rate() can be called from
different places with various parameters. So cpufreq_cpu_get() can return
null as ‘policy’ in some circumstances.
Fix this bug by adding null return check.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/cpufreq/cppc_cpufreq.c"
],
"versions": [
{
"version": "a28b2bfc099c",
"lessThan": "9a185cc5a79b",
"status": "affected",
"versionType": "git"
},
{
"version": "a28b2bfc099c",
"lessThan": "769c4f355b79",
"status": "affected",
"versionType": "git"
},
{
"version": "a28b2bfc099c",
"lessThan": "f84b9b25d045",
"status": "affected",
"versionType": "git"
},
{
"version": "a28b2bfc099c",
"lessThan": "b18daa4ec727",
"status": "affected",
"versionType": "git"
},
{
"version": "a28b2bfc099c",
"lessThan": "dfec15222529",
"status": "affected",
"versionType": "git"
},
{
"version": "a28b2bfc099c",
"lessThan": "cf7de25878a1",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/cpufreq/cppc_cpufreq.c"
],
"versions": [
{
"version": "5.11",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.11",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.15.161",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.1.93",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.6.33",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.8.12",
"lessThanOrEqual": "6.8.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.9.3",
"lessThanOrEqual": "6.9.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.10",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
]
git.kernel.org/stable/c/769c4f355b7962895205b86ad35617873feef9a5
git.kernel.org/stable/c/9a185cc5a79ba408e1c73375706630662304f618
git.kernel.org/stable/c/b18daa4ec727c0266de5bfc78e818d168cc4aedf
git.kernel.org/stable/c/cf7de25878a1f4508c69dc9f6819c21ba177dbfe
git.kernel.org/stable/c/dfec15222529d22b15e5b0d63572a9e39570cab4
git.kernel.org/stable/c/f84b9b25d045e67a7eee5e73f21278c8ab06713c