CVE-2024-40903

usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps

HIGH
7.8
CVSS Score
Published: July 12, 2024 at 12:20 PM UTC
Updated: June 17, 2026 at 07:46 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps There could be a potential use-after-free case in tcpm_register_source_caps(). This could happen when: * new (say invalid) source caps are advertised * the existing source caps are unregistered * tcpm_register_source_caps() returns with an error as usb_power_delivery_register_capabilities() fails This causes port->partner_source_caps to hold on to the now freed source caps. Reset port->partner_source_caps value to NULL after unregistering existing source caps.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.8.106.1.61 ≤ v < 6.1.956.1.91 ≤ v < 6.1.956.6.31 ≤ v < 6.6.356.8.10 ≤ v < 6.96.9 ≤ v < 6.106.9 ≤ v < 6.9.6230ecdf71a644c9c73e0e6735b33173074ae3f946.1.916.10 rc16.10 rc26.10 rc36.6.316.8.10931b5f302d6f7126dbd6879c42d3d6ca580be423b16abab1fb645c4b7a86c357dc83a48cf21c2795cfcd544a9974c6b6fb37ca385146e4796dcaf66d
Vendor states this is fixed in 04c05d50fa79a41582f7bde8a1fd4377ae4a39e5 (fixed)
Vendor states this is fixed in 4053696594d7235f3638d49a00cf0f289e4b36a3 (fixed)
Vendor states this is fixed in 6b67b652849faf108a09647c7fde9b179ef24e2b (fixed)
Vendor states this is fixed in e7e921918d905544500ca7a95889f898121ba886 (fixed)
Vendor states this is fixed in 6.1.95 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.35 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)
Vendor states this is fixed in 6.9.6 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/04c05d50fa79a41582f7bde8a1fd4377ae4a39e5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4053696594d7235f3638d49a00cf0f289e4b36a3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6b67b652849faf108a09647c7fde9b179ef24e2b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e7e921918d905544500ca7a95889f898121ba886
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card