High severity · published May 30, 2024
CVE-2024-36940
pinctrl: core: delete incorrect free in pinctrl_enable()
7.8
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 16% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
4.11 before 4.19.314; 4.20 before 5.4.276; 5.5 before 5.10.217; 5.11 before 5.15.159; 5.16 before 6.1.91; 6.2 before 6.6.31; +7 more · source: NVD
LI
Linux · Linux
6118714275f0a313ecc296a87ed1af32d9691bed before 735f4c6b6771eafe336404c157ca683ad72a040d; 6118714275f0a313ecc296a87ed1af32d9691bed before cdaa171473d98962ae86f2a663d398fda2fbeefd; 6118714275f0a313ecc296a87ed1af32d9691bed before 288bc4aa75f150d6f1ee82dd43c6da1b438b6068; 6118714275f0a313ecc296a87ed1af32d9691bed before 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca; 6118714275f0a313ecc296a87ed1af32d9691bed before ac7d65795827dc0cf7662384ed27caf4066bd72e; 6118714275f0a313ecc296a87ed1af32d9691bed before 558c8039fdf596a584a92c171cbf3298919c448c; +3 more · source: vendor
DL
Debian Linux · Debian
10.0 · source: NVD
RR
RUGGEDCOM RST2428P · Siemens
before V3.1 · source: CISA
SX
SCALANCE XCM-/XRM-/XCH-/XRH-300 family · Siemens
before V3.1 · source: CISA
SS
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem · Siemens
before V1.1.1 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-36940
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-36940
Patch
https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068
Patch
https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca
Patch
https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79
Patch
https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c
Patch
https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d
Patch
https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
