VDB

CVE-2024-42090

CVE-2024-42090 PUBLISHED

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.

PackageEcosystemFixed in
kernel-develAmazon Linux6.1.97-104.177.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.97-104.177.amzn2023
kernel-headersAmazon Linux6.1.97-104.177.amzn2023
kernelAmazon Linux6.1.97-104.177.amzn2023
SIMATIC S7-1500 TM MFP - GNU/Linux subsystemSiemens1.1.1

Affected products

VendorProductVersions
LinuxLinux42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7
LinuxLinux3.10, 0, 4.19.317
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-headers0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel0
linuxlinux_kernel3.10, 3.10, 3.10
amazon:2023kernel-libbpf-devel0
amazon:2kernel-tools-devel0
amazon:2023python3-perf0
LinuxLinux3.10, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7, 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7
amazon:2kernel-livepatch-4.14.350-266.5640
amazon:2kernel-devel0
amazon:2kernel-tools0
amazon:2python-perf0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf0
amazon:2023kernel-livepatch-6.1.97-104.1770
amazon:2kernel-headers0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›