CVE-2024-36959

pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map()

No CVSS score yet EPSS 0.25%

Published 30 May 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-36959

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36959 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a988dcd3dd9e691c5ccc3324b209688f3b5453e9, before 06780473cb8a858d1d6cab2673e021b072a852d1
affected from 040f726fecd88121f3b95e70369785ad452dddf9, before 47d253c485491caaf70d8cd8c0248ae26e42581f
affected from 777430aa4ddccaa5accec6db90ffc1d47f00d471, before 35ab679e8bb5a81a4f922d3efbd43e32bce69274
affected from 97e5b508e96176f1a73888ed89df396d7041bfcb, before 76aa2440deb9a35507590f2c981a69a57ecd305d
affected from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, before 518d5ddafeb084d6d9b1773ed85164300037d0e6
affected from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, before 026e24cf31733dbd97f41cc9bc5273ace428eeec
affected from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, before c7e02ccc9fdc496fe51e440e3e66ac36509ca049
affected from 91d5c5060ee24fe8da88cd585bb43b843d2f0dce, before a0cedbcc8852d6c77b00634b81e41f17f29d9404
affected aaf552c5d53abe4659176e099575fe870d2e4768
affected b4d9f55cd38435358bc16d580612bc0d798d7b4c
affected 5834a3a98cd266ad35a229923c0adbd0addc8d68
affected from 4.19.267, before 4.19.314
affected from 5.4.225, before 5.4.276
affected from 5.10.156, before 5.10.217
affected from 5.15.80, before 5.15.159
affected from 4.9.334, before 4.10
affected from 4.14.300, before 4.15
affected from 6.0.10, before 6.1
Other versions: unaffected
Linux
affected 6.1
unaffected before 6.1
unaffected from 4.19.314 up to and including 4.19.*
unaffected from 5.4.276 up to and including 5.4.*
unaffected from 5.10.217 up to and including 5.10.*
unaffected from 5.15.159 up to and including 5.15.*
unaffected from 6.1.91 up to and including 6.1.*
unaffected from 6.6.31 up to and including 6.6.*
unaffected from 6.8.10 up to and including 6.8.*
unaffected 6.9 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36959 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36959

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-36959
trivy image --scanners vuln IMAGE | grep CVE-2024-36959

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-36959 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.