CVE-2024-40903: usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps
Vulnerability summary
CVE-2024-40903 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 20.9% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 18 · Related 15Timeline
- 12-07-2024PublishedVulnerability first disclosed.
- 23-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.28% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu84 products
- linux< 6.8.0-44.44
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1015.16
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ cfcd544a9974c6b6fb37ca385146e4796dcaf66d, < 4053696594d7235f3638d49a00cf0f289e4b36a3 | ≥ b16abab1fb645c4b7a86c357dc83a48cf21c2795, < 04c05d50fa79a41582f7bde8a1fd4377ae4a39e5 | ≥ 230ecdf71a644c9c73e0e6735b33173074ae3f94, < 6b67b652849faf108a09647c7fde9b179ef24e2b | ≥ 230ecdf71a644c9c73e0e6735b33173074ae3f94, < e7e921918d905544500ca7a95889f898121ba886 | 931b5f302d6f7126dbd6879c42d3d6ca580be423 | ≥ 6.1.91, < 6.1.95 | ≥ 6.6.31, < 6.6.35 | ≥ 6.8.10, < 6.9 | 6.9
- linux_kernel≥ 6.1.61, < 6.1.95 | ≥ 6.6.31, < 6.6.35 | ≥ 6.9, < 6.9.6 | 6.10:rc1 | 6.10:rc2 | 6.10:rc3
Debian1 product
- linux< 6.1.99-1 | < 6.9.7-1
3 vendors · 87 products