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 F212A21ABB7 for ; Thu, 8 May 2025 06:40:48 +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=1746686449; cv=none; b=V4qelvVlkCtdcp36Mu9oG/pck5PEKS9V02Ww68tznLhm78OeC4XSuZBoBYxcfdvzXHrsugbDfHB387lVVyCgxlEXN+rmsnd+I5Wbrw8lHxIkdeHzSo2eFaQh1a1XqLlgBm1xUbYyNQjdzj5KrR2b2sDiwEDZtmX6q6zBrFaZZIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746686449; c=relaxed/simple; bh=cY+DY1ylX4sEh6R+RH3zskilBHprH0yMP8l/+p79HmY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iVrtuc5UsGu0mmpBO2MsZbi+0hU9u+YASS1bCrhFag9Z9sTgXQl8s62TjdZnGJF4rD8qqqEzMMjA9wJIAzhWuxjczuFVOfqb728D5hAgyfzOZ5dVKp7ylXTcO7ee4cxBawsg7g88LQEh43w6o6ZO3FmNQSY/Hmf5Rp1zJ8KAdEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EUdKLwrK; 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="EUdKLwrK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CE38C4CEED; Thu, 8 May 2025 06:40:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746686448; bh=cY+DY1ylX4sEh6R+RH3zskilBHprH0yMP8l/+p79HmY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EUdKLwrKd8vLX+tfV5uYRhsylQZgbSHzUL/Uj8cSdtKYHZaNPxJlPJmd29bXObXnu zXJFc8G4xBxvhAINnjaHb051IbIYMmjdMSDSUbTSdgK4/aaJ0Mtj+ZUhiqDF91J78X pKDvpl7Hluy2mas2ePXYUrS+Wk1uB5Lcl9j8V3fY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37809: usb: typec: class: Fix NULL pointer access Date: Thu, 8 May 2025 08:39:18 +0200 Message-ID: <2025050816-CVE-2025-37809-7d55@gregkh> X-Mailer: git-send-email 2.49.0 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=2264; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5mNztn2K+NV2xCgYZM84HPN34VcwqlUjwX1I1D4DYY8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkygVMKXsle2DmpOrDEeu3zjab11obcJ5NbtW4Isa7in /c99oBpRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEy51hNpuXKH+E/5Uf3bOX Bj3ytumREt04hWFBn7n2A9mLBydsZuGvyNv4OH/b25YsAA== 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: class: Fix NULL pointer access Concurrent calls to typec_partner_unlink_device can lead to a NULL pointer dereference. This patch adds a mutex to protect USB device pointers and prevent this issue. The same mutex protects both the device pointers and the partner device registration. The Linux kernel CVE team has assigned CVE-2025-37809 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 59de2a56d127890cc610f3896d5fc31887c54ac2 and fixed in 6.12.26 with commit de7c24febd21413ea8f49f61b36338b676c02852 Issue introduced in 6.7 with commit 59de2a56d127890cc610f3896d5fc31887c54ac2 and fixed in 6.14.5 with commit 1fdde62411fe65640e69bc55ea027d5b7b2f0093 Issue introduced in 6.7 with commit 59de2a56d127890cc610f3896d5fc31887c54ac2 and fixed in 6.15-rc4 with commit ec27386de23a511008c53aa2f3434ad180a3ca9a 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-2025-37809 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/class.c drivers/usb/typec/class.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/de7c24febd21413ea8f49f61b36338b676c02852 https://git.kernel.org/stable/c/1fdde62411fe65640e69bc55ea027d5b7b2f0093 https://git.kernel.org/stable/c/ec27386de23a511008c53aa2f3434ad180a3ca9a