CVE-2024-36940: 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.
Security readout for executives and security teams
Plain-English summary
A flaw in Linux pin-control code can free the same kernel object twice. If a local, low-privileged user can reach the vulnerable path, resulting memory corruption could crash the system or potentially compromise kernel confidentiality and integrity. The supplied evidence does not establish remote reachability or active exploitation.
Executive priority
Use an accelerated patch cycle, especially for shared Linux hosts or systems executing untrusted local workloads. The potential impact is severe, but the local attack requirement and absence of cited active exploitation make this less urgent than a remotely exploitable or KEV-listed flaw. Require owners to verify vendor backports rather than relying solely on kernel version labels.
Technical view
The pctldev object is allocated as device-managed memory in devm_pinctrl_register_and_init() and released by devm_pinctrl_dev_release(). An incorrect free in pinctrl_enable() can therefore cause a double free. The managed release also frees pin descriptors and destroys the mutex. Referenced Linux stable commits remove the incorrect free across kernel branches.
Likely exposure
Exposure is limited to Linux systems containing the affected pinctrl implementation where a local user or workload can exercise the vulnerable path. The bundle lists affected kernel versions but does not clearly define every vulnerable-to-fixed range. Distribution and appliance backports make exact package-level verification necessary.
Exploitation context
CVSS 3.1 scores this 7.8: local access, low complexity, low privileges, no user interaction, and potentially high confidentiality, integrity, and availability impact. The bundle marks KEV false, and no cited source reports active exploitation or a public proof of concept. Internet-scale remote exploitation is not supported by the evidence.
Researcher notes
The supplied affected-version data is ambiguous: it includes an unusual "0" entry and repeated commit identifiers under an unaffected record. Establish exposure through branch ancestry and vendor backport evidence. The bundle supplies no CWE classification, trigger prerequisites, exploit evidence, or product-specific applicability beyond Linux; Siemens references exist but their contents were not provided.
Mitigation direction
Install a vendor-supported kernel update containing the applicable Linux stable fix.
Check distribution and appliance advisories for package-specific backport status.
Restrict local shell access and untrusted workload execution until affected systems are updated.
Prioritize systems permitting multiple users, containers, plugins, or other locally executed untrusted code.
Validation and detection
Inventory each system's exact running kernel and vendor package revision.
Compare package revisions with applicable distribution or appliance security guidance.
Verify source, package changelogs, or vendor records include the relevant stable fix.
After maintenance, confirm systems are running the updated kernel rather than only having it installed.
Review kernel crash records for pinctrl-related memory corruption, while treating absence as inconclusive.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-36940 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.