In the Linux kernel, the following vulnerability has been resolved:
cpufreq: amd-pstate: add check for cpufreqcpuget's return value
cpufreqcpuget may return NULL. To avoid NULL-dereference check it and return in case of error.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[
{
"signature_version": "v1",
"digest": {
"length": 797.0,
"function_hash": "60950133527616974681606167653825103597"
},
"id": "CVE-2024-50009-15f887e5",
"target": {
"file": "drivers/cpufreq/amd-pstate.c",
"function": "amd_pstate_adjust_perf"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f250d44b8191d612355dd97b89b37bbc1b5d2cb",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"length": 912.0,
"function_hash": "142096078594019709052915421933054083027"
},
"id": "CVE-2024-50009-2f1b8b42",
"target": {
"file": "drivers/cpufreq/amd-pstate.c",
"function": "amd_pstate_adjust_perf"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd9f7bf6cad8b2d3876105ce3c9fc63460a046f6",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"296712395085944519954881526820866244688",
"320100298348353346795037132722577123319",
"188257711093673200640836143380185486368",
"68098551954614851825844091670217977912",
"155303712542297455231597079712118658961"
]
},
"id": "CVE-2024-50009-3188a31d",
"target": {
"file": "drivers/cpufreq/amd-pstate.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd9f7bf6cad8b2d3876105ce3c9fc63460a046f6",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"length": 674.0,
"function_hash": "283048936653908899603909947652893045040"
},
"id": "CVE-2024-50009-6ec7d329",
"target": {
"file": "drivers/cpufreq/amd-pstate.c",
"function": "amd_pstate_update_limits"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5493f9714e4cdaf0ee7cec15899a231400cb1a9f",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"287335568057177539129717788822991344213",
"210163354247076985275096656483390091754",
"84763138660505024289799615239966460767",
"145196780538469954001172297417044162105",
"69259731090526761453191762644969304813",
"268169029340518664875286058955126380433",
"305094528487326277816418188726227792270",
"82796417023053116891550844364668186867",
"118930470550071948220377722128345514379",
"275609452675894517583390126404483631211",
"242626466261157746760735457714741164342"
]
},
"id": "CVE-2024-50009-7aa4a090",
"target": {
"file": "drivers/cpufreq/amd-pstate.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f250d44b8191d612355dd97b89b37bbc1b5d2cb",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"length": 797.0,
"function_hash": "60950133527616974681606167653825103597"
},
"id": "CVE-2024-50009-a9e20244",
"target": {
"file": "drivers/cpufreq/amd-pstate.c",
"function": "amd_pstate_adjust_perf"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5493f9714e4cdaf0ee7cec15899a231400cb1a9f",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"287335568057177539129717788822991344213",
"210163354247076985275096656483390091754",
"84763138660505024289799615239966460767",
"145196780538469954001172297417044162105",
"69259731090526761453191762644969304813",
"268169029340518664875286058955126380433",
"305094528487326277816418188726227792270",
"82796417023053116891550844364668186867",
"118930470550071948220377722128345514379",
"275609452675894517583390126404483631211",
"242626466261157746760735457714741164342"
]
},
"id": "CVE-2024-50009-d3f569bc",
"target": {
"file": "drivers/cpufreq/amd-pstate.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5493f9714e4cdaf0ee7cec15899a231400cb1a9f",
"deprecated": false
},
{
"signature_version": "v1",
"digest": {
"length": 674.0,
"function_hash": "283048936653908899603909947652893045040"
},
"id": "CVE-2024-50009-e5fd70b8",
"target": {
"file": "drivers/cpufreq/amd-pstate.c",
"function": "amd_pstate_update_limits"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f250d44b8191d612355dd97b89b37bbc1b5d2cb",
"deprecated": false
}
]