Where
-Infinity
0

Vendor Risk Score

See how libinput compares to other vendors in security performance

View Risk Score →

On Fri, Jun 05, 2026 at 10:23:15PM +0200, Salvatore Bonaccorso wrote: Hi,

On Fri, Jun 05, 2026 at 09:01:56AM +1000, Peter Hutterer wrote: On Thu, Jun 04, 2026 at 08:12:22PM +1000, Peter Hutterer wrote: ========================================= libinput Security Advisory: June 4, 2026 =========================================

An issue has been found in libinput:

1) libinput-device-group unescaped phys output can inject udev properties leading to arbitrary root code execution

libinput uses a udev helper called libinput-device-group. This helper uses a device's phys sysattr as one element of a udev property value which is printed as a KEY=VALUE pair and imported as ENV by udev.

A malicious uinput or uhid device that sets a phys sysattr containing \n caused the output to be interpreted as two separate KEY=VALUE pairs by udev. This could cause arbitrary execution as root (e.g. by setting the REMOVECMD property).

A CVE has been requested for this issue but did not get assigned in time for this disclosure.

Upstream issue: https://gitlab.freedesktop.org/libinput/libinput/-/workitems/1296 Upstream fix: https://gitlab.freedesktop.org/libinput/libinput/-/commit/76f0d8a7f57e2868882864b4611281f12f704b55 Versions affected: libinput <= 1.31.2 and <= 1.30.3 Fixed versions: libinput 1.31.3, 1.30.4 This issue has now been assigned CVE-2026-50265 FTR, this is bit odd since before that assignment MITRE seems to have already assigned CVE-2026-50292: https://www.cve.org/CVERecord?id=CVE-2026-50292

And it had the references: https://gitlab.freedesktop.org/libinput/libinput/-/workitems/1296 https://gitlab.freedesktop.org/libinput/libinput/-/commit/76f0d8a7f57e2868882864b4611281f12f704b55 https://www.openwall.com/lists/oss-security/2026/06/04/5

So that is clashing with the assignment from Red Hat as CVE-2026-50265: https://www.cve.org/CVERecord?id=CVE-2026-50265

I asked Red Hat CNA if they can reject the later assigned one, but not sure which should be kept now. As a followup: CVE-2026-50265 has been rejected in favour of CVE-2026-50292.

Regards, Salvatore

Hi,

On Fri, Jun 05, 2026 at 09:01:56AM +1000, Peter Hutterer wrote: On Thu, Jun 04, 2026 at 08:12:22PM +1000, Peter Hutterer wrote: ========================================= libinput Security Advisory: June 4, 2026 =========================================

An issue has been found in libinput:

1) libinput-device-group unescaped phys output can inject udev properties leading to arbitrary root code execution

libinput uses a udev helper called libinput-device-group. This helper uses a device's phys sysattr as one element of a udev property value which is printed as a KEY=VALUE pair and imported as ENV by udev.

A malicious uinput or uhid device that sets a phys sysattr containing \n caused the output to be interpreted as two separate KEY=VALUE pairs by udev. This could cause arbitrary execution as root (e.g. by setting the REMOVECMD property).

A CVE has been requested for this issue but did not get assigned in time for this disclosure.

Upstream issue: https://gitlab.freedesktop.org/libinput/libinput/-/workitems/1296 Upstream fix: https://gitlab.freedesktop.org/libinput/libinput/-/commit/76f0d8a7f57e2868882864b4611281f12f704b55 Versions affected: libinput <= 1.31.2 and <= 1.30.3 Fixed versions: libinput 1.31.3, 1.30.4 This issue has now been assigned CVE-2026-50265 FTR, this is bit odd since before that assignment MITRE seems to have already assigned CVE-2026-50292: https://www.cve.org/CVERecord?id=CVE-2026-50292

And it had the references: https://gitlab.freedesktop.org/libinput/libinput/-/workitems/1296 https://gitlab.freedesktop.org/libinput/libinput/-/commit/76f0d8a7f57e2868882864b4611281f12f704b55 https://www.openwall.com/lists/oss-security/2026/06/04/5

So that is clashing with the assignment from Red Hat as CVE-2026-50265: https://www.cve.org/CVERecord?id=CVE-2026-50265

I asked Red Hat CNA if they can reject the later assigned one, but not sure which should be kept now.

Regards, Salvatore

Severity
4

A local attacker with /dev/uinput access can inject arbitrary udev properties through the libinput-device-group helper. Depending on downstream udev rules, this can result in root code execution (e.g. via injected REMOVECMD properties executed at device removal time). REMOVECMD is in the default udev rules and expected to be present on virtually all machines.

First published (updated )
Severity
9.8
CRLF Injection
AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

A local attacker with /dev/uinput access can inject arbitrary udev properties through the libinput-device-group helper. Depending on downstream udev rules, this can result in root code execution (e.g. via injected REMOVECMD properties executed at device removal time). REMOVECMD is in the default udev rules and expected to be present on virtually all machines.

1 / 3
Source: Red Hat
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203