CVE-2024-36940
JSON

7.8high

pinctrl: core: delete incorrect free in pinctrl_enable()

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: core: delete incorrect free in pinctrl_enable() The "pctldev" struct is allocated in devm_pinctrl_register_and_init(). It's a devm_ managed pointer that is freed by devm_pinctrl_dev_release(), so freeing it in pinctrl_enable() will lead to a double free. The devm_pinctrl_dev_release() function frees the pindescs and destroys the mutex as well.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6118714275f0a313ecc296a87ed1af32d9691bed before 735f4c6b6771eafe336404c157ca683ad72a040d, from 6118714275f0a313ecc296a87ed1af32d9691bed before cdaa171473d98962ae86f2a663d398fda2fbeefd, from 6118714275f0a313ecc296a87ed1af32d9691bed before 288bc4aa75f150d6f1ee82dd43c6da1b438b6068, from 6118714275f0a313ecc296a87ed1af32d9691bed before 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca, from 6118714275f0a313ecc296a87ed1af32d9691bed before ac7d65795827dc0cf7662384ed27caf4066bd72e, from 6118714275f0a313ecc296a87ed1af32d9691bed before 558c8039fdf596a584a92c171cbf3298919c448c, from 6118714275f0a313ecc296a87ed1af32d9691bed before f9f1e321d53e4c5b666b66e5b43da29841fb55ba, from 6118714275f0a313ecc296a87ed1af32d9691bed before 5038a66dad0199de60e5671603ea6623eb9e5c79 and 1 more
Not affected: before 4.11, from 4.19.314 up to 4.19.*, from 5.4.276 up to 5.4.*, from 5.10.217 up to 5.10.*, from 5.15.159 up to 5.15.*, from 6.1.91 up to 6.1.*
CVE List
linux linux_kernelfrom 4.11 before 4.19.314, from 4.20 before 5.4.276, from 5.5 before 5.10.217, from 5.11 before 5.15.159, from 5.16 before 6.1.91, from 6.2 before 6.6.31, from 6.7 before 6.8.10, 6.9NVD
debian debian_linux10.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-415

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: core: delete incorrect free in pinctrl_enable() The "pctldev" struct is allocated in devm_pinctrl_register_and_init(). It's a devm_ managed pointer that is freed by devm_pinctrl_dev_release(), so freeing it in pinctrl_enable() will lead to a double free. The devm_pinctrl_dev_release() function frees the pindescs and destroys the mutex as well.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pinctrl: core: eliminar incorrecto gratis en pinctrl_enable() La estructura "pctldev" está asignada en devm_pinctrl_register_and_init(). Es un puntero administrado por devm_ que se libera mediante devm_pinctrl_dev_release(), por lo que liberarlo en pinctrl_enable() generará una doble liberación. La función devm_pinctrl_dev_release() libera los pindescs y también destruye el mutex.

References

https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040dpatch
https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefdpatch
https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068patch
https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2ccapatch
https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72epatch
https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448cpatch
https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55bapatch
https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlmailing-list
https://lists.debian.org/debian-lts-announce/2024/06/msg00019.htmlmailing-list
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-613116.html

Sources

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