CVE-2024-36959
JSON

5.5medium

pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 11 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.*
CVE List
linux linux_kernelfrom 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 and 2 moreNVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: pinctrl: devicetree: corrige la fuga de recuento de referencia en pinctrl_dt_to_map() Si no asignamos el búfer de nombre de propiedad, debemos eliminar el recuento de referencias que acabamos de tomar. Debido a que pinctrl_dt_free_maps() incluye la operación de eliminación, aquí la llamamos directamente.

References

https://git.kernel.org/stable/c/06780473cb8a858d1d6cab2673e021b072a852d1patch
https://git.kernel.org/stable/c/47d253c485491caaf70d8cd8c0248ae26e42581fpatch
https://git.kernel.org/stable/c/35ab679e8bb5a81a4f922d3efbd43e32bce69274patch
https://git.kernel.org/stable/c/76aa2440deb9a35507590f2c981a69a57ecd305dpatch
https://git.kernel.org/stable/c/518d5ddafeb084d6d9b1773ed85164300037d0e6patch
https://git.kernel.org/stable/c/026e24cf31733dbd97f41cc9bc5273ace428eeecpatch
https://git.kernel.org/stable/c/c7e02ccc9fdc496fe51e440e3e66ac36509ca049patch
https://git.kernel.org/stable/c/a0cedbcc8852d6c77b00634b81e41f17f29d9404patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlmailing-list
https://lists.debian.org/debian-lts-announce/2024/06/msg00019.htmlmailing-list
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-613116.html

Sources

SourceRecordLicence
CVE ListCVE-2024-36959 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-36959 changed 2026-10-15Public domain