CVE-2024-36940

pinctrl: core: delete incorrect free in pinctrl_enable()

HIGH
7.8
CVSS Score
Published: May 30, 2024 at 03:29 PM UTC
Updated: October 15, 2026 at 01:18 AM UTC
8 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.11 ≤ v < 4.19.3144.20 ≤ v < 5.4.2765.11 ≤ v < 5.15.1595.16 ≤ v < 6.1.915.5 ≤ v < 5.10.2176.2 ≤ v < 6.6.316.7 ≤ v < 6.8.106.96.9 rc16.9 rc26.9 rc36.9 rc46.9 rc56.9 rc66118714275f0a313ecc296a87ed1af32d9691bed
Vendor states this is fixed in 288bc4aa75f150d6f1ee82dd43c6da1b438b6068 (fixed)
Vendor states this is fixed in 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca (fixed)
Vendor states this is fixed in 5038a66dad0199de60e5671603ea6623eb9e5c79 (fixed)
Vendor states this is fixed in 558c8039fdf596a584a92c171cbf3298919c448c (fixed)
Vendor states this is fixed in 735f4c6b6771eafe336404c157ca683ad72a040d (fixed)
Vendor states this is fixed in ac7d65795827dc0cf7662384ed27caf4066bd72e (fixed)
Vendor states this is fixed in cdaa171473d98962ae86f2a663d398fda2fbeefd (fixed)
Vendor states this is fixed in f9f1e321d53e4c5b666b66e5b43da29841fb55ba (fixed)
Vendor states this is fixed in 4.11 (unaffected)
Vendor states this is fixed in 4.19.314 (unaffected)
Vendor states this is fixed in 5.10.217 (unaffected)
Vendor states this is fixed in 5.15.159 (unaffected)
Vendor states this is fixed in 5.4.276 (unaffected)
Vendor states this is fixed in 6.1.91 (unaffected)
Vendor states this is fixed in 6.6.31 (unaffected)
Vendor states this is fixed in 6.8.10 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement

References (12)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card