usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.95, 6.6.35, 6.9.6
- CVEs
- CVE-2024-40903
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 02:52 UTC · Revision 1
Source evidence
usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps
core-osv · Original sourcePublished 12 Jul 2024, 12:20 UTC
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.
osv:CVE-2024-40903
Kernel
Fixed versions: 6.1.95, 6.6.35, 6.9.6
Complete source record
{
"id": "c35a895b715ed5f382a50b0b334fe4f6477b199d8f9d2dbf4c70bc8d22d47fea",
"url": "https://osv.dev/vulnerability/CVE-2024-40903",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps",
"summary": "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.",
"evidence": "osv:CVE-2024-40903",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.95",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.35",
"evidence": "/affected/1/ranges"
},
{
"value": "6.9.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-40903",
"aliases": [
"CVE-2024-40903"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "cfcd544a9974c6b6fb37ca385146e4796dcaf66d"
},
{
"fixed": "4053696594d7235f3638d49a00cf0f289e4b36a3"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b16abab1fb645c4b7a86c357dc83a48cf21c2795"
},
{
"fixed": "04c05d50fa79a41582f7bde8a1fd4377ae4a39e5"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "230ecdf71a644c9c73e0e6735b33173074ae3f94"
},
{
"fixed": "6b67b652849faf108a09647c7fde9b179ef24e2b"
},
{
"fixed": "e7e921918d905544500ca7a95889f898121ba886"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.1.91"
},
{
"fixed": "6.1.95"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.6.31"
},
{
"fixed": "6.6.35"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.8.10"
},
{
"fixed": "6.9"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "931b5f302d6f7126dbd6879c42d3d6ca580be423"
}
]
}
],
"versions": [
"v6.1.94",
"v6.1.93",
"v6.1.92",
"v6.1.91",
"v6.6.34",
"v6.6.33",
"v6.6.32",
"v6.6.31",
"v6.8.12",
"v6.8.11",
"v6.8.10"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40903.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.1.95"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.35"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.9.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40903.json"
}
}
],
"modified": "2026-10-28T02:30:46.814544410Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/04c05d50fa79a41582f7bde8a1fd4377ae4a39e5",
"https://git.kernel.org/stable/c/4053696594d7235f3638d49a00cf0f289e4b36a3",
"https://git.kernel.org/stable/c/6b67b652849faf108a09647c7fde9b179ef24e2b",
"https://git.kernel.org/stable/c/e7e921918d905544500ca7a95889f898121ba886",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40903.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-40903",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40903.json"
}
},
"related_cves": [
{
"value": "CVE-2024-40903",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 514441,
"published_at": "2024-07-12T12:20:44.367+00:00"
}