[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022600-CVE-2025-21746-380d@gregkh>
Date: Wed, 26 Feb 2025 18:11:28 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2025-21746: Input: synaptics - fix crash when enabling pass-through port
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
Powered by blists - more mailing lists