CVE-2026-80854

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> usb: gadget: f_tcm: keep port count until LUN teardown completes<br /> <br /> tcm_usbg_drop_nexus() permits session removal once tpg_port_count<br /> reaches zero. However, usbg_port_unlink() currently decrements that<br /> count from the fabric_pre_unlink() callback, before core_dev_del_lun()<br /> waits for active se_lun references to drain.<br /> <br /> If removal of the last LUN races a nexus removal, the latter can observe<br /> a zero port count and call target_remove_session(). This frees<br /> sess_cmd_map while an in-flight struct usbg_cmd, including its work item,<br /> can still be accessed.<br /> <br /> Overlapping the last-LUN unlink with nexus removal reproduces this<br /> lifetime violation as a DEBUG_OBJECTS "free active" warning for<br /> usbg_cmd_work, followed by a target-core BUG/Oops.<br /> <br /> The generic target-core unlink path has no callback after<br /> core_dev_del_lun() completes. Add an optional fabric_post_unlink()<br /> callback and use it for the f_tcm port count. The count now remains<br /> nonzero until core_dev_del_lun() has finished draining active LUN<br /> references, preventing nexus removal from freeing the session during<br /> command completion.

Impact