# CVE-2026-50292: freedesktop.org libinput CRLF injection in libinput-device-group

Source: https://junglewise.ai/threats/cve-2026-50292-freedesktop-org-libinput-crlf-injection-in-libinput-device-group  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-04. Updated: 2026-06-04  
License: CC BY 4.0 with a link back

CVE-2026-50292 · Severity: high · CVSS 7.4 · Published 2026-06-04

libinput is a library used by Linux operating systems to handle input devices like keyboards and mice. A security flaw in a helper tool called libinput-device-group allows a local attacker to trick the system into running malicious commands with administrative (root) privileges. This occurs when a user creates a specially crafted virtual input device that injects hidden instructions into the system's device management service.

Technologies: [Freedesktop.Org Libinput](https://junglewise.ai/threats/technologies/libinput). Vendors: [Freedesktop.Org](https://junglewise.ai/threats/vendors/freedesktop-org).

## Quick answers

**Is CVE-2026-50292 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-50292 being exploited in the wild.

**How severe is CVE-2026-50292?** High severity, with a CVSS score of 7.4, published 4 June 2026.

**Which products and versions are affected?** Freedesktop.Org Libinput < 1.30.4, 1.31.x < 1.31.3.

**Is there a fix for CVE-2026-50292?** A patch was published on 2026-06-01: Fix committed to upstream repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-50292 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-50292?** Check whether you run Freedesktop.Org Libinput at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A CRLF injection vulnerability (CWE-93) exists in the libinput-device-group udev helper. The utility fails to sanitize the 'phys' sysattr string retrieved from input devices before printing it as part of a KEY=VALUE pair. Because this output is consumed by udev via the IMPORT{program} directive, an attacker can use a malicious uinput or uhid device to set a 'phys' value containing newline characters followed by additional udev properties (e.g., REMOVE_CMD). If the attacker has access to /dev/uinput (often granted via uaccess on certain distributions), they can achieve local privilege escalation to root. The issue is fixed in versions 1.30.4 and 1.31.3 by sanitizing the 'phys' string before output.

## Affected products

- freedesktop.org libinput < 1.30.4, 1.31.x < 1.31.3

## Timeline

- 2026-06-01: patched: Fix committed to upstream repository
- 2026-06-04: disclosed: Public disclosure on oss-security mailing list
- 2026-06-04: advisory: NVD publication date

## References

- [https://gitlab.freedesktop.org/libinput/libinput/-/commit/76f0d8a7f57e2868882864b4611281f12f704b55](https://gitlab.freedesktop.org/libinput/libinput/-/commit/76f0d8a7f57e2868882864b4611281f12f704b55)
- [https://gitlab.freedesktop.org/libinput/libinput/-/work_items/1296](https://gitlab.freedesktop.org/libinput/libinput/-/work_items/1296)
- [https://www.openwall.com/lists/oss-security/2026/06/04/5](https://www.openwall.com/lists/oss-security/2026/06/04/5)

## Related threats

- [libinput privilege escalation via udev property injection in libinput-device-group](https://junglewise.ai/threats/cve-2026-50265-libinput-privilege-escalation-via-udev-property-injection-in)
- [freedesktop libinput code injection via Lua bytecode plugins](https://junglewise.ai/threats/cve-2026-35093-freedesktop-libinput-code-injection-via-lua-bytecode-plugins)
