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 2C8F91DDCE for ; Sun, 19 May 2024 10:12:30 +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=1716113550; cv=none; b=PUPw5HDBSu6WNDdQqWF7QSbcUIJFaCz56UeG9ReaN/MgRKoevw3uOXs5PGeCo5a0PMdschmeKsoDQXCesOMHdTHh+p7uDexFFmmxhkrSnjuX2YVytIvTAiNMjaEcwEHD70yXWICSx9NaDN7jGilzGAwsnx+tXH+UGXMSMgMcL+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716113550; c=relaxed/simple; bh=hkMuxBo369+LpF7MlMufthaeDh+nyNJHu6KDZfHDwvE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L3qlkHdWEsDdS5UvFlBxersFmfhsIB913aHs/FcRD2kOPMf0F8uqYejyjB8FqLc9lhnlTZRecWFh9eZ6xSAQ4dV1R6b4ttX5N5nSOSMWiGc9c+7PVC15TqO0NKXa/+isCRZs/9e88iK+wRiyVL1syoRGl0cZrEidnMNabfKXvu4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nu37TKoG; 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="nu37TKoG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A615AC32781; Sun, 19 May 2024 10:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716113550; bh=hkMuxBo369+LpF7MlMufthaeDh+nyNJHu6KDZfHDwvE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nu37TKoG6p7oCau092tqKRXThTUPMJGIo/tjyv1mYO0mJR4A8u2oDx7FNMCQKZZUB IYYI3OUtd6rheeANZAyV2+x6VgyII9Vf4Jjhqqh55eJTUk71kyAjVwe6Bpyohq3gT3 LQYcYKOpsbxJj6CAo6xOk7m8gHHX03TyJBMNBFfM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35924: usb: typec: ucsi: Limit read size on v1.2 Date: Sun, 19 May 2024 12:11:18 +0200 Message-ID: <2024051914-CVE-2024-35924-90f6@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1916; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hkMuxBo369+LpF7MlMufthaeDh+nyNJHu6KDZfHDwvE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeF5zYFzI8KPSabNVU//r4vSXb0gxUzjUlr2aJzrO2X MEau+ZdRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkGw/DgpbwiM7J/B7s577P mmj0WVp9Z8S1NwwLVpf9aeapO8URL3LRZfbKf/Jii3T6AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: usb: typec: ucsi: Limit read size on v1.2 Between UCSI 1.2 and UCSI 2.0, the size of the MESSAGE_IN region was increased from 16 to 256. In order to avoid overflowing reads for older systems, add a mechanism to use the read UCSI version to truncate read sizes on UCSI v1.2. The Linux kernel CVE team has assigned CVE-2024-35924 to this issue. Affected and fixed versions =========================== Fixed in 6.6.27 with commit 266f403ec475 Fixed in 6.8.6 with commit 0defcaa09d3b Fixed in 6.9 with commit b3db266fb031 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-2024-35924 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/typec/ucsi/ucsi.c drivers/usb/typec/ucsi/ucsi.h 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/266f403ec47573046dee4bcebda82777ce702c40 https://git.kernel.org/stable/c/0defcaa09d3b21e8387829ee3a652c43fa91e13f https://git.kernel.org/stable/c/b3db266fb031fba88c423d4bb8983a73a3db6527