CVE-2024-26932
Severity CVSS v4.0:
Pending analysis
Type:
CWE-415
Double Free
Publication date:
01/05/2024
Last modified:
05/02/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: typec: tcpm: fix double-free issue in tcpm_port_unregister_pd()<br />
<br />
When unregister pd capabilitie in tcpm, KASAN will capture below double<br />
-free issue. The root cause is the same capabilitiy will be kfreed twice,<br />
the first time is kfreed by pd_capabilities_release() and the second time<br />
is explicitly kfreed by tcpm_port_unregister_pd().<br />
<br />
[ 3.988059] BUG: KASAN: double-free in tcpm_port_unregister_pd+0x1a4/0x3dc<br />
[ 3.995001] Free of addr ffff0008164d3000 by task kworker/u16:0/10<br />
[ 4.001206]<br />
[ 4.002712] CPU: 2 PID: 10 Comm: kworker/u16:0 Not tainted 6.8.0-rc5-next-20240220-05616-g52728c567a55 #53<br />
[ 4.012402] Hardware name: Freescale i.MX8QXP MEK (DT)<br />
[ 4.017569] Workqueue: events_unbound deferred_probe_work_func<br />
[ 4.023456] Call trace:<br />
[ 4.025920] dump_backtrace+0x94/0xec<br />
[ 4.029629] show_stack+0x18/0x24<br />
[ 4.032974] dump_stack_lvl+0x78/0x90<br />
[ 4.036675] print_report+0xfc/0x5c0<br />
[ 4.040289] kasan_report_invalid_free+0xa0/0xc0<br />
[ 4.044937] __kasan_slab_free+0x124/0x154<br />
[ 4.049072] kfree+0xb4/0x1e8<br />
[ 4.052069] tcpm_port_unregister_pd+0x1a4/0x3dc<br />
[ 4.056725] tcpm_register_port+0x1dd0/0x2558<br />
[ 4.061121] tcpci_register_port+0x420/0x71c<br />
[ 4.065430] tcpci_probe+0x118/0x2e0<br />
<br />
To fix the issue, this will remove kree() from tcpm_port_unregister_pd().
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (excluding) | 6.8.3 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



