CVE-2024-42090
JSON

5.5medium

pinctrl: fix deadlock in create_pinctrl() when handling -EPROBE_DEFER

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before e65a0dc2e85efb28e182aca50218e8a056d0ce04, from 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before 420ce1261907e5dbeda1e4daffd5b6c76f8188c0, from 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before b813e3fd102a959c5b208ed68afe27e0137a561b, from 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before 01fe2f885f7813f8aed5d3704b384a97b1116a9e, from 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before b36efd2e3e22a329444b6b24fa48df6d20ae66e6, from 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before 4038c57bf61631219b31f1bd6e92106ec7f084dc, from 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before 48a7a7c9571c3e62f17012dd7f2063e926179ddd, from 42fed7ba44e4e8c1fb27b28ad14490cb1daff3c7 before adec57ff8e66aee632f3dd1f93787c13d112b7a1 and 1 more
Not affected: before 3.10, from 4.19.317 up to 4.19.*, from 5.4.279 up to 5.4.*, from 5.10.221 up to 5.10.*, from 5.15.162 up to 5.15.*, from 6.1.97 up to 6.1.*
CVE List
linux linux_kernelfrom 3.10 before 4.19.317, from 4.20 before 5.4.279, from 5.5 before 5.10.221, from 5.11 before 5.15.162, from 5.16 before 6.1.97, from 6.2 before 6.6.37, from 6.7 before 6.9.8NVD

Classification

CWE-667

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pinctrl: soluciona el punto muerto en create_pinctrl() al manejar -EPROBE_DEFER En create_pinctrl(), pinctrl_maps_mutex se adquiere antes de llamar a add_setting(). Si add_setting() devuelve -EPROBE_DEFER, create_pinctrl() llama a pinctrl_free(). Sin embargo, pinctrl_free() intenta adquirir pinctrl_maps_mutex, que ya está en manos de create_pinctrl(), lo que lleva a un posible punto muerto. Este parche resuelve el problema liberando pinctrl_maps_mutex antes de llamar a pinctrl_free(), evitando el punto muerto. Este error fue descubierto y resuelto utilizando Coverity Static Analysis Security Testing (SAST) por Synopsys, Inc.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42090 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-42090 changed 2026-10-15Public domain