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 4E1593B27E0 for ; Wed, 25 Mar 2026 10:30: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=1774434649; cv=none; b=ePMiKhneh1/0EEAjKLR/wKzlouiRhrSX6wyqIuW6NXIdKLjA6J6RH0m5JRUU9H56waPTCVqGL57+VvoGzIdmFOcCuXE2C7W+P8y3gjBUv10j0leQCsMAJUlSyUY32+xvZ/PuD5RU0Bp/kotF0cK7ha9TBhjWxf7KsR4TVRG3/5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434649; c=relaxed/simple; bh=GLF6YUS5v/eLBxoFk6ObnPxrxLG1Cjmp1izIDGmMBIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uzXvJCtxfh9ggSmqRzXizU/EtDo2A1DZFI7c3lRfJ4CxTB6IbMkrmqCFosLIBDP9dwecaA0jEaEP8Ka9VPIwl5ID/WR4sTEBN9dy3bxAmyKQtfIBvnf0f7+DqwL9TQWiZ2BTzIgtfNBTs5LRye0/PPsQC5V95hxYX8xQAWmv444= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wr21AZ+Y; 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="Wr21AZ+Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5EBDC4CEF7; Wed, 25 Mar 2026 10:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434649; bh=GLF6YUS5v/eLBxoFk6ObnPxrxLG1Cjmp1izIDGmMBIE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Wr21AZ+YQgcjyOKN05kpv8WO+OrCJiwv3b/ELDCx7hYIderfB4H06chbNNqj6L32v eOVeOo+s00luAhBj5Glf+MzcO6LyxMlfC2HOm8bNUZkSRqmhuucbHBjXUWEQ0oGEny RZHDvn6wc25KTytdjZ296LQTeN38KYM5sIPKhuHU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23307: can: ems_usb: ems_usb_read_bulk_callback(): check the proper length of a message Date: Wed, 25 Mar 2026 11:26:51 +0100 Message-ID: <2026032528-CVE-2026-23307-60f2@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=3221; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ePzQcverX8htPLCMYNfjJSvMsRMCHMPtBZ6kaZVQxWI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd4QIXI81P7v78rOo5Ob/O64viZLYMvfI6zm7lp421 f6xw25GRUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMpNieYcHuILWgrM6/DMt6 3Yy/+a1e8OGA1kaGBZer+Z0Oi+Vs+RbYcPXv3uIbK9bt3AwA 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: ems_usb: ems_usb_read_bulk_callback(): check the proper length of a message When looking at the data in a USB urb, the actual_length is the size of the buffer passed to the driver, not the transfer_buffer_length which is set by the driver as the max size of the buffer. When parsing the messages in ems_usb_read_bulk_callback() properly check the size both at the beginning of parsing the message to make sure it is big enough for the expected structure, and at the end of the message to make sure we don't overflow past the end of the buffer for the next message. The Linux kernel CVE team has assigned CVE-2026-23307 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.32 with commit 702171adeed3607ee9603ec30ce081411e36ae42 and fixed in 6.1.167 with commit c703bbf8e9b4947e111c88d2ed09236a6772a471 Issue introduced in 2.6.32 with commit 702171adeed3607ee9603ec30ce081411e36ae42 and fixed in 6.6.130 with commit 1818974e1b5ef200e27f144c8cb8a246420bb54d Issue introduced in 2.6.32 with commit 702171adeed3607ee9603ec30ce081411e36ae42 and fixed in 6.12.77 with commit 18f75b9cbdc3703f15965425ab69dee509b07785 Issue introduced in 2.6.32 with commit 702171adeed3607ee9603ec30ce081411e36ae42 and fixed in 6.18.17 with commit 1cf469026d4a2308eaa91d04dca4a900d07a5c2e Issue introduced in 2.6.32 with commit 702171adeed3607ee9603ec30ce081411e36ae42 and fixed in 6.19.7 with commit 2833e13e2b099546abf5d40a483b4eb04ddd1f7b Issue introduced in 2.6.32 with commit 702171adeed3607ee9603ec30ce081411e36ae42 and fixed in 7.0-rc3 with commit 38a01c9700b0dcafe97dfa9dc7531bf4a245deff 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-23307 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/ems_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/c703bbf8e9b4947e111c88d2ed09236a6772a471 https://git.kernel.org/stable/c/1818974e1b5ef200e27f144c8cb8a246420bb54d https://git.kernel.org/stable/c/18f75b9cbdc3703f15965425ab69dee509b07785 https://git.kernel.org/stable/c/1cf469026d4a2308eaa91d04dca4a900d07a5c2e https://git.kernel.org/stable/c/2833e13e2b099546abf5d40a483b4eb04ddd1f7b https://git.kernel.org/stable/c/38a01c9700b0dcafe97dfa9dc7531bf4a245deff