Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.8

CVE-2024-58055: Linux Kernel: USB gadget commands can be double-freed

CVE-2024-58055
Summary

A software bug in the Linux kernel's USB gadget driver could cause a command to be freed too early, leading to errors. This can cause data corruption or crashes. Update your Linux kernel to the fixed version to prevent this issue.

What to do

No fix is available yet. Check with your software vendor for updates.

Affected software
VendorProductAffected versions
linux linux_kernel >= 4.6, < 5.4.291
>= 5.5, < 5.10.235
>= 5.11, < 5.15.179
>= 5.16, < 6.1.129
>= 6.2, < 6.6.76
>= 6.7, < 6.12.13
>= 6.13, < 6.13.2
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Original title
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 se...
Original description
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.
nvd CVSS3.1 7.8
Vulnerability type
CWE-415
Published: 6 Mar 2025 · Updated: 20 Jul 2026 · First seen: 7 Mar 2026