| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.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.6.80 with commit a2cbcd70133dc0d4d4c95ad4cd5412b935354c7c |
| Issue introduced in 6.5 with commit 100e16959c3ca8cb7be788ed3e2c5867481f35f6 and fixed in 6.12.17 with commit 3e179d3f1ada963475395d81bfe91daef4d1a24c |
| 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 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/a2cbcd70133dc0d4d4c95ad4cd5412b935354c7c |
| https://git.kernel.org/stable/c/3e179d3f1ada963475395d81bfe91daef4d1a24c |
| https://git.kernel.org/stable/c/87da1ea93ec9f9f0004e5b12e78789bc94e360bf |
| https://git.kernel.org/stable/c/08bd5b7c9a2401faabdaa1472d45c7de0755fd7e |