CVE-2024-36940

pinctrl: core: delete incorrect free in pinctrl_enable()

At a glance

Severity
HIGH 7.8
EPSS
EPSS 0.25 % · percentile 16 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: core: delete incorrect free in pinctrl_enable() The "pctldev" struct is allocated in devm_pinctrl_register_and_init(). It's a devm_ managed pointer that is freed by devm_pinctrl_dev_release(), so freeing it in pinctrl_enable() will lead to a double free. The devm_pinctrl_dev_release() function frees the pindescs and destroys the mutex as well.

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 6118714275f0a313ecc296a87ed1af32d9691bed < 735f4c6b6771eafe336404c157ca683ad72a040d ; affected 6118714275f0a313ecc296a87ed1af32d9691bed < cdaa171473d98962ae86f2a663d398fda2fbeefd ; affected 6118714275f0a313ecc296a87ed1af32d9691bed < 288bc4aa75f150d6f1ee82dd43c6da1b438b6068 ; affected 6118714275f0a313ecc296a87ed1af32d9691bed < 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca ; affected 6118714275f0a313ecc296a87ed1af32d9691bed < ac7d65795827dc0cf7662384ed27caf4066bd72e ; affected 6118714275f0a313ecc296a87ed1af32d9691bed < 558c8039fdf596a584a92c171cbf3298919c448c
Linux · Linuxaffected 4.11 ; unaffected 0 < 4.11 ; unaffected 4.19.314 ≤ 4.19.* ; unaffected 5.4.276 ≤ 5.4.* ; unaffected 5.10.217 ≤ 5.10.* ; unaffected 5.15.159 ≤ 5.15.*

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD