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 889583976A2 for ; Wed, 25 Mar 2026 10:27:49 +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=1774434469; cv=none; b=DhgH5S2srRvKSXKyERe/27Juux7R+HL9OKKbht8IMelMEoLQ9tdk1oYN20p+FtU3I2VS+qrGiORd4rHTnN4zQWrZoUoz1qwteW76KFHYTKFvOQp1P/OaYUCYcOQaCxl1XWzZTf1HfPgJMSrBZ5Ld2KQT1iT1dOOUSyV9/nHMKMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434469; c=relaxed/simple; bh=TNOkh2BVy68z3ArsAH8zU1wzWp+JtU8BszPTZoYFNio=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NbUKo9QwY0vcVm0ohwX29ZaBs8+PiCMSd577WSAFcxfCRjRWm0+v03N1U63dCWqarCmsD32FEHJmrZOF0BNDs1Pc2Hs4YK+Z+wlUH6VWdrsUejMfUBbOxPIp2X1se7eigGDQ0k1eU7XRfDwPjWtmhLPn7KpBP8vlNSd/OOL7N0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MN+GKVeq; 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="MN+GKVeq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D076EC4CEF7; Wed, 25 Mar 2026 10:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434469; bh=TNOkh2BVy68z3ArsAH8zU1wzWp+JtU8BszPTZoYFNio=; h=From:To:Cc:Subject:Date:Reply-To:From; b=MN+GKVeqqnABpY7uFtn9Q0zc8F1pTMdB3TfvZYI1WS9/VKAS36NLzB1Xgvc6wA6HZ 9nZ2NWk5UkED8CKEu5peHlY5rzKx0w3v7CjJQtekcYqCju+nc5IwgDUujGItG3jVFC VCgmuz4bRtK/wzXi4Wv2RPhpETMFjKbK3LMF81Ic= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23298: can: ucan: Fix infinite loop from zero-length messages Date: Wed, 25 Mar 2026 11:26:42 +0100 Message-ID: <2026032526-CVE-2026-23298-fad9@gregkh> X-Mailer: git-send-email 2.53.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=3151; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EHfK+dxWx1ssaUqXacg6PYXHub35zeLsSyZlUQUMMfM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHdwSFubY2nrjmLbeAoy7p1qVZPBXGctfOKPUli97ZJ Z/IfjuoI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiUsKw4JBDwOF7onPir7gK xvY+P/owge+GBMOCFeoyOxtK17f1n+pofbmu7lKDq1gZAA== 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: ucan: Fix infinite loop from zero-length messages If a broken ucan device gets a message with the message length field set to 0, then the driver will loop for forever in ucan_read_bulk_callback(), hanging the system. If the length is 0, just skip the message and go on to the next one. This has been fixed in the kvaser_usb driver in the past in commit 0c73772cd2b8 ("can: kvaser_usb: leaf: Fix potential infinite loop in command parsers"), so there must be some broken devices out there like this somewhere. The Linux kernel CVE team has assigned CVE-2026-23298 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.1.167 with commit ab6f075492d37368b4c7b0df7f7fdc2b666887fc Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.6.130 with commit 13b646eec3ba1131180803f5aaf1fee23540ad8f Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.12.77 with commit bd85f21a6219aeae4389d700c54f1799f4b814e0 Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.18.17 with commit aa9e0a7fe5efc2f74327fd37d828e9a51d9ff588 Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 6.19.7 with commit c7bc62be6c1a60bb21301692009590b1ffda91d9 Issue introduced in 4.19 with commit 9f2d3eae88d26c29d96e42983b755940d9169cd9 and fixed in 7.0-rc3 with commit 1e446fd0582ad8be9f6dafb115fc2e7245f9bea7 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-23298 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/ucan.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/ab6f075492d37368b4c7b0df7f7fdc2b666887fc https://git.kernel.org/stable/c/13b646eec3ba1131180803f5aaf1fee23540ad8f https://git.kernel.org/stable/c/bd85f21a6219aeae4389d700c54f1799f4b814e0 https://git.kernel.org/stable/c/aa9e0a7fe5efc2f74327fd37d828e9a51d9ff588 https://git.kernel.org/stable/c/c7bc62be6c1a60bb21301692009590b1ffda91d9 https://git.kernel.org/stable/c/1e446fd0582ad8be9f6dafb115fc2e7245f9bea7