From mboxrd@z Thu Jan 1 00:00:00 1970 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 2CE601F4266 for ; Fri, 27 Dec 2024 13:54:36 +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=1735307676; cv=none; b=PnSpQFOdOcP+/xo1XVE5ZWjR/8voj3oi2xAq57S2Zec6ugc1lf7mn+QiNtekz1vp1l7ODFgwgXY3U7xtyLeEcw+8UvMoHBQi3WxJZfyO+507rGRHjV+Z4z9SHoDYRvU68XcVydVMDopxViR2708eft1iulVmxjPWHYZLL/hd9/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307676; c=relaxed/simple; bh=2jcV+GhUVHSUoe1M+fMFqNQ43LY9eDOkkJMlLa/Web8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VH/UEwpjEyNgU4oxFWo1jIXG8bNGuEeStV19rp7/KohRnSij9H8L+14Yr0jK5aEi2Hq5vly60zAh6hLUbiS6j3ibFk9c0bP5MaYu/NjzIfWtcAl6rhpAbnr0IhqmxpPHvA5U6ArXiVmwLUi90mZRElorMmuVziGEXSPz86AQOOo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x76WLEqx; 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="x76WLEqx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FC14C4CED0; Fri, 27 Dec 2024 13:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307676; bh=2jcV+GhUVHSUoe1M+fMFqNQ43LY9eDOkkJMlLa/Web8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x76WLEqxwK04uOgt+LNLsIrqx2s68ecxWMpWHiQa6r2ayIU6N8cSE9KH5tpeTvtlR 2aa24iRNhXPD6bYRWSVoPQrqZntr7JNpkT+8c7/x9gkB6j5HfXMp88ut3oQzaoXPaV AGy++ag9Caz/ex463THrUS8OEw1OBq06VRxE3leY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53203: usb: typec: fix potential array underflow in ucsi_ccg_sync_control() Date: Fri, 27 Dec 2024 14:52:49 +0100 Message-ID: <2024122727-CVE-2024-53203-80fc@gregkh> X-Mailer: git-send-email 2.47.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=2194; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2jcV+GhUVHSUoe1M+fMFqNQ43LY9eDOkkJMlLa/Web8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G6XTzMSuJnJqzVwm0uRsOnPBzf1lpnH31m57Yrswu 3O5vZBBRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkwUSGuZJqgUZnQqadfbE1 Spiz8plr5JfI+QwzGX1E1s6saEkK2vE8K+Oz21SXwFxFAA== 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: fix potential array underflow in ucsi_ccg_sync_control() The "command" variable can be controlled by the user via debugfs. The worry is that if con_index is zero then "&uc->ucsi->connector[con_index - 1]" would be an array underflow. The Linux kernel CVE team has assigned CVE-2024-53203 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 170a6726d0e266f2c8f306e3d61715c32f4ee41e and fixed in 6.11.11 with commit ef92cd55289a282910575c5b9d87f646f2d39b38 Issue introduced in 5.6 with commit 170a6726d0e266f2c8f306e3d61715c32f4ee41e and fixed in 6.12.2 with commit 56971710cd541f2f05160a84b3183477d34a1be9 Issue introduced in 5.6 with commit 170a6726d0e266f2c8f306e3d61715c32f4ee41e and fixed in 6.13-rc1 with commit e56aac6e5a25630645607b6856d4b2a17b2311a5 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-53203 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_ccg.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/ef92cd55289a282910575c5b9d87f646f2d39b38 https://git.kernel.org/stable/c/56971710cd541f2f05160a84b3183477d34a1be9 https://git.kernel.org/stable/c/e56aac6e5a25630645607b6856d4b2a17b2311a5