cpufreq: qcom-cpufreq-hw: Fix possible double free
In the Linux kernel, the following vulnerability has been resolved: cpufreq: qcom-cpufreq-hw: Fix possible double free qcom_cpufreq.data is allocated with devm_kzalloc() in probe() as an array of per-domain data. qcom_cpufreq_hw_cpu_init() stores a pointer to one element of this array in policy->driver_data. qcom_cpufreq_hw_cpu_exit() currently calls kfree() on policy->driver_data. This is not valid because the memory is devm-managed. For the first domain, this can free the devm-managed allocation while the devres entry is still active, leading to a possible double free when the platform device is later detached. For other domains, the pointer may refer to an element inside the array rather than the allocation base. Remove the kfree(data) call and let devres release qcom_cpufreq.data. This issue was found by a static analysis tool I am developing.
CVE-2026-64377
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-64377
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "054a3ef683a176a509cc9b37f762029aae942495",
"lessThan": "0f012938f21302c08153589c1aca0283f8d6911d",
"versionType": "git"
},
{
"status": "affected",
"version": "054a3ef683a176a509cc9b37f762029aae942495",
"lessThan": "28a03a3f6e6cda0b0da3b43761d175dec5d14d13",
"versionType": "git"
},
{
"status": "affected",
"version": "054a3ef683a176a509cc9b37f762029aae942495",
"lessThan": "e904961332801c87355f5d11c65bb433e717c489",
"versionType": "git"
},
{
"status": "affected",
"version": "054a3ef683a176a509cc9b37f762029aae942495",
"lessThan": "9de568ef6cdfc7912d5ea8db02843c0e4ef0c75d",
"versionType": "git"
},
{
"status": "affected",
"version": "054a3ef683a176a509cc9b37f762029aae942495",
"lessThan": "bcb8889c4981fdde42d4fd2c29a77d510fe21da2",
"versionType": "git"
}
],
"programFiles": [
"drivers/cpufreq/qcom-cpufreq-hw.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.2"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.2",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.96",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.39",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.4",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/cpufreq/qcom-cpufreq-hw.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-64377
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #46434 · Revision 1
- Added to Heist Feed
- Publisher date