CVE-2024-42090
pinctrl: fix deadlock in create_pinctrl() when handling -EPROBE_DEFER
Reported by linux · Published July 29, 2024
In the Linux kernel, the following vulnerability has been resolved: pinctrl: fix deadlock in create_pinctrl() when handling -EPROBE_DEFER In create_pinctrl(), pinctrl_maps_mutex is acquired before calling add_setting(). If add_setting() returns -EPROBE_DEFER, create_pinctrl() calls pinctrl_free(). However, pinctrl_free() attempts to acquire pinctrl_maps_mutex, which is already held by create_pinctrl(), leading to a potential deadlock. This patch resolves the issue by releasing pinctrl_maps_mutex before calling pinctrl_free(), preventing the deadlock. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 6.1.97-104.177.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.97-104.177.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.97-104.177.amzn2023 |
| kernel | Amazon Linux | 6.1.97-104.177.amzn2023 |
| SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | Siemens | 1.1.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 |
| Linux | Linux | 3.10, 0, 4.19.317 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel | 0 |
| linux | linux_kernel | 3.10, 3.10, 3.10 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| Linux | Linux | 3.10, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 |
| amazon:2 | kernel-livepatch-4.14.350-266.564 | 0 |
| amazon:2 | kernel-devel | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.1.97-104.177 | 0 |
| amazon:2 | kernel-headers | 0 |
…and 7 more
Timeline
- Jul 29, 2024 CVE Published
- Jul 30, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (10 in total, the first dated here)
- Jan 7, 2026 Security Advisory (366 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (248 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-42090
vulnetix vdb fixes CVE-2024-42090
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-42090/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart