Input: synaptics - fix crash when enabling pass-through port (Linux Linux)

CVE-2025-21746
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.15 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 100e16959c3ca8cb7be788ed3e2c5867481f35f6 < a2cbcd70133dc0d4d4c95ad4cd5412b935354c7c ; affected 100e16959c3ca8cb7be788ed3e2c5867481f35f6 < 3e179d3f1ada963475395d81bfe91daef4d1a24c ; affected 100e16959c3ca8cb7be788ed3e2c5867481f35f6 < 87da1ea93ec9f9f0004e5b12e78789bc94e360bf ; affected 100e16959c3ca8cb7be788ed3e2c5867481f35f6 < 08bd5b7c9a2401faabdaa1472d45c7de0755fd7e
Linux · Linuxaffected 6.5 ; unaffected 0 < 6.5 ; unaffected 6.6.80 ≤ 6.6.* ; unaffected 6.12.17 ≤ 6.12.* ; unaffected 6.13.3 ≤ 6.13.* ; unaffected 6.14 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD