# CVE-2024-36959: pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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:35:51.624Z
- Modified: 2026-10-15T01:18:26.573Z
- 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: devicetree: fix refcount leak in pinctrl_dt_to_map()

If we fail to allocate propname buffer, we need to drop the reference
count we just took. Because the pinctrl_dt_free_maps() includes the
droping operation, here we call it directly.

(As written by CVE List.)

## Affected

- Linux Linux: from a988dcd3dd9e691c5ccc3324b209688f3b5453e9 before 06780473cb8a858d1d6cab2673e021b072a852d1; from 040f726fecd88121f3b95e70369785ad452dddf9 before 47d253c485491caaf70d8cd8c0248ae26e42581f; from 777430aa4ddccaa5accec6db90ffc1d47f00d471 before 35ab679e8bb5a81a4f922d3efbd43e32bce69274; from 97e5b508e96176f1a73888ed89df396d7041bfcb before 76aa2440deb9a35507590f2c981a69a57ecd305d; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce before 518d5ddafeb084d6d9b1773ed85164300037d0e6; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce before 026e24cf31733dbd97f41cc9bc5273ace428eeec; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce before c7e02ccc9fdc496fe51e440e3e66ac36509ca049; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce before a0cedbcc8852d6c77b00634b81e41f17f29d9404; aaf552c5d53abe4659176e099575fe870d2e4768; b4d9f55cd38435358bc16d580612bc0d798d7b4c; 5834a3a98cd266ad35a229923c0adbd0addc8d68; from 4.19.267 before 4.19.314; and 7 more (not affected: before 6.1; 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.9.334 before 4.10; from 4.14.300 before 4.15; from 4.19.267 before 4.19.314; from 5.4.225 before 5.4.276; from 5.10.156 before 5.10.217; from 5.15.80 before 5.15.159; from 6.0.10 before 6.1.91; from 6.2 before 6.6.31; from 6.7 before 6.8.10; 6.9

## References

- <https://git.kernel.org/stable/c/06780473cb8a858d1d6cab2673e021b072a852d1> (patch)
- <https://git.kernel.org/stable/c/47d253c485491caaf70d8cd8c0248ae26e42581f> (patch)
- <https://git.kernel.org/stable/c/35ab679e8bb5a81a4f922d3efbd43e32bce69274> (patch)
- <https://git.kernel.org/stable/c/76aa2440deb9a35507590f2c981a69a57ecd305d> (patch)
- <https://git.kernel.org/stable/c/518d5ddafeb084d6d9b1773ed85164300037d0e6> (patch)
- <https://git.kernel.org/stable/c/026e24cf31733dbd97f41cc9bc5273ace428eeec> (patch)
- <https://git.kernel.org/stable/c/c7e02ccc9fdc496fe51e440e3e66ac36509ca049> (patch)
- <https://git.kernel.org/stable/c/a0cedbcc8852d6c77b00634b81e41f17f29d9404> (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-36959](https://www.cve.org/CVERecord?id=CVE-2024-36959), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-36959](https://nvd.nist.gov/vuln/detail/CVE-2024-36959), Public domain, modified 2026-10-15

---

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