CVE-2024-40903
usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps
Reported by linux · Published July 12, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.9.6, 6.6.35, 6.1.95 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | cfcd544a9974c6b6fb37ca385146e4796dcaf66d, b16abab1fb645c4b7a86c357dc83a48cf21c2795, 230ecdf71a644c9c73e0e6735b33173074ae3f94 |
| Linux | Linux | 6.9, 0, 6.1.95 |
| linux | linux_kernel | 6.1.91, 6.6.31, 6.9 |
| Linux | Linux | *, *, 230ecdf71a644c9c73e0e6735b33173074ae3f94 |
Timeline
- Jul 12, 2024 CVE Published
- Jul 13, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
- Jan 7, 2026 Security Advisory (271 in total, the first dated here)
- Jan 7, 2026 CVE Updated
- Mar 30, 2026 Distribution Patch (174 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-40903
vulnetix vdb fixes CVE-2024-40903
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-40903/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart