# CVE-2024-58055: usb: gadget: f_tcm: Don't free command immediately

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-03-06T15:53:58.951Z
- Modified: 2026-06-17T08:14:31.463Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from cff834c16d23d614388aab1b86d19eb67b3f80c4 before 7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694; from cff834c16d23d614388aab1b86d19eb67b3f80c4 before 38229c35a6d7875697dfb293356407330cfcd23e; from cff834c16d23d614388aab1b86d19eb67b3f80c4 before bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a; from cff834c16d23d614388aab1b86d19eb67b3f80c4 before f0c33e7d387ccbb6870e73a43c558fefede06614; from cff834c16d23d614388aab1b86d19eb67b3f80c4 before 16907219ad6763f401700e1b57b2da4f3e07f047; from cff834c16d23d614388aab1b86d19eb67b3f80c4 before 929b69810eec132b284ffd19047a85d961df9e4d; from cff834c16d23d614388aab1b86d19eb67b3f80c4 before e6693595bd1b55af62d057a4136a89d5c2ddf0e9; from cff834c16d23d614388aab1b86d19eb67b3f80c4 before c225d006a31949d673e646d585d9569bc28feeb9; 4.6 (not affected: before 4.6; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.76 up to 6.6.*; from 6.12.13 up to 6.12.*; from 6.13.2 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.6 before 5.4.291; from 5.5 before 5.10.235; from 5.11 before 5.15.179; from 5.16 before 6.1.129; from 6.2 before 6.6.76; from 6.7 before 6.12.13; from 6.13 before 6.13.2

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694> (patch)
- <https://git.kernel.org/stable/c/38229c35a6d7875697dfb293356407330cfcd23e> (patch)
- <https://git.kernel.org/stable/c/bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a> (patch)
- <https://git.kernel.org/stable/c/f0c33e7d387ccbb6870e73a43c558fefede06614> (patch)
- <https://git.kernel.org/stable/c/16907219ad6763f401700e1b57b2da4f3e07f047> (patch)
- <https://git.kernel.org/stable/c/929b69810eec132b284ffd19047a85d961df9e4d> (patch)
- <https://git.kernel.org/stable/c/e6693595bd1b55af62d057a4136a89d5c2ddf0e9> (patch)
- <https://git.kernel.org/stable/c/c225d006a31949d673e646d585d9569bc28feeb9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

- CVE List: [CVE-2024-58055](https://www.cve.org/CVERecord?id=CVE-2024-58055), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-58055](https://nvd.nist.gov/vuln/detail/CVE-2024-58055), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-58055 · Whole record: https://cve.day/CVE-2024-58055.json · Rebuilt by cve.day 2026-11-25T22:58:52.210Z
