CVE-2026-64377

Source
https://cve.org/CVERecord?id=CVE-2026-64377
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64377.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64377
Downstream
Published
2026-07-25T08:50:28.299Z
Modified
2026-07-27T04:03:21.845369015Z
Summary
cpufreq: qcom-cpufreq-hw: Fix possible double free
Details

In the Linux kernel, the following vulnerability has been resolved:

cpufreq: qcom-cpufreq-hw: Fix possible double free

qcomcpufreq.data is allocated with devmkzalloc() in probe() as an array of per-domain data. qcomcpufreqhwcpuinit() stores a pointer to one element of this array in policy->driver_data.

qcomcpufreqhwcpuexit() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64377.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
054a3ef683a176a509cc9b37f762029aae942495
Fixed
28a03a3f6e6cda0b0da3b43761d175dec5d14d13
Fixed
e904961332801c87355f5d11c65bb433e717c489
Fixed
9de568ef6cdfc7912d5ea8db02843c0e4ef0c75d
Fixed
bcb8889c4981fdde42d4fd2c29a77d510fe21da2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64377.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64377.json"