CVE-2024-36893: usb: typec: tcpm: Check for port partner validity before consuming it
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.94-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.8.11-1 - Upgrade
Upgrade
debian/linuxto 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 - 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
Frequently Asked Questions
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.
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.
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.
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.
Is there a known exploit for CVE-2024-36893?
As of now, there are no publicly disclosed exploits specifically targeting CVE-2024-36893.