CVE-2024-36940 pinctrl: core: delete incorrect free in pinctrl_enable()
HighCVSS 7.8
EPSS 0.25%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
13 packages: 12 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.94-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +20 more | 6.1.94-1 | Fixed |
| debian/linux(Debian 13) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| debian/linux(Debian 14) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| Linux kernel | < 4.19.314; < 5.4.276; < 5.10.217; < 5.15.159 +26 more | 4.19.314, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10, 6.9, 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca, 288bc4aa75f150d6f1ee82dd43c6da1b438b6068, 558c8039fdf596a584a92c171cbf3298919c448c, 735f4c6b6771eafe336404c157ca683ad72a040d, 5038a66dad0199de60e5671603ea6623eb9e5c79, ac7d65795827dc0cf7662384ed27caf4066bd72e, cdaa171473d98962ae86f2a663d398fda2fbeefd, f9f1e321d53e4c5b666b66e5b43da29841fb55ba | Fixed |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 | Fixed |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 | Fixed |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-118.128 | 5.15.0-118.128 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-40.40 | 6.8.0-40.40 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1064.69 | 5.15.0-1064.69 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1060.63 | 5.15.0-1060.63 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.94-1 | 6.1.94-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:13) | < 6.8.11-1 | 6.8.11-1 |
Show 40 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:14) | < 6.8.11-1 | 6.8.11-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-118.128 | 5.15.0-118.128 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1064.69 | 5.15.0-1064.69 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1060.63 | 5.15.0-1060.63 |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < 735f4c6b6771eafe336404c157ca683ad72a040d | 735f4c6b6771eafe336404c157ca683ad72a040d |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < cdaa171473d98962ae86f2a663d398fda2fbeefd | cdaa171473d98962ae86f2a663d398fda2fbeefd |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < 288bc4aa75f150d6f1ee82dd43c6da1b438b6068 | 288bc4aa75f150d6f1ee82dd43c6da1b438b6068 |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca | 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < ac7d65795827dc0cf7662384ed27caf4066bd72e | ac7d65795827dc0cf7662384ed27caf4066bd72e |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < 558c8039fdf596a584a92c171cbf3298919c448c | 558c8039fdf596a584a92c171cbf3298919c448c |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < f9f1e321d53e4c5b666b66e5b43da29841fb55ba | f9f1e321d53e4c5b666b66e5b43da29841fb55ba |
| Linux kernel | >= 6118714275f0a313ecc296a87ed1af32d9691bed, < 5038a66dad0199de60e5671603ea6623eb9e5c79 | 5038a66dad0199de60e5671603ea6623eb9e5c79 |
| Linux kernel | = 4.11 | No fix listed |
| Linux kernel | < 4.19.314 | 4.19.314 |
| Linux kernel | < 5.4.276 | 5.4.276 |
| Linux kernel | < 5.10.217 | 5.10.217 |
| Linux kernel | < 5.15.159 | 5.15.159 |
| Linux kernel | < 6.1.91 | 6.1.91 |
| Linux kernel | < 6.6.31 | 6.6.31 |
| Linux kernel | < 6.8.10 | 6.8.10 |
| Linux kernel | < 6.9 | 6.9 |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-40.40 | 6.8.0-40.40 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 |
| Linux kernel | >= 4.11, < 4.19.314 | 4.19.314 |
| Linux kernel | >= 4.20, < 5.4.276 | 5.4.276 |
| Linux kernel | >= 5.5, < 5.10.217 | 5.10.217 |
| Linux kernel | >= 5.11, < 5.15.159 | 5.15.159 |
| Linux kernel | >= 5.16, < 6.1.91 | 6.1.91 |
| Linux kernel | >= 6.2, < 6.6.31 | 6.6.31 |
| Linux kernel | >= 6.7, < 6.8.10 | 6.8.10 |
| Linux kernel | = 6.9-rc1 | No fix listed |
| Linux kernel | = 6.9-rc2 | No fix listed |
| Linux kernel | = 6.9-rc3 | No fix listed |
| Linux kernel | = 6.9-rc4 | No fix listed |
| Linux kernel | = 6.9-rc5 | No fix listed |
| Linux kernel | = 6.9-rc6 | No fix listed |
| debian linux | = 10.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-36940 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6949-1 vendor-advisory
- USN-6950-1 vendor-advisory
- USN-6951-1 vendor-advisory
- USN-6952-1 vendor-advisory
- USN-6953-1 vendor-advisory
- USN-6955-1 vendor-advisory
- USN-6956-1 vendor-advisory
- USN-6957-1 vendor-advisory
- USN-6950-2 vendor-advisory
- USN-6950-3 vendor-advisory
- USN-6949-2 vendor-advisory
- USN-6952-2 vendor-advisory
- USN-6951-2 vendor-advisory
- USN-6951-3 vendor-advisory
- USN-6950-4 vendor-advisory
- USN-6951-4 vendor-advisory
- USN-6972-1 vendor-advisory
- USN-6972-2 vendor-advisory
- USN-6979-1 vendor-advisory
- USN-6972-3 vendor-advisory
- USN-6972-4 vendor-advisory
- USN-7019-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list
- lists.debian.org mailing-list
- cert-portal.siemens.com
- cert-portal.siemens.com
- ENISA EUVD EUVD-2024-36290 third-party-advisory