Impact
The kernel bug is a race condition within the FunctionFS gadget subsystem that leads to a use‑after‑free of a usb_request object. When a DMABUF cancellation completes, the request is freed while another path still retains a back‑pointer to it, and a subsequent usb_ep_dequeue() call dereferences the stale pointer. This is a CWE‑366 race condition that can corrupt the kernel heap and, depending on the context, may result in a kernel crash or privilege escalation. The flaw can only be exercised through the FunctionFS device node, typically accessed by a privileged gadget daemon, and is not reachable by unprivileged userspace or from a USB host.
Affected Systems
All Linux kernels that implement the FunctionFS gadget subsystem—such as those running adbd, UMS, or composite gadget services—are affected. The defect was merged into mainline in 2026, meaning any kernel prior to that commit may be vulnerable. The attack surface is exposed via the FunctionFS device node, which is normally owned by the privileged gadget daemon.
Risk and Exploitability
The CVSS score of 7.8 denotes high severity, yet the EPSS score of less than 1 % indicates exploitation is currently unlikely. The vulnerability is not listed in the CISA KEV catalog. Attack requires local privileged access to the FunctionFS interface; deployments that delegate non‑root privileges to gadget daemons widen the risk to lower‑privileged services. The principal danger is kernel memory corruption resulting in denial of service or, in the worst case, local privilege escalation if code execution is achieved.
OpenCVE Enrichment
Ubuntu USN