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 8BF75381E85 for ; Sat, 25 Jul 2026 08:54:00 +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=1784969641; cv=none; b=EXYei3vgGeJCMp24uJyh0U4WkvUMaq7ix9FZSEh+11C5WsRe3ropQZb06k2f3h/qvpvJ7ht4TKUki1gGimBjtw8x460I8lD/eupsC4qStP14I4tZXAxc2USmAnfcNTjQVTmxAnf8PlJJ2dHnrB1WOh5VFwN1jzbSiiH6J2SlGSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969641; c=relaxed/simple; bh=37z56rEQbMfdF8nbrl3Co+MVnMbNXQXUFLFJGiCN7ao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=biYIfLmT3U0815zunCbLsvzwgy5z0xQ7Hfmfi1TUkEA43xhY19ZPn3u/Tx/wOaiYhaqmjGn2dIcHEHC+AnXtfCjdNbI3WgIBnRFVvyULuqQsvizVjj59xnQPImpCGtdHRwWYBT4gz/l7Htrr5CMLYMA8wIf5+8fgCdGW85iD50E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sNEamyjz; 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="sNEamyjz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0A901F000E9; Sat, 25 Jul 2026 08:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969640; bh=kiMw13bru4pdqbUXKVFZM8V9oAUU3iy+LVIUTz0GarI=; h=From:To:Cc:Subject:Date:Reply-To; b=sNEamyjzFfzWtJJUDH4yix9fDSLNrD0HESElkScpOiCEMXFd1Xf7PisPLAYgivit0 1Yj5ax3fmTEmAcj3TLc/GO8x1uz/9B6mbZMLT4L/bbM0q82ws+vp6UDpOmEAGjYqtL oZwr6X2/BlS7zoiRbI4nVwVcn4XGNAZ6xz/EuZQs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64329: usb: typec: ucsi: ccg: Fix use-after-free of ucsi on remove Date: Sat, 25 Jul 2026 10:49:06 +0200 Message-ID: <2026072513-CVE-2026-64329-017c@gregkh> X-Mailer: git-send-email 2.55.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=4141; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U9bdgNcuUQo3warYQVXie+ptX7N58HhM1QxEiD2ntQM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFb572z+u4rrtXvXJ9ZOKuLf8xTssR0S5ePWK17zjC 9HeP125I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby5S7DgjMHrqatLrqupbzY 8OmiddnHAs9MTmCYn/bRQulK4Xoto3/i4lM+uj/kvMG5FQA= 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: typec: ucsi: ccg: Fix use-after-free of ucsi on remove The threaded IRQ handler ccg_irq_handler() calls ucsi_notify_common(), which on a connector-change event calls ucsi_connector_change() and schedules connector work. In ucsi_ccg_remove(), ucsi_destroy() frees uc->ucsi (kfree) before free_irq() is called, so a handler invocation already in flight may access the freed object after ucsi_destroy(). CPU 0 (remove) | CPU 1 (threaded IRQ) ucsi_destroy(uc->ucsi) | ccg_irq_handler() kfree(ucsi) // FREE | ucsi_notify_common(uc->ucsi) // USE Move free_irq() before ucsi_destroy() in the remove path. It is kept after ucsi_unregister(): ucsi_unregister() cancels connector work whose handler issues GET_CONNECTOR_STATUS through ucsi_send_command_common(), which waits for a completion that is signalled from the IRQ handler, so the IRQ must stay active until that work has been cancelled. The probe error path already orders free_irq() before ucsi_destroy(). This bug was found by static analysis. The Linux kernel CVE team has assigned CVE-2026-64329 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 5.10.261 with commit f1adeb1ff8bef1467d6961059810795d02bbad5d Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 5.15.212 with commit 99381e762273a2410a3f0216000be32b013c0ea9 Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 6.1.178 with commit 1a160076d3d0dcd4a98a4599ad96eec0790b099b Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 6.6.145 with commit c32df11147822d22facee8fa30c2e8971d12f426 Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 6.12.96 with commit 86c9ee928c4a370e323e432aaf8dca79c4ba7c85 Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 6.18.39 with commit f5c772b76bbd95de8be51cf849c6098f6af6fcf9 Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 7.1.4 with commit dbb500bad02146b388041877574829016591ddc8 Issue introduced in 5.5 with commit e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 and fixed in 7.2-rc3 with commit 1f0bdc2884b67de337215079bba166df0cdf4ac5 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-64329 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/typec/ucsi/ucsi_ccg.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/f1adeb1ff8bef1467d6961059810795d02bbad5d https://git.kernel.org/stable/c/99381e762273a2410a3f0216000be32b013c0ea9 https://git.kernel.org/stable/c/1a160076d3d0dcd4a98a4599ad96eec0790b099b https://git.kernel.org/stable/c/c32df11147822d22facee8fa30c2e8971d12f426 https://git.kernel.org/stable/c/86c9ee928c4a370e323e432aaf8dca79c4ba7c85 https://git.kernel.org/stable/c/f5c772b76bbd95de8be51cf849c6098f6af6fcf9 https://git.kernel.org/stable/c/dbb500bad02146b388041877574829016591ddc8 https://git.kernel.org/stable/c/1f0bdc2884b67de337215079bba166df0cdf4ac5