Local root code execution via newline injection
Published Jun 4, 2026 · Updated Jun 4, 2026
CRLF injection in libinput before 1.30.4 and 1.31.0 through 1.31.2 allows local users to execute arbitrary code as root. The libinput-device-group udev helper prints an unescaped device phys sysattr as a KEY=VALUE property, so an embedded newline creates an attacker-controlled second property. Exploitation requires permission to create a malicious uinput or uhid device; custom uaccess rules can grant that permission to a logged-in seat user, enabling properties such as REMOVE_CMD to run as root.
Summary
What happened
CRLF injection in libinput before 1.30.4 and 1.31.0 through 1.31.2 allows local users to execute arbitrary code as root. The libinput-device-group udev helper prints an unescaped device phys sysattr as a KEY=VALUE property, so an embedded newline creates an attacker-controlled second property. Exploitation requires permission to create a malicious uinput or uhid device; custom uaccess rules can grant that permission to a logged-in seat user, enabling properties such as REMOVE_CMD to run as root.
The record
- CVE
- CVE-2026-50292
- Published
- Jun 4, 2026
- Updated
- Jun 4, 2026
- Vendor
- Libslirp Project
- Product
- libinput
- Classifications
- CWE-93, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 4, 2026CVE publishedPublication date reported by the CVE source.
- Jun 4, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <1.30.4
- Affected versionversion=1.31.0 <1.31.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Malicious uinput or uhid newline-injection procedureproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo