# CVE-2024-36940: pinctrl: core: delete incorrect free in pinctrl_enable()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-30T15:29:28.101Z
- Modified: 2026-10-15T01:18:26.347Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; 4.11 (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.*; from 6.6.31 up to 6.6.*; from 6.8.10 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 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.9
- debian debian_linux: 10.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d> (patch)
- <https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd> (patch)
- <https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068> (patch)
- <https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca> (patch)
- <https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e> (patch)
- <https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c> (patch)
- <https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba> (patch)
- <https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html> (mailing-list)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Sources

- CVE List: [CVE-2024-36940](https://www.cve.org/CVERecord?id=CVE-2024-36940), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-36940](https://nvd.nist.gov/vuln/detail/CVE-2024-36940), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-36940 · Whole record: https://cve.day/CVE-2024-36940.json · Rebuilt by cve.day 2026-11-25T22:58:41.293Z
