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 B3DEE39E19A for ; Sun, 19 Jul 2026 14:58:47 +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=1784473128; cv=none; b=kfQ1id6EJ6NQRzBB4TSyva5HNS2ImPSfBrsbyvJ1wDiCza4zGhBTDh1eUKD2o0rln5BC4JkfdnkUdfVZrFW+pceSg0wDrqMQm+UzuVmuxTeJH3W5hULgWyZBv/8syWT07c8nUvdLQQTL3BLhvps424UehlHpAWSuLLiarIbqVJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473128; c=relaxed/simple; bh=PVjgURZatU8XST/dHDYbys7/oBunjJQNeZJ5jNrfQs8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LBiA7BpdLaR/0gU4XSfyeB7bEOu1h1DfxXkU28htCf23xOkbgW8mdvKZLWHGTLHTfYeNGMHgvrZxpTaOoRPzavEaYtDlUG5fqNjDlnIu/zkPLGAPZyJDIQAgyXg5KgwlhJMz1CQa++b3yuvXA10jUlCJNYyzH3HpBPLu4VexYZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cimYe0Zw; 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="cimYe0Zw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1387B1F000E9; Sun, 19 Jul 2026 14:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473127; bh=1BikROO3O4piJ6Bli6bFJptKpEtyAIDumWdFlG5HA/s=; h=From:To:Cc:Subject:Date:Reply-To; b=cimYe0ZwgruG4D1A81FlBrNyMqqkj//aSgvOPscihflszyT1klCKetwm5nv8282fF WRokb4TXw2Xw4UinyAMliqkvQWyFjE75e8y3pPMO8kaZY2U7SX3fQGhNrc4JMI+Sz2 6pdt8/D7sw9AYtIJY6Y8M+zt8RQ+eeBQGJziK1hA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63905: usbip: vudc: Fix use after free bug in vudc_remove due to race condition Date: Sun, 19 Jul 2026 16:56:05 +0200 Message-ID: <2026071944-CVE-2026-63905-909d@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=4667; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+b1CPqx/tuZtt/49dQ5IusKBGvFIShUahmp4nfWx6ns=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxTwuW3P5mv//VnNW1SatzanvfNkpPf/y8xo9xP3/Qn bNb1K9s6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ/KtjmKfSxlrE7pyqn17j xrpE6KFSau+/DwwLtnneMu+f/a3XY9llJ+vXPNe2Pms7BgA= 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: usbip: vudc: Fix use after free bug in vudc_remove due to race condition This patch follows up Zheng Wang's 2023 report of a use-after-free in vudc_remove(). The original thread stalled on Shuah Khan's request for runtime testing of the unplug/unbind path. This patch supplies that testing and keeps Zheng's original fix shape. In vudc_probe(), v_init_timer() binds udc->tr_timer.timer to v_timer(). usbip_sockfd_store() starts the timer via v_start_timer()/v_kick_timer(). vudc_remove() can then free the containing struct vudc while the timer is still pending or executing. KASAN confirms the race on an unpatched x86_64 QEMU guest with CONFIG_KASAN=y, CONFIG_USBIP_VUDC=y, CONFIG_USB_ZERO=y, and a tight loop that repeatedly writes a socket fd to usbip_sockfd, closes the socket pair, and unbinds/rebinds usbip-vudc.0: BUG: KASAN: slab-use-after-free in __run_timer_base.part.0+0x8ba/0x8e0 Write of size 8 at addr ffff888001b80740 by task trigger_and_unb/239 Allocated by task 239: vudc_probe+0x4d/0xaa0 Freed by task 239: kfree+0x18f/0x520 device_release_driver_internal+0x388/0x540 unbind_store+0xd9/0x100 This lands in the timer core rather than v_timer() itself because the embedded timer_list is being walked after its containing struct vudc has already been freed. The underlying lifetime bug is the same one Zheng reported. With v_stop_timer() called from vudc_remove() and the timer deleted synchronously, the same harness completed 5000 bind/unbind iterations with no KASAN report. The Linux kernel CVE team has assigned CVE-2026-63905 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 5.10.259 with commit 61704e5cf9cd7464b510eb606e7e2978b1160a64 Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 5.15.210 with commit dcc1c90b28b28b7c493547506297e78653f81952 Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 6.1.176 with commit 1036ac6148995feaf486014d32bf26bf993c06a9 Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 6.6.143 with commit a0638db2340ee053ab0450656a763fd111475e54 Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 6.12.93 with commit d07ed707467ce05ea9c03412d0c5ee9d0fe386a6 Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 6.18.35 with commit 88d459e5b5a46da1ef9fd6f52d9439343edeec88 Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 7.0.12 with commit 207bf80362df3fce8ebc9723351dcb1bc6d9ed0f Issue introduced in 4.7 with commit b6a0ca11186759ad7045d68a5447b1e89f658384 and fixed in 7.1 with commit d96209626a29ea64666be98c30b30ac82e5f1be6 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-63905 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/usbip/vudc_dev.c drivers/usb/usbip/vudc_transfer.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/61704e5cf9cd7464b510eb606e7e2978b1160a64 https://git.kernel.org/stable/c/dcc1c90b28b28b7c493547506297e78653f81952 https://git.kernel.org/stable/c/1036ac6148995feaf486014d32bf26bf993c06a9 https://git.kernel.org/stable/c/a0638db2340ee053ab0450656a763fd111475e54 https://git.kernel.org/stable/c/d07ed707467ce05ea9c03412d0c5ee9d0fe386a6 https://git.kernel.org/stable/c/88d459e5b5a46da1ef9fd6f52d9439343edeec88 https://git.kernel.org/stable/c/207bf80362df3fce8ebc9723351dcb1bc6d9ed0f https://git.kernel.org/stable/c/d96209626a29ea64666be98c30b30ac82e5f1be6