7.8
HIGH
CVE-2024-36940
"Linux Kernel Pinctrl Double Free Vulnerability"
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.

INFO

Published Date :

May 30, 2024, 4:15 p.m.

Last Modified :

Jan. 10, 2025, 6:29 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-36940 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
1 Debian debian_linux
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-36940.

URL Resource
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 Patch
https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd Patch
https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba 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 Patch
https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd Patch
https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba Patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html Mailing List
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Mailing List

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-36940 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-36940 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jan. 10, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE NIST CWE-415
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.11 up to (excluding) 4.19.314 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.276 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.217 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.159 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.91 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.31 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.10 *cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:*
    Changed Reference Type https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068 No Types Assigned https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068 Patch
    Changed Reference Type https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068 No Types Assigned https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068 Patch
    Changed Reference Type https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca No Types Assigned https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca Patch
    Changed Reference Type https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca No Types Assigned https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca Patch
    Changed Reference Type https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79 No Types Assigned https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79 Patch
    Changed Reference Type https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79 No Types Assigned https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79 Patch
    Changed Reference Type https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c No Types Assigned https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c Patch
    Changed Reference Type https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c No Types Assigned https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c Patch
    Changed Reference Type https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d No Types Assigned https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d Patch
    Changed Reference Type https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d No Types Assigned https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d Patch
    Changed Reference Type https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e No Types Assigned https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e Patch
    Changed Reference Type https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e No Types Assigned https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e Patch
    Changed Reference Type https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd No Types Assigned https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd Patch
    Changed Reference Type https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd No Types Assigned https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd Patch
    Changed Reference Type https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba No Types Assigned https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba Patch
    Changed Reference Type https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba No Types Assigned https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba Patch
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html Mailing List
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Mailing List
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068
    Added Reference https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca
    Added Reference https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79
    Added Reference https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c
    Added Reference https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d
    Added Reference https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e
    Added Reference https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd
    Added Reference https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba
    Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html
    Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 05, 2024

    Action Type Old Value New Value
    Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
    Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 27, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 27, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html [No types assigned]
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 30, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference kernel.org https://git.kernel.org/stable/c/735f4c6b6771eafe336404c157ca683ad72a040d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/cdaa171473d98962ae86f2a663d398fda2fbeefd [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/288bc4aa75f150d6f1ee82dd43c6da1b438b6068 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/41f88ef8ba387a12f4a2b8c400b6c9e8e54b2cca [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ac7d65795827dc0cf7662384ed27caf4066bd72e [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/558c8039fdf596a584a92c171cbf3298919c448c [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/f9f1e321d53e4c5b666b66e5b43da29841fb55ba [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/5038a66dad0199de60e5671603ea6623eb9e5c79 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-36940 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-36940 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability