CVE-2024-36940
pinctrl: core: delete incorrect free in pinctrl_enable()
Check your servers for CVE-2024-36940
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36940 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before 735f4c6b6771eafe336404c157ca683ad72a040d affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before cdaa171473d98962ae86f2a663d398fda2fbeefd affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before 288bc4aa75f150d6f1ee82dd43c6da1b438b6068 affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before 41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before ac7d65795827dc0cf7662384ed27caf4066bd72e affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before 558c8039fdf596a584a92c171cbf3298919c448c affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before f9f1e321d53e4c5b666b66e5b43da29841fb55ba affected from 6118714275f0a313ecc296a87ed1af32d9691bed, before 5038a66dad0199de60e5671603ea6623eb9e5c79
Other versions: unaffected
|
| Linux |
affected 4.11 unaffected before 4.11 unaffected from 4.19.314 up to and including 4.19.* unaffected from 5.4.276 up to and including 5.4.* unaffected from 5.10.217 up to and including 5.10.* unaffected from 5.15.159 up to and including 5.15.* unaffected from 6.1.91 up to and including 6.1.* unaffected from 6.6.31 up to and including 6.6.* unaffected from 6.8.10 up to and including 6.8.* unaffected 6.9 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36940 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36940
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-36940
trivy image --scanners vuln IMAGE | grep CVE-2024-36940
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d git.kernel.org
- https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd git.kernel.org
- https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068 git.kernel.org
- https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca git.kernel.org
- https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e git.kernel.org
- https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c git.kernel.org
- https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba git.kernel.org
- https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html cert-portal.siemens.com
Source: the record CVE-2024-36940 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse