Linux Kernel pinctrl doublefree in pinctrl_enable()
CVE-2024-36940 Published on May 30, 2024

pinctrl: core: delete incorrect free in pinctrl_enable()
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.

NVD


Products Associated with CVE-2024-36940

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-36940 are published in these products:

 
 
 

Affected Versions

Linux: Linux: Siemens RUGGEDCOM RST2428P: Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family: Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family: Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem:

Exploit Probability

EPSS
0.02%
Percentile
6.54%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.