5.5
MEDIUM
CVE-2024-36893
"Linux Kernel Type-C Partner Registration NULL Pointer Dereference"
Description

In the Linux kernel, the following vulnerability has been resolved: usb: typec: tcpm: Check for port partner validity before consuming it typec_register_partner() does not guarantee partner registration to always succeed. In the event of failure, port->partner is set to the error value or NULL. Given that port->partner validity is not checked, this results in the following crash: Unable to handle kernel NULL pointer dereference at virtual address xx pc : run_state_machine+0x1bc8/0x1c08 lr : run_state_machine+0x1b90/0x1c08 .. Call trace: run_state_machine+0x1bc8/0x1c08 tcpm_state_machine_work+0x94/0xe4 kthread_worker_fn+0x118/0x328 kthread+0x1d0/0x23c ret_from_fork+0x10/0x20 To prevent the crash, check for port->partner validity before derefencing it in all the call sites.

INFO

Published Date :

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

Last Modified :

June 10, 2024, 7:21 p.m.

Source :

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

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-36893 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
References to Advisories, Solutions, and Tools

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-36893 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-36893 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]

    Jun. 10, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://git.kernel.org/stable/c/789326cafbd1f67f424436b6bc8bdb887a364637 No Types Assigned https://git.kernel.org/stable/c/789326cafbd1f67f424436b6bc8bdb887a364637 Patch
    Changed Reference Type https://git.kernel.org/stable/c/ae11f04b452b5205536e1c02d31f8045eba249dd No Types Assigned https://git.kernel.org/stable/c/ae11f04b452b5205536e1c02d31f8045eba249dd Patch
    Changed Reference Type https://git.kernel.org/stable/c/d56d2ca03cc22123fd7626967d096d8661324e57 No Types Assigned https://git.kernel.org/stable/c/d56d2ca03cc22123fd7626967d096d8661324e57 Patch
    Changed Reference Type https://git.kernel.org/stable/c/fc2b655cb6dd2b381f1f284989721002e39b6b77 No Types Assigned https://git.kernel.org/stable/c/fc2b655cb6dd2b381f1f284989721002e39b6b77 Patch
    Added CWE NIST CWE-476
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions 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
  • 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: usb: typec: tcpm: Check for port partner validity before consuming it typec_register_partner() does not guarantee partner registration to always succeed. In the event of failure, port->partner is set to the error value or NULL. Given that port->partner validity is not checked, this results in the following crash: Unable to handle kernel NULL pointer dereference at virtual address xx pc : run_state_machine+0x1bc8/0x1c08 lr : run_state_machine+0x1b90/0x1c08 .. Call trace: run_state_machine+0x1bc8/0x1c08 tcpm_state_machine_work+0x94/0xe4 kthread_worker_fn+0x118/0x328 kthread+0x1d0/0x23c ret_from_fork+0x10/0x20 To prevent the crash, check for port->partner validity before derefencing it in all the call sites.
    Added Reference kernel.org https://git.kernel.org/stable/c/d56d2ca03cc22123fd7626967d096d8661324e57 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/789326cafbd1f67f424436b6bc8bdb887a364637 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/fc2b655cb6dd2b381f1f284989721002e39b6b77 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ae11f04b452b5205536e1c02d31f8045eba249dd [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-36893 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-36893 weaknesses.

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