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 85A861624C0 for ; Thu, 27 Feb 2025 02:13:23 +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=1740622403; cv=none; b=Urt6KmsUrf6xBVhCt+p++cUDyakLQcrV7kOJ0vFSx8jPv/JTta/PZdHFwYHR6ew9Gy5/nGWAXsGfS2vDwPE2OJL4vhdZOP0tU8upllGwk4QPrUU0pbNdfC6zHRR8tQ/2wkjEqMCwIQULilAkOYIuDp1po0S1Lbg/4+OUurC/9A8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622403; c=relaxed/simple; bh=mE+hXEqnycg6WiPGBS7GR1izbSf94d7LN6fcjfVquCY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c5xY5cfqgWC3WNgUcVpjbrut8IHroS+9i/ZlpwsJjPYY7PPmYtYBoxPAcv89DvLpaILthYpLdRAsblh4wlapNJo7XcoqAaDE913ZVeZodKyKZIKs4FiFsJmb04LJFFl+Fk62D3cL0Uvbujwawr7CSYUsSLIHfkXKaXEW8KLsAeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EgjBAzVb; 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="EgjBAzVb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59834C4CED6; Thu, 27 Feb 2025 02:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622403; bh=mE+hXEqnycg6WiPGBS7GR1izbSf94d7LN6fcjfVquCY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EgjBAzVbQ7LFNQpCME67/yM8XFBMPoHM1mpWABgaEzDkd2Y9NHFX3TMoE3OWVfk8I ryUM5a6g8diZvUIz/jvheT4opb9wmdrZwskcgvm57r/ZGrDcxISwgUGNW50NBehVHL qWlZojzL5wlwS/Is3i+noZHyBNkmd+Nq6r10n6sc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21746: Input: synaptics - fix crash when enabling pass-through port Date: Wed, 26 Feb 2025 18:11:28 -0800 Message-ID: <2025022600-CVE-2025-21746-380d@gregkh> X-Mailer: git-send-email 2.48.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=2503; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mE+hXEqnycg6WiPGBS7GR1izbSf94d7LN6fcjfVquCY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T24VumkcUMK1199h8tP4zUdT6pm+pYsKeZyJY3OZ8 fCO65VTHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3KkM85P0Zx97a8KlYPKr pnTB8UUOR2feXcGwYK+Q8eRih3vfpn3e/aj/aD4jg8ZaFwA= 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: Input: synaptics - fix crash when enabling pass-through port When enabling a pass-through port an interrupt might come before psmouse driver binds to the pass-through port. However synaptics sub-driver tries to access psmouse instance presumably associated with the pass-through port to figure out if only 1 byte of response or entire protocol packet needs to be forwarded to the pass-through port and may crash if psmouse instance has not been attached to the port yet. Fix the crash by introducing open() and close() methods for the port and check if the port is open before trying to access psmouse instance. Because psmouse calls serio_open() only after attaching psmouse instance to serio port instance this prevents the potential crash. The Linux kernel CVE team has assigned CVE-2025-21746 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 100e16959c3ca8cb7be788ed3e2c5867481f35f6 and fixed in 6.13.3 with commit 87da1ea93ec9f9f0004e5b12e78789bc94e360bf Issue introduced in 6.5 with commit 100e16959c3ca8cb7be788ed3e2c5867481f35f6 and fixed in 6.14-rc1 with commit 08bd5b7c9a2401faabdaa1472d45c7de0755fd7e 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-21746 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/input/mouse/synaptics.c drivers/input/mouse/synaptics.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/87da1ea93ec9f9f0004e5b12e78789bc94e360bf https://git.kernel.org/stable/c/08bd5b7c9a2401faabdaa1472d45c7de0755fd7e