CVE-2025-22014 soc: qcom: pdr: Fix the potential deadlock
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: pdr: Fix the potential deadlock
When some client process A call pdr_add_lookup() 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 pdr_locator_new_server()
which eventually sets pdr->locator_init_complete 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 schedule_work() here.
Process A Process B
process_scheduled_works()
pdr_add_lookup() qmi_data_ready_work()
process_scheduled_works() pdr_locator_new_server()
pdr->locator_init_complete=true;
pdr_locator_work()
mutex_lock(&pdr->list_lock);
pdr_locate_service() mutex_lock(&pdr->list_lock);
pdr_get_domain_list()
pr_err("PDR: %s get domain list
txn wait failed: %d\n",
req->service_name,
ret);
Timeout error log due to deadlock:
"
PDR: tms/servreg get domain list txn wait failed: -110
PDR: service lookup for msm/adsp/sensor_pd: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]
Upgrade path
11 packages: 10 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner kernel(CBL-Mariner 2.0) | < 5.15.180.1-1; All versions | 5.15.180.1-1 | Partially fixed |
| azure linux kernel(Azure Linux 3.0) | < 6.6.85.1-2 | 6.6.85.1-2 | Fixed |
| debian/linux(Debian 12) | < 6.1.133-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +33 more | 6.1.133-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.21-1 | 6.12.21-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.21-1 | 6.12.21-1 | Fixed |
| Linux kernel | < 5.10.236; < 5.15.180; < 6.1.132; < 6.6.85 +22 more | 0a566a79aca9851fae140536e0fc5b0853c90a90, 2eeb03ad9f42dfece63051be2400af487ddb96d2, 5.10.236, 5.15.180, 6.1.132, 6.6.85, 6.12.21, 6.13.9, 6.14, 72a222b6af10c2a05a5fad0029246229ed8912c2, 02612f1e4c34d94d6c8ee75bf7d254ed697e22d4, daba84612236de3ab39083e62c9e326a654ebd20, f2bbfd50e95bc117360f0f59e629aa03d821ebd6, f4489260f5713c94e1966e5f20445bff262876f4 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-142.152 | 5.15.0-142.152 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-84.84 | 6.8.0-84.84 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1082.87 | 5.15.0-1082.87 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1080.83 | 5.15.0-1080.83 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1039.43 | 6.8.0-1039.43 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner kernel(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux kernel(Azure Linux:3.0) | < 6.6.85.1-2 | 6.6.85.1-2 |
| cbl-mariner kernel(CBL-Mariner:2.0) | < 5.15.180.1-1 | 5.15.180.1-1 |
| debian/linux(Debian:12) | < 6.1.133-1 | 6.1.133-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
Show 48 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.21-1 | 6.12.21-1 |
| debian/linux(Debian:14) | < 6.12.21-1 | 6.12.21-1 |
| Linux kernel | >= fbe639b44a82755d639df1c5d147c93f02ac5a0f, < 72a222b6af10c2a05a5fad0029246229ed8912c2 | 72a222b6af10c2a05a5fad0029246229ed8912c2 |
| Linux kernel | >= fbe639b44a82755d639df1c5d147c93f02ac5a0f, < daba84612236de3ab39083e62c9e326a654ebd20 | daba84612236de3ab39083e62c9e326a654ebd20 |
| Linux kernel | >= fbe639b44a82755d639df1c5d147c93f02ac5a0f, < 0a566a79aca9851fae140536e0fc5b0853c90a90 | 0a566a79aca9851fae140536e0fc5b0853c90a90 |
| Linux kernel | >= fbe639b44a82755d639df1c5d147c93f02ac5a0f, < f2bbfd50e95bc117360f0f59e629aa03d821ebd6 | f2bbfd50e95bc117360f0f59e629aa03d821ebd6 |
| Linux kernel | >= fbe639b44a82755d639df1c5d147c93f02ac5a0f, < f4489260f5713c94e1966e5f20445bff262876f4 | f4489260f5713c94e1966e5f20445bff262876f4 |
| Linux kernel | >= fbe639b44a82755d639df1c5d147c93f02ac5a0f, < 02612f1e4c34d94d6c8ee75bf7d254ed697e22d4 | 02612f1e4c34d94d6c8ee75bf7d254ed697e22d4 |
| Linux kernel | >= fbe639b44a82755d639df1c5d147c93f02ac5a0f, < 2eeb03ad9f42dfece63051be2400af487ddb96d2 | 2eeb03ad9f42dfece63051be2400af487ddb96d2 |
| Linux kernel | = 5.7 | No fix listed |
| Linux kernel | < 5.10.236 | 5.10.236 |
| Linux kernel | < 5.15.180 | 5.15.180 |
| Linux kernel | < 6.1.132 | 6.1.132 |
| Linux kernel | < 6.6.85 | 6.6.85 |
| Linux kernel | < 6.12.21 | 6.12.21 |
| Linux kernel | < 6.13.9 | 6.13.9 |
| Linux kernel | < 6.14 | 6.14 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-142.152 | 5.15.0-142.152 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1082.87 | 5.15.0-1082.87 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1080.83 | 5.15.0-1080.83 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-84.84 | 6.8.0-84.84 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1039.43 | 6.8.0-1039.43 |
| Linux kernel | >= 5.7, < 6.1.132 | 6.1.132 |
| Linux kernel | >= 6.2, < 6.6.85 | 6.6.85 |
| Linux kernel | >= 6.7, < 6.12.21 | 6.12.21 |
| Linux kernel | >= 6.13, < 6.13.9 | 6.13.9 |
| Linux kernel | = 6.14-rc1 | No fix listed |
| Linux kernel | = 6.14-rc2 | No fix listed |
| Linux kernel | = 6.14-rc3 | No fix listed |
| Linux kernel | = 6.14-rc4 | No fix listed |
| Linux kernel | = 6.14-rc5 | No fix listed |
| Linux kernel | = 6.14-rc6 | No fix listed |
| Linux kernel | = 6.14-rc7 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-22014 vendor-advisory
- git.kernel.org
- git.kernel.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7591-1 vendor-advisory
- USN-7591-2 vendor-advisory
- USN-7591-3 vendor-advisory
- USN-7592-1 vendor-advisory
- USN-7593-1 vendor-advisory
- USN-7591-4 vendor-advisory
- USN-7597-1 vendor-advisory
- USN-7597-2 vendor-advisory
- USN-7598-1 vendor-advisory
- USN-7602-1 vendor-advisory
- USN-7605-1 vendor-advisory
- USN-7606-1 vendor-advisory
- USN-7591-5 vendor-advisory
- USN-7605-2 vendor-advisory
- USN-7628-1 vendor-advisory
- USN-7591-6 vendor-advisory
- USN-7655-1 vendor-advisory
- USN-7764-1 vendor-advisory
- USN-7765-1 vendor-advisory
- USN-7766-1 vendor-advisory
- USN-7767-1 vendor-advisory
- USN-7779-1 vendor-advisory
- USN-7767-2 vendor-advisory
- USN-7764-2 vendor-advisory
- USN-7790-1 vendor-advisory
- USN-7800-1 vendor-advisory
- USN-7801-1 vendor-advisory
- USN-7802-1 vendor-advisory
- USN-7801-2 vendor-advisory
- USN-7809-1 vendor-advisory
- USN-7801-3 vendor-advisory
- www.cve.org