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 A3AD43E9C2C for ; Wed, 27 May 2026 13:05:06 +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=1779887107; cv=none; b=MGhQQiBxbjoD3Zz7heEWwYzCtb4fnELyRntb8QEboKe1VXSKCKWpCRypWG0oi7CvsvmrDeFNfUQCdKjKUEr22oaZn1SsKDz4zOUqObu0qjE+s761zmKGr4h+cNoi5fwQllmE2a05U6LmoWyaGBaa6+NQqqOlYBRjfyV/jk2Ylvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887107; c=relaxed/simple; bh=JP+o5Dckx95mRkXsCTwvaevkkAJleE1Tpc/mXUPBesk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pzpZ+fCopSlYXlT2HvlQj0D8Aqu3B8tSC3C0gA5B4qw1ovFZg8buXxQ+iQ/BeP6rd/6DQwQIG9c8hEjJp9+eFMty08RCVs/zvtBFJuka8viIw62i2P7obZh1HGrP8Kq89CiT5bmFkPWTdcD2kuPPQFvgA5qds4JfNFF+JHHF3QU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E+D/f5Z8; 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="E+D/f5Z8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED3511F000E9; Wed, 27 May 2026 13:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887106; bh=+6VZ6RQ94KF6yv7JaLd4F8xxh4uWAGKiB4R2jrUGYV4=; h=From:To:Cc:Subject:Date:Reply-To; b=E+D/f5Z8wJgeSNHLLRvU7rorcdJTNXd6WSYoqjJQdFF4Au3lEnPV0PanDeuypon5U 2ZK/zBbtOcYnoQzmmD6tD6wE3Cxd6x3e2It8TpeXLp0jLxKHrainBIV0PAouadpiad +LRfB/O8S3SXWVnxAUnXn1HXzNuOcc9QR30tFRsY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46074: spi: ch341: fix memory leaks on probe failures Date: Wed, 27 May 2026 15:00:05 +0200 Message-ID: <2026052759-CVE-2026-46074-8ff5@gregkh> X-Mailer: git-send-email 2.54.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=2537; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HfnDpz9VxEkqpgjy0bnh+wUpSyOOWTdLqaM6+DrYTEA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlirybbr3Jb6F0Z5aRcvj6n4OQBe/2Zu7qtL3bzr9N34 noyQWR3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk3xuG+Z7n2VZO/J179lS/ 8Z37M7XvhWVI8DPM4WN89H1yud2JVC1RBqmHZa1+sVm2AA== 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: spi: ch341: fix memory leaks on probe failures Make sure to deregister the controller, disable pins, and kill and free the RX URB on probe failures to mirror disconnect and avoid memory leaks and use-after-free. Also add an explicit URB kill on disconnect for symmetry (even if that is not strictly required as USB core would have stopped it in the current setup). The Linux kernel CVE team has assigned CVE-2026-46074 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 8846739f52afa07e63395c80227dc544f54bd7b1 and fixed in 6.12.86 with commit 5c6518633702d7f7b1153e9d8e042af847f11ef3 Issue introduced in 6.11 with commit 8846739f52afa07e63395c80227dc544f54bd7b1 and fixed in 6.18.27 with commit ff8a7996dc8bf433efe2126ffdaee5b374a89e30 Issue introduced in 6.11 with commit 8846739f52afa07e63395c80227dc544f54bd7b1 and fixed in 7.0.4 with commit 9bee2faf9e21c796d0d222c9d84a98f41bd303a0 Issue introduced in 6.11 with commit 8846739f52afa07e63395c80227dc544f54bd7b1 and fixed in 7.1-rc1 with commit b99e3ddb91b499d920e63a2daff8880be68cfe9e 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-46074 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/spi/spi-ch341.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/5c6518633702d7f7b1153e9d8e042af847f11ef3 https://git.kernel.org/stable/c/ff8a7996dc8bf433efe2126ffdaee5b374a89e30 https://git.kernel.org/stable/c/9bee2faf9e21c796d0d222c9d84a98f41bd303a0 https://git.kernel.org/stable/c/b99e3ddb91b499d920e63a2daff8880be68cfe9e