CVE-2026-50292

libinput: local privilege escalation via crafted uinput devices

Published Jun 4, 2026 CVSS 3.1 · 7.4 High EPSS < 1% KEV · Not listed
Description
In libinput before 1.30.4 and 1.31.x before 1.31.3, libinput-device-group unescaped phys output can inject udev properties leading to arbitrary root code execution

Analysis

AI-generated

Technical impact

In the libinput library, before version 1.30.4 and the 1.31.x series before 1.31.3, the libinput-device-group component fails to escape physical device path strings. The unescaped phys output can be injected into udev property definitions, allowing a malicious input device or crafted payload to modify or create udev rules. This results in arbitrary code execution with root privileges, as the udev process runs as root and will load the injected properties. The weakness is identified as CWE‑78 (OS Command Injection) and CWE‑93 (Improper Neutralization of Special Elements used in a Command or Data Structure).

Affected Systems

The vulnerability affects libinput releases prior to 1.30.4 and those in the 1.31 series before 1.31.3. Device backends that rely on libinput for input handling, such as most Linux graphical environments and desktops that include the freedesktop libinput component, are impacted. Only the affected versions listed above are vulnerable; newer releases contain the sanitization fix.

Risk and Exploitability

The CVSS score of 7.4 indicates high severity. EPSS Score: < 1%, indicating a very low probability of exploitation, but the lack of an immediate exploit in the KEV catalog suggests the vulnerability is not in widespread use yet. The attack vector requires that an attacker be able to supply device information that libinput processes—typically by purchasing or physically attaching a malicious USB input device—so the vulnerability is most relevant for systems that accept untrusted USB or other external devices. Once exploited, the attacker gains root privileges and can perform any operation on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libinput to version 1.30.4 or later, or to 1.31.3 or later if using the 1.31 series, to apply the patch that sanitizes phys output.
  • If an immediate upgrade is not feasible, restrict udev rules for input devices to only allow trusted device paths and prevent the creation of arbitrary properties by untrusted users.
  • Apply the patch referenced in commit 76f0d8a7f57e2868882864b4611281f12f704b55, which introduces proper escaping of phys strings before writing udev properties.

Generated by OpenCVE AI on June 9, 2026 at 02:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4626-1 libinput security update
Debian DSA Debian DSA DSA-6339-1 libinput security update
Ubuntu USN Ubuntu USN USN-8602-1 libinput vulnerability
Ubuntu USN Ubuntu USN USN-8753-1 libinput vulnerability
History
Type Values Removed Values Added
Title Arbitrary Root Code Execution via Udev Property Injection in libinput libinput: local privilege escalation via crafted uinput devices
Weaknesses CWE-78
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Arbitrary Root Code Execution via Udev Property Injection in libinput
Type Values Removed Values Added
Description In libinput before 1.30.4 and 1.31.x before 1.31.3, libinput-device-group unescaped phys output can inject udev properties leading to arbitrary root code execution
First Time appeared Freedesktop
Freedesktop libinput
Weaknesses CWE-93
CPEs cpe:2.3:a:freedesktop:libinput:*:*:*:*:*:*:*:*
Vendors & Products Freedesktop
Freedesktop libinput
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jun 4, 2026, 6:12 PM
Reserved
Jun 4, 2026, 4:41 PM
Status
Analyzed
Published
Jun 4, 2026, 6:16 PM
Modified
Jul 22, 2026, 8:10 PM
Severity
Important
Public date
Jun 5, 2026, 12:00 AM