In the Linux kernel, the following vulnerability has been resolved:
cpufreq: amd-pstate: fix memory leak on CPU EPP exit
The cpudata memory from kzalloc() in amdpstateeppcpuinit() is not freed in the analogous exit function, so fix that.
[ rjw: Subject and changelog edits ]
[
{
"target": {
"function": "amd_pstate_epp_cpu_exit",
"file": "drivers/cpufreq/amd-pstate.c"
},
"id": "CVE-2024-40997-11737513",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cea04f3d9aeebda9d9c063c0dfa71e739c322c81",
"digest": {
"function_hash": "335499545512050622245571612055230872279",
"length": 103.0
}
},
{
"target": {
"file": "drivers/cpufreq/amd-pstate.c"
},
"id": "CVE-2024-40997-3d1cad6d",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd",
"digest": {
"threshold": 0.9,
"line_hashes": [
"268420367376124379479880238812898415057",
"40683618666770299092627587627335147283",
"35264779491705133938931506913778793293",
"118975437249515098630128461733746466781"
]
}
},
{
"target": {
"function": "amd_pstate_epp_cpu_exit",
"file": "drivers/cpufreq/amd-pstate.c"
},
"id": "CVE-2024-40997-5dc97b8c",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8015c17fe11a8608cc3eb83d0ab831e1845a9582",
"digest": {
"function_hash": "335499545512050622245571612055230872279",
"length": 103.0
}
},
{
"target": {
"function": "amd_pstate_epp_cpu_exit",
"file": "drivers/cpufreq/amd-pstate.c"
},
"id": "CVE-2024-40997-665896a9",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd",
"digest": {
"function_hash": "335499545512050622245571612055230872279",
"length": 103.0
}
},
{
"target": {
"file": "drivers/cpufreq/amd-pstate.c"
},
"id": "CVE-2024-40997-cc0e9b9c",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8015c17fe11a8608cc3eb83d0ab831e1845a9582",
"digest": {
"threshold": 0.9,
"line_hashes": [
"268420367376124379479880238812898415057",
"40683618666770299092627587627335147283",
"35264779491705133938931506913778793293",
"118975437249515098630128461733746466781"
]
}
},
{
"target": {
"file": "drivers/cpufreq/amd-pstate.c"
},
"id": "CVE-2024-40997-e599018f",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cea04f3d9aeebda9d9c063c0dfa71e739c322c81",
"digest": {
"threshold": 0.9,
"line_hashes": [
"268420367376124379479880238812898415057",
"40683618666770299092627587627335147283",
"35264779491705133938931506913778793293",
"118975437249515098630128461733746466781"
]
}
}
]