CVE-2024-36893
usb: typec: tcpm: Check for port partner validity before consuming it
Check your servers for CVE-2024-36893
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36893 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 30 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 31220bd89c22a18478f52fcd8069e8e2adb8f4f2, before 2a07e6f0ad8a6e504a3912cfe8dc859b7d0740a5 affected from 9b7cd3fe01f0d03cf5820b351a6be2a6e0a6da6f, before d56d2ca03cc22123fd7626967d096d8661324e57 affected from c97cd0b4b54eb42aed7f6c3c295a2d137f6d2416, before 789326cafbd1f67f424436b6bc8bdb887a364637 affected from c97cd0b4b54eb42aed7f6c3c295a2d137f6d2416, before fc2b655cb6dd2b381f1f284989721002e39b6b77 affected from c97cd0b4b54eb42aed7f6c3c295a2d137f6d2416, before ae11f04b452b5205536e1c02d31f8045eba249dd affected 2897b36d2482b84f35e659989d5cb4501fb31ccd affected cbcf107780aecf51aba68488044a416d95060b6d affected from 5.15.132, before 5.15.168 affected from 6.1.53, before 6.1.91 affected from 6.4.16, before 6.5 affected from 6.5.3, before 6.6
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 5.15.168 up to and including 5.15.* unaffected from 6.1.91 up to and including 6.1.* unaffected from 6.6.31 up to and including 6.6.* unaffected from 6.8.10 up to and including 6.8.* unaffected 6.9 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36893 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36893
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-36893
trivy image --scanners vuln IMAGE | grep CVE-2024-36893
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/2a07e6f0ad8a6e504a3912cfe8dc859b7d0740a5 git.kernel.org
- https://git.kernel.org/stable/c/d56d2ca03cc22123fd7626967d096d8661324e57 git.kernel.org
- https://git.kernel.org/stable/c/789326cafbd1f67f424436b6bc8bdb887a364637 git.kernel.org
- https://git.kernel.org/stable/c/fc2b655cb6dd2b381f1f284989721002e39b6b77 git.kernel.org
- https://git.kernel.org/stable/c/ae11f04b452b5205536e1c02d31f8045eba249dd git.kernel.org
Source: the record CVE-2024-36893 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse