CVE-2023-52877

usb: typec: tcpm: Fix NULL pointer dereference in tcpm_pd_svdm()

No CVSS score yet EPSS 0.22%

Published 21 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2023-52877

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-2023-52877 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.

Check my servers

Description

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

usb: typec: tcpm: Fix NULL pointer dereference in tcpm_pd_svdm()

It is possible that typec_register_partner() returns ERR_PTR on failure. When port->partner is an error, a NULL pointer dereference may occur as shown below.

[91222.095236][ T319] typec port0: failed to register partner (-17) ... [91225.061491][ T319] Unable to handle kernel NULL pointer dereference at virtual address 000000000000039f [91225.274642][ T319] pc : tcpm_pd_data_request+0x310/0x13fc [91225.274646][ T319] lr : tcpm_pd_data_request+0x298/0x13fc [91225.308067][ T319] Call trace: [91225.308070][ T319] tcpm_pd_data_request+0x310/0x13fc [91225.308073][ T319] tcpm_pd_rx_handler+0x100/0x9e8 [91225.355900][ T319] kthread_worker_fn+0x178/0x58c [91225.355902][ T319] kthread+0x150/0x200 [91225.355905][ T319] ret_from_fork+0x10/0x30

Add a check for port->partner to avoid dereferencing a NULL pointer.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Jun 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.

ProductVersions
Linux
affected from 5e1d4c49fbc86dab6e005d66f066bd53c9479cde, before e5f53a68a596e04df3fde3099273435a30b6fdac
affected from 5e1d4c49fbc86dab6e005d66f066bd53c9479cde, before e7a802447c491903aa7cb45967aa2a934a4e63fc
affected from 5e1d4c49fbc86dab6e005d66f066bd53c9479cde, before 9ee038590d808a95d16adf92818dcd4752273c08
affected from 5e1d4c49fbc86dab6e005d66f066bd53c9479cde, before b37a168c0137156042a0ca9626651b5a789e822b
affected from 5e1d4c49fbc86dab6e005d66f066bd53c9479cde, before 4987daf86c152ff882d51572d154ad12e4ff3a4b
Other versions: unaffected
Linux
affected 5.12
unaffected before 5.12
unaffected from 5.15.138 up to and including 5.15.*
unaffected from 6.1.62 up to and including 6.1.*
unaffected from 6.5.11 up to and including 6.5.*
unaffected from 6.6.1 up to and including 6.6.*
unaffected 6.7 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-2023-52877 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52877

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-2023-52877
trivy image --scanners vuln IMAGE | grep CVE-2023-52877

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

Source: the record CVE-2023-52877 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.