{"id":"CVE-2024-40903","published":"2024-07-12T12:20:44Z","modified":"2026-05-23T15:50:35Z","title":"usb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: tcpm: fix use-after-free case in tcpm_register_source_caps\n\nThere could be a potential use-after-free case in\ntcpm_register_source_caps(). This could happen when:\n * new (say invalid) source caps are advertised\n * the existing source caps are unregistered\n * tcpm_register_source_caps() returns with an error as\n   usb_power_delivery_register_capabilities() fails\n\nThis causes port->partner_source_caps to hold on to the now freed source\ncaps.\n\nReset port->partner_source_caps value to NULL after unregistering\nexisting source caps.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00284,"percentile":0.21387,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4053696594d7235f3638d49a00cf0f289e4b36a3","tags":[]},{"url":"https://git.kernel.org/stable/c/04c05d50fa79a41582f7bde8a1fd4377ae4a39e5","tags":[]},{"url":"https://git.kernel.org/stable/c/6b67b652849faf108a09647c7fde9b179ef24e2b","tags":[]},{"url":"https://git.kernel.org/stable/c/e7e921918d905544500ca7a95889f898121ba886","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":4.28}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 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"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:06:28.165210Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-38714","exploited":false,"provenance":"source"}}