blob: 01e93053ee60a592fe28330d0db869b4b9daa0b9 [file] [log] [blame]
From bippy-1.2.0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@kernel.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2025-37967: usb: typec: ucsi: displayport: Fix deadlock
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: ucsi: displayport: Fix deadlock
This patch introduces the ucsi_con_mutex_lock / ucsi_con_mutex_unlock
functions to the UCSI driver. ucsi_con_mutex_lock ensures the connector
mutex is only locked if a connection is established and the partner pointer
is valid. This resolves a deadlock scenario where
ucsi_displayport_remove_partner holds con->mutex waiting for
dp_altmode_work to complete while dp_altmode_work attempts to acquire it.
The Linux kernel CVE team has assigned CVE-2025-37967 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 5.15.184 with commit f4bd982563c2fd41ec9ca6c517c392d759db801c
Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.1.140 with commit f32451ca4cb7dc53f2a0e2e66b84d34162747eb7
Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.6.92 with commit 962ce9028ca6eb450d5c205238a3ee27de9d214d
Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.12.30 with commit 5924b324468845fc795bd76f588f51d7ab4f202d
Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.14.7 with commit 61fc1a8e1e10cc784cab5829930838aaf1d37af5
Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.15 with commit 364618c89d4c57c85e5fc51a2446cd939bf57802
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-37967
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/displayport.c
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/f4bd982563c2fd41ec9ca6c517c392d759db801c
https://git.kernel.org/stable/c/f32451ca4cb7dc53f2a0e2e66b84d34162747eb7
https://git.kernel.org/stable/c/962ce9028ca6eb450d5c205238a3ee27de9d214d
https://git.kernel.org/stable/c/5924b324468845fc795bd76f588f51d7ab4f202d
https://git.kernel.org/stable/c/61fc1a8e1e10cc784cab5829930838aaf1d37af5
https://git.kernel.org/stable/c/364618c89d4c57c85e5fc51a2446cd939bf57802