Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF5633314DE for ; Sun, 18 Oct 2026 16:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340036; cv=none; b=J+/ftRqgvzCSMwmO8EpDT85mHX8vKSkaKt8uBvkIg+ycVszaQE7AnxDG+EX7qIEQ1K/yZbNLmAp3DTqJDUGvZ63gJsoHbg5T9LHfa8lpAfzrGFZ4oXGiuyaXQ5y+YOjqYsD8LzyIcIiD1aGkVezM0iCQvV5eKNTiwhrMn+Mr46o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340036; c=relaxed/simple; bh=+HYQr0c5AlTu+f/8rHr3ihcUICRffo5UqYd5wnv7uoY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q3N4uvTEAKta/Sb8ypmx51SlGQ5SMP+I0oNjjlfqWVrwrmh7Plr5adhdJegnWxi7eHQJZ7eMKBhBB66zjJkXItb2PLur3I6iAfcxBmh2SjPwQQp2JfHVqOpWLWcWlkiVrTu2b0GYfLk9axhBe8gEZR4RC5Q0EYYbPyoXUylLXgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O91AF9jT; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="O91AF9jT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E92F51F000C4; Sun, 18 Oct 2026 16:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340035; bh=Nf11sGVMt67yHC8Ejl16u0bKPeOUfxKuebQCo+zKh6M=; h=From:To:Cc:Subject:Date:Reply-To; b=O91AF9jTdVq+67aC5mxZXa7DpB7TwgauqnAJViJHSGSBQDGWo9onWENb4I+S7Hc9x wT0N8aK5Nkh1NtOH4/jXu0sIqTnU43wGKPUdcSFhE6hjamJQjrJa385sGDhu1L/yDg //p9iCbMjeVhuE4RRumKk27ltXe02WvpGMbHrdN8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98773: USB: cdc-acm: skip URB restart in port_shutdown if disconnected Date: Sun, 18 Oct 2026 17:45:48 +0200 Message-ID: <2026101819-CVE-2026-98773-0cba@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3678; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TkW44fXzyAp9aEra6X8xubY9tTzdAiTcm+GLNVFNK0s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXgafdd0Q4vrobeiS+ssB9mvKOswY9HMVPTQMnkW+a F08a/qhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIazXDgvmJd75Luf4QiNFl WJX/nnPnotUrHzHMz5r8QmD1/ec1Out+NzX7Oz5gy53lDQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-98773 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.83 with commit 603d5a7110832e10165d21f9a1486399457177de and fixed in 6.12.113 with commit 9742905d9ed5bf23ebe4c100dec80b6bc50fb522 Issue introduced in 6.18.24 with commit 5d29d7ff8679e5a525f22da467ba33c042e8029b and fixed in 6.18.56 with commit a0ed07b5bbb2d8fcef86810453216070691816e7 Issue introduced in 7.1 with commit f58752ebcb35e156c85cd1a82d6579c7af3b9023 and fixed in 7.2.10 with commit 420ca35af891d33522cc08504768ccd60a4c450a Issue introduced in 7.1 with commit f58752ebcb35e156c85cd1a82d6579c7af3b9023 and fixed in 7.3-rc6 with commit dc614d6bc991740d41d5a99ac7765c4b675dda88 Issue introduced in 6.1.175 with commit d826061aa64cb28089bf4c73e301dd7928662b84 Issue introduced in 6.6.136 with commit 8fb82e3555a7d56a05d8ef0edee9859f889c0860 Issue introduced in 6.19.14 with commit 283f8162cc3c82086537cbc7dc01870dbeb07a91 Issue introduced in 7.0.1 with commit f77f10bc76c2da86b4248269472f6d971e37828b Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98773 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/usb/class/cdc-acm.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/9742905d9ed5bf23ebe4c100dec80b6bc50fb522 https://git.kernel.org/stable/c/a0ed07b5bbb2d8fcef86810453216070691816e7 https://git.kernel.org/stable/c/420ca35af891d33522cc08504768ccd60a4c450a https://git.kernel.org/stable/c/dc614d6bc991740d41d5a99ac7765c4b675dda88