CVE-2026-64377: cpufreq: qcom-cpufreq-hw: Fix possible double free

Published Jul 25, 2026
·
Updated

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->driverdata.

qcomcpufreqhwcpuexit() currently calls kfree() on policy->driverdata. 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 qcomcpufreq.data.

This issue was found by a static analysis tool I am developing.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.2<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In the qcom-cpufreq-hw code, remove the kfree(data) call (that double-frees devm-managed memory) and rely on devres/devm to free qcom_cpufreq.data when the device is detached.

    Linux kernel (qcom-cpufreq-hw) Remove kfree(data) / rely on devres = Remove the explicit kfree(data) call in the driver and let devres release qcom_cpufreq.data (device-managed memory)

Event History

Jul 25, 2026
CVE Published
via MITRE·08:50 AM
Data Sourced
via MITRE·08:50 AM
Description
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203