Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D01DE2D4806 for ; Tue, 23 Dec 2025 13:59:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766498340; cv=none; b=itumDeZm8DOSAd7gLcqg73IxlSymvYZBdsj+jGmGeiGu90TqmuSmI/pKkdHm+rVjuVNd7TBmn5kiQ5X4LNJIl/7rPfyT28NIykrPYKbTrl+Pf8zFNOk8gpeiJsYHgDltSlpmfoOZxVVypuZyknzWvNFQf67Uf3NmwaJAtYRw8VY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766498340; c=relaxed/simple; bh=8nQaH4EhSdFa6i38TD/Vlt7WbMH6uy7qiAK4+WZl/74=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d4Feh0UD1mnhF/99kFrvIvKpQG0lC3io852RTyBfeCfLVck07/H5UI9hVy6hO1oQx/UpUxFBVbUeFjj/AR6UYvjHpS2IhnXYFdN0OgtNS6LAcc1YYPvbkWAPT/rwqEJs9JwWC2+cZp92tvA3v0gKF3esqW3N1GDWkd77Zqt1khU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aGwoukoz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aGwoukoz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96654C16AAE; Tue, 23 Dec 2025 13:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766498340; bh=8nQaH4EhSdFa6i38TD/Vlt7WbMH6uy7qiAK4+WZl/74=; h=From:To:Cc:Subject:Date:Reply-To:From; b=aGwoukozL9lazVHQW6YDPsrtdLU+xw7AoXEelVuzWe41iMcyCKGS1rjNJZD+kRd7Z 8/Km9ioY8PxboW19Yx5MKL21YjNQ59jUF3NcY91wBlQOSwsQsf4P9y5Z3ovd3jfwYf iuMIlWBG6hGIV6sUFzqQW5s9t9wiWyiZr9GXwbdI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68343: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header Date: Tue, 23 Dec 2025 14:58:37 +0100 Message-ID: <2025122333-CVE-2025-68343-3238@gregkh> X-Mailer: git-send-email 2.52.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=2979; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OfHq1bFbiINKo2cL8jETMOaY/VOcSO4uNrgZpRNVH+k=; b=owGbwMvMwCRo6H6F97bub03G02pJDJleCzg3n8h4KPTuxD11F0kbje/Twz+lHXkgb2R9S+As7 8xk83TnjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI8mKGOdxPX1ecPfRB5H7e q7b/OnlPLQ4ahzLMjwh+1KzY+bnN4lDB2t1dd4OrDjC8AQA= 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: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header The driver expects to receive a struct gs_host_frame in gs_usb_receive_bulk_callback(). Use struct_group to describe the header of the struct gs_host_frame and check that we have at least received the header before accessing any members of it. To resubmit the URB, do not dereference the pointer chain "dev->parent->hf_size_rx" but use "parent->hf_size_rx" instead. Since "urb->context" contains "parent", it is always defined, while "dev" is not defined if the URB it too short. The Linux kernel CVE team has assigned CVE-2025-68343 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.1.159 with commit 18cbce43363c9f84b90a92d57df341155eee0697 Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.6.119 with commit 3433680b759646efcacc64fe36aa2e51ae34b8f0 Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.12.61 with commit 616eee3e895b8ca0028163fcb1dce5e3e9dea322 Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.17.11 with commit f31693dc3a584c0ad3937e857b59dbc1a7ed2b87 Issue introduced in 3.16 with commit d08e973a77d128b25e01a08c34d89593fdf222da and fixed in 6.18 with commit 6fe9f3279f7d2518439a7962c5870c6e9ecbadcf 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-2025-68343 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/net/can/usb/gs_usb.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/18cbce43363c9f84b90a92d57df341155eee0697 https://git.kernel.org/stable/c/3433680b759646efcacc64fe36aa2e51ae34b8f0 https://git.kernel.org/stable/c/616eee3e895b8ca0028163fcb1dce5e3e9dea322 https://git.kernel.org/stable/c/f31693dc3a584c0ad3937e857b59dbc1a7ed2b87 https://git.kernel.org/stable/c/6fe9f3279f7d2518439a7962c5870c6e9ecbadcf