* Out-of-bounds access in X Rendering extension (Animated cursors) (CVE-2025-49175, bsc#1244082) - U_CVE-2025-49176-os-Do-not-overflow-the-integer-size-with-BigRequest.patch * Integer overflow in Big Requests Extension (CVE-2025-49176, bsc#1244084) - U_CVE-2025-49177-xfixes-Check-request-length-for-SetClientDisconnectM.patch * Data leak in XFIXES Extension 6 (XFixesSetClientDisconnectMode) (CVE-2025-49177, bsc#1244085) - U_CVE-2025-49178-os-Account-for-bytes-to-ignore-when-sharing-input-bu.patch * Unprocessed client request via bytes to ignore (CVE-2025-49178, bsc#1244087) - U_CVE-2025-49179-record-Check-for-overflow-in-RecordSanityCheckRegist.patch * Integer overflow in X Record extension (CVE-2025-49179, bsc#1244089) - U_CVE-2025-49180-randr-Check-for-overflow-in-RRChangeProviderProperty.patch * Integer overflow in RandR extension (RRChangeProviderProperty) (CVE-2025-49180, bsc#1244090) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xwayland?expand=0&rev=102
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From c5114475db18f29d639537d60e135bdfc11a5d3a Mon Sep 17 00:00:00 2001
|
|
From: Olivier Fourdan <ofourdan@redhat.com>
|
|
Date: Thu, 28 Nov 2024 14:09:04 +0100
|
|
Subject: [PATCH xserver] xkb: Fix buffer overflow in XkbChangeTypesOfKey()
|
|
|
|
If XkbChangeTypesOfKey() is called with nGroups == 0, it will resize the
|
|
key syms to 0 but leave the key actions unchanged.
|
|
|
|
If later, the same function is called with a non-zero value for nGroups,
|
|
this will cause a buffer overflow because the key actions are of the wrong
|
|
size.
|
|
|
|
To avoid the issue, make sure to resize both the key syms and key actions
|
|
when nGroups is 0.
|
|
|
|
CVE-2025-26597, ZDI-CAN-25683
|
|
|
|
This vulnerability was discovered by:
|
|
Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
|
|
|
|
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
|
|
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
---
|
|
xkb/XKBMisc.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
Index: xwayland-24.1.4/xkb/XKBMisc.c
|
|
===================================================================
|
|
--- xwayland-24.1.4.orig/xkb/XKBMisc.c
|
|
+++ xwayland-24.1.4/xkb/XKBMisc.c
|
|
@@ -552,6 +552,7 @@ XkbChangeTypesOfKey(XkbDescPtr xkb,
|
|
i = XkbSetNumGroups(i, 0);
|
|
xkb->map->key_sym_map[key].group_info = i;
|
|
XkbResizeKeySyms(xkb, key, 0);
|
|
+ XkbResizeKeyActions(xkb, key, 0);
|
|
return Success;
|
|
}
|
|
|