# CVE-2024-36959: pinctrl: devicetree: fix refcount leak in pinctrl\_dt\_to\_map()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2024-05-30T15:35:51.624Z
- **Modified:** 2026-10-15T01:18:26.573Z

## Who should check

- Anyone running Linux \>= a988dcd3dd9e691c5ccc3324b209688f3b5453e9, \< 06780473cb8a858d1d6cab2673e021b072a852d1; \>= 040f726fecd88121f3b95e70369785ad452dddf9, \< 47d253c485491caaf70d8cd8c0248ae26e42581f; \>= 777430aa4ddccaa5accec6db90ffc1d47f00d471, \< 35ab679e8bb5a81a4f922d3efbd43e32bce69274; \>= 97e5b508e96176f1a73888ed89df396d7041bfcb, \< 76aa2440deb9a35507590f2c981a69a57ecd305d; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< 518d5ddafeb084d6d9b1773ed85164300037d0e6; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< 026e24cf31733dbd97f41cc9bc5273ace428eeec; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< c7e02ccc9fdc496fe51e440e3e66ac36509ca049; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< a0cedbcc8852d6c77b00634b81e41f17f29d9404; aaf552c5d53abe4659176e099575fe870d2e4768; b4d9f55cd38435358bc16d580612bc0d798d7b4c; …
- Anyone running Linux 6.1

## 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.

## Affected and fixed versions

- Linux: \>= a988dcd3dd9e691c5ccc3324b209688f3b5453e9, \< 06780473cb8a858d1d6cab2673e021b072a852d1; \>= 040f726fecd88121f3b95e70369785ad452dddf9, \< 47d253c485491caaf70d8cd8c0248ae26e42581f; \>= 777430aa4ddccaa5accec6db90ffc1d47f00d471, \< 35ab679e8bb5a81a4f922d3efbd43e32bce69274; \>= 97e5b508e96176f1a73888ed89df396d7041bfcb, \< 76aa2440deb9a35507590f2c981a69a57ecd305d; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< 518d5ddafeb084d6d9b1773ed85164300037d0e6; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< 026e24cf31733dbd97f41cc9bc5273ace428eeec; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< c7e02ccc9fdc496fe51e440e3e66ac36509ca049; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< a0cedbcc8852d6c77b00634b81e41f17f29d9404; aaf552c5d53abe4659176e099575fe870d2e4768; b4d9f55cd38435358bc16d580612bc0d798d7b4c; … (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36959. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36959.md
Affected: Linux >= a988dcd3dd9e691c5ccc3324b209688f3b5453e9, < 06780473cb8a858d1d6cab2673e021b072a852d1; >= 040f726fecd88121f3b95e70369785ad452dddf9, < 47d253c485491caaf70d8cd8c0248ae26e42581f; >= 777430aa4ddccaa5accec6db90ffc1d47f00d471, < 35ab679e8bb5a81a4f922d3efbd43e32bce69274; >= 97e5b508e96176f1a73888e…
Fixed in: Linux 06780473cb8a858d1d6cab2673e021b072a852d1, Linux 47d253c485491caaf70d8cd8c0248ae26e42581f, Linux 35ab679e8bb5a81a4f922d3efbd43e32bce69274, Linux 76aa2440deb9a35507590f2c981a69a57ecd305d, Linux 518d5ddafeb084d6d9b1773ed85164300037d0e6, Linux 026e24cf31733dbd97f41cc9bc5273ace428eeec

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36959 being exploited?

There is no confirmed exploitation: CVE-2024-36959 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36959?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36959?

Linux \>= a988dcd3dd9e691c5ccc3324b209688f3b5453e9, \< 06780473cb8a858d1d6cab2673e021b072a852d1; \>= 040f726fecd88121f3b95e70369785ad452dddf9, \< 47d253c485491caaf70d8cd8c0248ae26e42581f; \>= 777430aa4ddccaa5accec6db90ffc1d47f00d471, \< 35ab679e8bb5a81a4f922d3efbd43e32bce69274; \>= 97e5b508e96176f1a73888ed89df396d7041bfcb, \< 76aa2440deb9a35507590f2c981a69a57ecd305d; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< 518d5ddafeb084d6d9b1773ed85164300037d0e6; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< 026e24cf31733dbd97f41cc9bc5273ace428eeec; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< c7e02ccc9fdc496fe51e440e3e66ac36509ca049; \>= 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, \< a0cedbcc8852d6c77b00634b81e41f17f29d9404; aaf552c5d53abe4659176e099575fe870d2e4768; b4d9f55cd38435358bc16d580612bc0d798d7b4c; …; Linux 6.1.

### Is there a fix for CVE-2024-36959?

Yes. Fixed in Linux 06780473cb8a858d1d6cab2673e021b072a852d1, Linux 47d253c485491caaf70d8cd8c0248ae26e42581f, Linux 35ab679e8bb5a81a4f922d3efbd43e32bce69274, Linux 76aa2440deb9a35507590f2c981a69a57ecd305d, Linux 518d5ddafeb084d6d9b1773ed85164300037d0e6, Linux 026e24cf31733dbd97f41cc9bc5273ace428eeec. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-36959?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36959>

HTML: <https://flawdb.com/CVE-2024-36959> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36959>
