CVE-2024-36893: usb: typec: tcpm: Check for port partner validity before consuming it

Published May 30, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: typec: tcpm: Check for port partner validity before consuming it

typecregisterpartner() 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 : runstatemachine+0x1bc8/0x1c08 lr : runstatemachine+0x1b90/0x1c08 .. Call trace: runstatemachine+0x1bc8/0x1c08 tcpmstatemachinework+0x94/0xe4 kthreadworkerfn+0x118/0x328 kthread+0x1d0/0x23c retfromfork+0x10/0x20

To prevent the crash, check for port->partner validity before derefencing it in all the call sites.

Affected Software

12 affected componentsFixes available
Linux Linux kernel<6.1.91
Linux Linux kernel>=6.2<6.6.31
Linux Linux kernel>=6.7<6.8.10
Microsoft azl3 kernel 6.6.29.1-5
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft azl3 kernel 6.6.35.1-4
Microsoft cbl2 kernel 5.15.176.3-1
debian/linux<6.1.94-1
6.1.94-1
debian/linux<6.8.11-1
6.8.11-1
debian/linux<6.8.11-1
6.8.11-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.94-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.8.11-1
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  4. Compensating control

    In the Linux kernel USB Type-C TCPM code, check port->partner validity before consuming or dereferencing it at all call sites, because typec_register_partner() may set port->partner to an error value or NULL.

Event History

May 30, 2024
CVE Published
via MITRE·03:28 PM
Data Sourced
via MITRE·03:28 PM
Description
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Aug 16, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-36893?

CVE-2024-36893 has a severity rating that may vary depending on the context and impact of exploitation.

2

How do I fix CVE-2024-36893?

To fix CVE-2024-36893, update your Linux kernel to the latest patched version as outlined in the security advisories.

3

What systems are affected by CVE-2024-36893?

CVE-2024-36893 affects multiple versions of the Linux kernel, specifically those prior to version 6.1.91 and between versions 6.2 and 6.6.31.

4

What type of vulnerability is CVE-2024-36893?

CVE-2024-36893 is a vulnerability related to the handling of USB type-C port partners in the Linux kernel.

5

Is there a known exploit for CVE-2024-36893?

As of now, there are no publicly disclosed exploits specifically targeting CVE-2024-36893.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203