Kernel use-after-free via stale source-capabilities pointer
Published Jul 12, 2024 · Updated May 23, 2026
Use-after-free in Linux USB Type-C TCPM allows attackers to leave a freed source-capability object reachable through invalid advertisements. In tcpm_register_source_caps(), the error path unregisters existing capabilities but leaves port->partner_source_caps pointing to the freed object when replacement registration fails. Reachability requires newly advertised invalid USB Power Delivery source capabilities and a registration failure; no demonstrated crash or code execution is documented.
Summary
What happened
Use-after-free in Linux USB Type-C TCPM allows attackers to leave a freed source-capability object reachable through invalid advertisements. In tcpm_register_source_caps(), the error path unregisters existing capabilities but leaves port->partner_source_caps pointing to the freed object when replacement registration fails. Reachability requires newly advertised invalid USB Power Delivery source capabilities and a registration failure; no demonstrated crash or code execution is documented.
The record
- CVE
- CVE-2024-40903
- Published
- Jul 12, 2024
- Updated
- May 23, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Jul 12, 2024CVE publishedPublication date reported by the CVE source.
- May 23, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=230ecdf71a644c9c73e0e6735b33173074ae3f94 <6b67b652849faf108a09647c7fde9b179ef24e2b
- Affected versionversion=230ecdf71a644c9c73e0e6735b33173074ae3f94 <e7e921918d905544500ca7a95889f898121ba886
- Affected versionversion=6.1.91 <6.1.95
- Affected versionversion=6.6.31 <6.6.35
- Affected versionversion=6.8.10 <6.9
- Affected versionversion=6.9
- Affected versionversion=931b5f302d6f7126dbd6879c42d3d6ca580be423
- Affected versionversion=b16abab1fb645c4b7a86c357dc83a48cf21c2795 <04c05d50fa79a41582f7bde8a1fd4377ae4a39e5
- Affected versionversion=cfcd544a9974c6b6fb37ca385146e4796dcaf66d <4053696594d7235f3638d49a00cf0f289e4b36a3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo