CVE-2025-22014: soc: qcom: pdr: Fix the potential deadlock
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: pdr: Fix the potential deadlock
When some client process A call pdraddlookup() to add the look up for the service and does schedule locator work, later a process B got a new server packet indicating locator is up and call pdrlocatornewserver() which eventually sets pdr->locatorinitcomplete to true which process A sees and takes list lock and queries domain list but it will timeout due to deadlock as the response will queued to the same qmi->wq and it is ordered workqueue and process B is not able to complete new server request work due to deadlock on list lock.
Fix it by removing the unnecessary list iteration as the list iteration is already being done inside locator work, so avoid it here and just call schedulework() here.
Process A Process B
processscheduledworks() pdraddlookup() qmidatareadywork() processscheduledworks() pdrlocatornewserver() pdr->locatorinitcomplete=true; pdrlocatorwork() mutexlock(&pdr->listlock);
pdrlocateservice() mutexlock(&pdr->listlock);
pdrgetdomainlist() prerr("PDR: %s get domain list txn wait failed: %d\n", req->servicename, ret);
Timeout error log due to deadlock:
" PDR: tms/servreg get domain list txn wait failed: -110 PDR: service lookup for msm/adsp/sensorpd:tms/servreg failed: -110 "
Thanks to Bjorn and Johan for letting me know that this commit also fixes an audio regression when using the in-kernel pd-mapper as that makes it easier to hit this race. [1]
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-22014?
CVE-2025-22014 has been classified with a high severity rating due to the potential for deadlock in the Linux kernel.
How do I fix CVE-2025-22014?
To fix CVE-2025-22014, you should update your Linux kernel to the latest patched version provided by your distribution.
What systems are affected by CVE-2025-22014?
CVE-2025-22014 affects systems running the Linux kernel that utilize the qcom pdr functionality.
What impact does CVE-2025-22014 have?
CVE-2025-22014 can lead to system instability and potential deadlock issues affecting service lookup processes.
Where can I find more information about CVE-2025-22014?
More information about CVE-2025-22014 can typically be found in security advisories from your Linux distribution.