diff --git a/SPECS/libinput/CVE-2026-50292.patch b/SPECS/libinput/CVE-2026-50292.patch new file mode 100644 index 00000000000..a616e8fb47e --- /dev/null +++ b/SPECS/libinput/CVE-2026-50292.patch @@ -0,0 +1,66 @@ +From 18f10cea9cd948e05fab8f28dc2d496b2a64cbe5 Mon Sep 17 00:00:00 2001 +From: AllSpark +Date: Fri, 5 Jun 2026 16:47:50 +0000 +Subject: [PATCH] libinput-device-group: sanitize phys before printing it + +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: AI Backport of https://gitlab.freedesktop.org/libinput/libinput/-/commit/b2bde9504d42a5976d76e1f27c640dc561fbd99b.patch +--- + udev/libinput-device-group.c | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/udev/libinput-device-group.c b/udev/libinput-device-group.c +index 3da904e..314b5cc 100644 +--- a/udev/libinput-device-group.c ++++ b/udev/libinput-device-group.c +@@ -109,7 +109,8 @@ wacom_handle_ekr(struct udev_device *device, + + udev_list_entry_foreach(entry, udev_enumerate_get_list_entry(e)) { + struct udev_device *d; +- const char *path, *phys; ++ _autofree_ char *phys = NULL; ++ const char *path; + const char *pidstr, *vidstr; + int pid, vid, dist; + +@@ -124,7 +125,7 @@ wacom_handle_ekr(struct udev_device *device, + + vidstr = udev_device_get_property_value(d, "ID_VENDOR_ID"); + pidstr = udev_device_get_property_value(d, "ID_MODEL_ID"); +- phys = udev_device_get_sysattr_value(d, "phys"); ++ phys = str_sanitize(udev_device_get_sysattr_value(d, "phys")); + + if (vidstr && pidstr && phys && + safe_atoi_base(vidstr, &vid, 16) && +@@ -138,7 +139,7 @@ wacom_handle_ekr(struct udev_device *device, + best_dist = dist; + + free(*phys_attr); +- *phys_attr = safe_strdup(phys); ++ *phys_attr = steal(&phys); + } + } + +@@ -154,8 +155,8 @@ int main(int argc, char **argv) + int rc = 1; + struct udev *udev = NULL; + struct udev_device *device = NULL; +- const char *syspath, +- *phys = NULL; ++ _autofree_ char *phys = NULL; ++ const char *syspath = NULL; + const char *product; + int bustype, vendor_id, product_id, version; + char group[1024]; +@@ -180,7 +181,7 @@ int main(int argc, char **argv) + while (device != NULL) { + struct udev_device *parent; + +- phys = udev_device_get_sysattr_value(device, "phys"); ++ phys = str_sanitize(udev_device_get_sysattr_value(device, "phys")); + if (phys) + break; + +-- +2.45.4 + diff --git a/SPECS/libinput/libinput.spec b/SPECS/libinput/libinput.spec index 2ea14599732..9ae9bdabdb2 100644 --- a/SPECS/libinput/libinput.spec +++ b/SPECS/libinput/libinput.spec @@ -3,12 +3,13 @@ Summary: Input device library Name: libinput Version: 1.25.0 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT Vendor: Microsoft Corporation Distribution: Azure Linux URL: https://www.freedesktop.org/wiki/Software/libinput/ Source0: https://gitlab.freedesktop.org/libinput/libinput/-/archive/%{version}/%{name}-%{version}.tar.bz2 +Patch0: CVE-2026-50292.patch BuildRequires: check BuildRequires: gcc @@ -104,6 +105,9 @@ find %{buildroot}/%{_mandir}/man1 -type f -regextype posix-egrep -regex "$UTILS_ %{_mandir}/man1/libinput-test-suite.1* %changelog +* Fri Jun 05 2026 Azure Linux Security Servicing Account - 1.25.0-2 +- Patch for CVE-2026-50292 + * Thu Feb 08 2024 Rohit Rawat - 1.25.0-1 - Upgrade to 1.25.0