CVE-2024-58055Published Mar 6, 2025 · Mar 6Updated Oct 28
usb: gadget: f_tcm: Don't free command immediately
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cff834c16d23d614388aab1b86d19eb67b3f80c4 · < 929b69810eec132b284ffd19047a85d961df9e4d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_tcm: Don't free command immediately
Don't prematurely free the command. Wait for the status completion of the sense status. It can be freed then. Otherwise we will double-free the command.
From the CVE record · Linux
The Linux kernel’s USB gadget f_tcm component can double-free a command if it is freed before sense-status completion. The input does not establish what an attacker could do with this flaw or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their version is affected; no affected versions are specified in the input.