# CVE-2026-80854: usb: gadget: f\_tcm: keep port count until LUN teardown completes

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-09-04 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-80854, DEBIAN-CVE-2026-80854
- Record: https://cvemate.com/vulnerability/CVE-2026-80854 · JSON: https://cvemate.com/vulnerability/CVE-2026-80854/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_tcm: keep port count until LUN teardown completes

tcm_usbg_drop_nexus() permits session removal once tpg_port_count
reaches zero. However, usbg_port_unlink() currently decrements that
count from the fabric_pre_unlink() callback, before core_dev_del_lun()
waits for active se_lun references to drain.

If removal of the last LUN races a nexus removal, the latter can observe
a zero port count and call target_remove_session(). This frees
sess_cmd_map while an in-flight struct usbg_cmd, including its work item,
can still be accessed.

Overlapping the last-LUN unlink with nexus removal reproduces this
lifetime violation as a DEBUG_OBJECTS "free active" warning for
usbg_cmd_work, followed by a target-core BUG/Oops.

The generic target-core unlink path has no callback after
core_dev_del_lun() completes. Add an optional fabric_post_unlink()
callback and use it for the f_tcm port count. The count now remains
nonzero until core_dev_del_lun() has finished draining active LUN
references, preventing nexus removal from freeing the session during
command completion.
```

## Signals

- CVSS: none published
- EPSS: 0.182%, percentile 8.07%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 172)

- debian linux (Debian): \< 6.1.187-1 \| \< 6.12.111-1 \| \< 7.1.13-1
- debian linux-6.12 (Debian): \< 6.12.111-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-202.212 \| \< 6.8.0-149.149 \| \< 7.0.0-42.42
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126 \| \< 6.8.0-1069.74 \| \< 7.0.0-1016.17
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1017.18~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126+fips1 \| \< 6.8.0-1069.74+fips1

## References (first 20 of 33)

- <https://git.kernel.org/stable/c/c494c5562ca69b61a82f566e3b87a445d2c28929>
- <https://git.kernel.org/stable/c/c1f359d9a5efed458946063de65ddbeaacc4f165>
- <https://git.kernel.org/stable/c/178f59a0bccd3f66cdfa5184310f31a58b7257c4>
- <https://git.kernel.org/stable/c/ad6f0375d2e93a1d8c015463e5e92dfcb26e311b>
- <https://git.kernel.org/stable/c/2efbfd42441d3ef8137aff2d59e9835e1d5ae780>
- <https://git.kernel.org/stable/c/85aa61fedcb4eb13f3dc5db73f6dc359f41f5d95>
- <https://git.kernel.org/stable/c/bbd6aa311a9f4dd17822c7557451458d3d2e980b>
- <https://git.kernel.org/stable/c/eaa96a8458f54d6cf0954242ab8b1df2a6fccafa>
- <https://git.kernel.org/stable/c/c39d0916da47d94909391876c9e5bd429ea7b1b9>
- <https://ubuntu.com/security/CVE-2026-80854>
- <https://www.cve.org/CVERecord?id=CVE-2026-80854>
- <https://git.kernel.org/linus/c39d0916da47d94909391876c9e5bd429ea7b1b9>
- <https://security-tracker.debian.org/tracker/CVE-2026-80854>
- <https://ubuntu.com/security/notices/USN-8962-1>
- <https://ubuntu.com/security/notices/USN-8961-1>
- <https://ubuntu.com/security/notices/USN-8959-1>
- <https://ubuntu.com/security/notices/USN-8963-1>
- <https://ubuntu.com/security/notices/USN-9020-1>
- <https://ubuntu.com/security/notices/USN-9023-1>
- <https://ubuntu.com/security/notices/USN-9025-1>

---

Data as of 2026-12-06T04:48:49.785Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
