CVE-2026-80854

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

No CVSS score yet EPSS 0.18%

Published 4 Sep 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-80854

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-80854 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.12% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c52661d60f636d17e26ad834457db333bd1df494, before c494c5562ca69b61a82f566e3b87a445d2c28929
affected from c52661d60f636d17e26ad834457db333bd1df494, before c1f359d9a5efed458946063de65ddbeaacc4f165
affected from c52661d60f636d17e26ad834457db333bd1df494, before 178f59a0bccd3f66cdfa5184310f31a58b7257c4
affected from c52661d60f636d17e26ad834457db333bd1df494, before ad6f0375d2e93a1d8c015463e5e92dfcb26e311b
affected from c52661d60f636d17e26ad834457db333bd1df494, before 2efbfd42441d3ef8137aff2d59e9835e1d5ae780
affected from c52661d60f636d17e26ad834457db333bd1df494, before 85aa61fedcb4eb13f3dc5db73f6dc359f41f5d95
affected from c52661d60f636d17e26ad834457db333bd1df494, before bbd6aa311a9f4dd17822c7557451458d3d2e980b
affected from c52661d60f636d17e26ad834457db333bd1df494, before eaa96a8458f54d6cf0954242ab8b1df2a6fccafa
affected from c52661d60f636d17e26ad834457db333bd1df494, before c39d0916da47d94909391876c9e5bd429ea7b1b9
Other versions: unaffected
Linux
affected 3.5
unaffected before 3.5
unaffected from 5.10.269 up to and including 5.10.*
unaffected from 5.15.220 up to and including 5.15.*
unaffected from 6.1.187 up to and including 6.1.*
unaffected from 6.6.156 up to and including 6.6.*
unaffected from 6.12.108 up to and including 6.12.*
unaffected from 6.18.49 up to and including 6.18.*
unaffected from 7.1.13 up to and including 7.1.*
unaffected from 7.2.3 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-80854 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-80854

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-80854
trivy image --scanners vuln IMAGE | grep CVE-2026-80854

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-80854 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.