KernelScan.io

HIGH Introduced in 7.1

cdc-acm PortShutdown UAF

CVE-2026-98773

CVSS 7.1 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: USB: cdc-acm: skip URB restart in port_shutdown if disconnected acm_port_shutdown() is called from the tty-port machinery whenever the last user closes the port. acm_disconnect() sets acm->disconnected and calls tty_port_tty_vhangup(), which eventually triggers port_shutdown(). At that point acm_disconnect() has already called acm_poison_urbs() and is about to free the control and read URBs. However, acm_port_shutdown() unconditionally calls acm_unpoison_urbs() and, when the ALWAYS_POLL_CTRL quirk is set, immediately re-submits the ctrlurb and all read URBs. If the concurrent acm_disconnect() then frees those URBs and their DMA buffers while they are in-flight, the result is a use-after-free in acm_ctrl_irq() or acm_read_bulk_callback() accessing the freed DMA memory. Fix by checking acm->disconnected after draining the delayed anchor and returning early: if we are in a disconnect path the URBs must remain poisoned and must not be resubmitted. The early return is placed after the delayed-anchor drain loop because that loop only cancels write-side accounting (wb->use = false and autopm counter) and does not touch the hardware path.

02

Engine v0.9.0

Risk summary

A local attacker with access to a USB CDC ACM device (specifically one with the ALWAYS_POLL_CTRL quirk, such as the Lenovo Yoga Book 9 touchscreen) can trigger a use-after-free by racing a port close against device disconnect. This allows arbitrary kernel memory read/write and privilege escalation. Products with exposed USB ports or that run untrusted local code are at risk.

Affecteddrivers/usb/class/cdc-acm.c (USB CDC ACM driver)

Vulnerability analysis

The CDC ACM driver's port_shutdown routine unconditionally re-activates URBs (USB Request Blocks) when the last user closes the port, even if the device is simultaneously being disconnected. During disconnect, the driver has already poisoned and is about to free those URBs and their DMA buffers. If the port shutdown resubmits the URBs before the disconnect frees them, the URBs' completion callbacks access freed DMA memory, causing a use-after-free. The fix adds a check for the disconnected flag after draining write-side accounting and returns early, keeping URBs poisoned and preventing resubmission during teardown. A local user with access to the affected USB device — either by plugging in a malicious device or interacting with an existing one — can trigger this race by repeatedly opening and closing the TTY port while the device disconnects.

03

BranchIntroducedFixed inPatch commit
6.16.1.1756.1.191d97da42e9de5
6.126.12.836.12.1139742905d9ed5
6.186.18.246.18.56a0ed07b5bbb2
6.196.19.146.20420ca35af891
6.66.6.1366.6.160d86775e79838
7.07.0.17.1dc614d6bc991
7.27.17.2.10—
mainline7.17.3—
cip/6.127.16.12.114-cip349742905d9ed5

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)