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 E4E0C2ECE93 for ; Tue, 30 Dec 2025 12:24:40 +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=1767097481; cv=none; b=pAKblGEKYJX1BP3d5iOZuWdxNHsbK4dxL9Tl+yfRpARREjQvKUQcHBmPVqm00GkRjjwV6wLmpdJ56Os7Zowx+VWx8iHhX3KqwLnXxi67eULOw7tqLpf+0niqJx7RFU5qkKJdsDxwekFPrLowKQeD0ERYhOQ2XlzDdlN3ozjS8KI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097481; c=relaxed/simple; bh=Xf48yswqNibYdRgKYLM3Xm/7fXgHDCgZv9BENL73sLY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZhTi/6gv/xdV3dFxncS1FDxIVK0wsJO+7rOIj8kVqf+KP9I2eOpLtUqg8zodZGAKP8zlXXYSiuOIZgRfO2HDAmhZkQ3cbg7BmhsR1RfR2dvwnyJ7AiDscteqd2X1CNrlI38A8ixlUEMnn52CMy+UHBRjQwExl4HE7w2wHT9iic4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oo2VhYEX; 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="oo2VhYEX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BCCEC4CEFB; Tue, 30 Dec 2025 12:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097480; bh=Xf48yswqNibYdRgKYLM3Xm/7fXgHDCgZv9BENL73sLY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oo2VhYEXGhFj4PJrp5XX2kUGPjFVo5NgjMXvXG3e8fZVtfrH4Bcd0Mntuya/Mk6wl hCt3ceaDdWMp8/W6+eRRWjJYSlzXKBL4wpvSLSMAER9Tl5YVE6kdAjOP9bpNgE/a52 WN2dhyitdWQDLEmekSh9kI3XzLMVrwZ0QsxBjnQc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54299: usb: typec: bus: verify partner exists in typec_altmode_attention Date: Tue, 30 Dec 2025 13:23:52 +0100 Message-ID: <2025123032-CVE-2023-54299-ec86@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=3639; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j+xQn7J9QhVC9/hK5m876Y+85OjR50oT5+2ml1Rr+SQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBR1yY9NaeWVotPWGXcnSOacc77yOWl70VdsY+sO+5c 7amScerI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC5c0wP9NaUv7P9dUHLrBd mZHC3vzkgYkQA8P87HVTP5z4ZjNLX957dfcFq9JAjsXbAA== 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: usb: typec: bus: verify partner exists in typec_altmode_attention Some usb hubs will negotiate DisplayPort Alt mode with the device but will then negotiate a data role swap after entering the alt mode. The data role swap causes the device to unregister all alt modes, however the usb hub will still send Attention messages even after failing to reregister the Alt Mode. type_altmode_attention currently does not verify whether or not a device's altmode partner exists, which results in a NULL pointer error when dereferencing the typec_altmode and typec_altmode_ops belonging to the altmode partner. Verify the presence of a device's altmode partner before sending the Attention message to the Alt Mode driver. The Linux kernel CVE team has assigned CVE-2023-54299 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 8a37d87d72f0c69f837229c04d2fcd7117ea57e7 and fixed in 5.4.257 with commit 5f71716772b88cbe0e1788f6a38d7871aff2120b Issue introduced in 4.19 with commit 8a37d87d72f0c69f837229c04d2fcd7117ea57e7 and fixed in 5.10.195 with commit 38e1f2ee82bacbbfded8f1c06794a443d038d054 Issue introduced in 4.19 with commit 8a37d87d72f0c69f837229c04d2fcd7117ea57e7 and fixed in 5.15.132 with commit 0ad6bad31da692f8d7acacab07eabe7586239ae0 Issue introduced in 4.19 with commit 8a37d87d72f0c69f837229c04d2fcd7117ea57e7 and fixed in 6.1.53 with commit 0d3b5fe47938e9c451466845304a2bd74e967a80 Issue introduced in 4.19 with commit 8a37d87d72f0c69f837229c04d2fcd7117ea57e7 and fixed in 6.4.16 with commit d49547950bf7f3480d6ca05fe055978e5f0d9e5b Issue introduced in 4.19 with commit 8a37d87d72f0c69f837229c04d2fcd7117ea57e7 and fixed in 6.5.3 with commit 1101867a1711c27d8bbe0e83136bec47f8c1ca2a Issue introduced in 4.19 with commit 8a37d87d72f0c69f837229c04d2fcd7117ea57e7 and fixed in 6.6 with commit f23643306430f86e2f413ee2b986e0773e79da31 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-2023-54299 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/bus.c drivers/usb/typec/tcpm/tcpm.c include/linux/usb/typec_altmode.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/5f71716772b88cbe0e1788f6a38d7871aff2120b https://git.kernel.org/stable/c/38e1f2ee82bacbbfded8f1c06794a443d038d054 https://git.kernel.org/stable/c/0ad6bad31da692f8d7acacab07eabe7586239ae0 https://git.kernel.org/stable/c/0d3b5fe47938e9c451466845304a2bd74e967a80 https://git.kernel.org/stable/c/d49547950bf7f3480d6ca05fe055978e5f0d9e5b https://git.kernel.org/stable/c/1101867a1711c27d8bbe0e83136bec47f8c1ca2a https://git.kernel.org/stable/c/f23643306430f86e2f413ee2b986e0773e79da31