CVE-2026-80854

Source
https://cve.org/CVERecord?id=CVE-2026-80854
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80854.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-80854
Downstream
Published
2026-09-04T15:55:06.478Z
Modified
2026-09-06T03:46:53.985871116Z
Summary
usb: gadget: f_tcm: keep port count until LUN teardown completes
Details

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

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

tcmusbgdropnexus() permits session removal once tpgportcount reaches zero. However, usbgportunlink() currently decrements that count from the fabricpreunlink() callback, before coredevdellun() 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 targetremovesession(). This frees sesscmdmap 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 DEBUGOBJECTS "free active" warning for usbgcmd_work, followed by a target-core BUG/Oops.

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80854.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c52661d60f636d17e26ad834457db333bd1df494
Fixed
c494c5562ca69b61a82f566e3b87a445d2c28929
Fixed
c1f359d9a5efed458946063de65ddbeaacc4f165
Fixed
178f59a0bccd3f66cdfa5184310f31a58b7257c4
Fixed
ad6f0375d2e93a1d8c015463e5e92dfcb26e311b
Fixed
2efbfd42441d3ef8137aff2d59e9835e1d5ae780
Fixed
85aa61fedcb4eb13f3dc5db73f6dc359f41f5d95
Fixed
bbd6aa311a9f4dd17822c7557451458d3d2e980b
Fixed
eaa96a8458f54d6cf0954242ab8b1df2a6fccafa
Fixed
c39d0916da47d94909391876c9e5bd429ea7b1b9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80854.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.5.0
Fixed
5.10.269
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.220
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.187
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.156
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.108
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.49
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.13
Type
ECOSYSTEM
Events
Introduced
7.2.0
Fixed
7.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80854.json"