diff --git a/U_xkb-Fix-buffer-overflow-in-_XkbSetCompatMap.patch b/U_xkb-Fix-buffer-overflow-in-_XkbSetCompatMap.patch new file mode 100644 index 0000000..f1cdf9c --- /dev/null +++ b/U_xkb-Fix-buffer-overflow-in-_XkbSetCompatMap.patch @@ -0,0 +1,25 @@ +@@ -, +, @@ +--- + xkb/xkb.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) +--- a/xkb/xkb.c ++++ a/xkb/xkb.c +@@ -2991,13 +2991,13 @@ _XkbSetCompatMap(ClientPtr client, DeviceIntPtr dev, + XkbSymInterpretPtr sym; + unsigned int skipped = 0; + +- if ((unsigned) (req->firstSI + req->nSI) > compat->num_si) { +- compat->num_si = req->firstSI + req->nSI; ++ if ((unsigned) (req->firstSI + req->nSI) > compat->size_si) { ++ compat->num_si = compat->size_si = req->firstSI + req->nSI; + compat->sym_interpret = reallocarray(compat->sym_interpret, +- compat->num_si, ++ compat->size_si, + sizeof(XkbSymInterpretRec)); + if (!compat->sym_interpret) { +- compat->num_si = 0; ++ compat->num_si = compat->size_si = 0; + return BadAlloc; + } + } +-- diff --git a/xorg-x11-server.changes b/xorg-x11-server.changes index 331feea..bffa87c 100644 --- a/xorg-x11-server.changes +++ b/xorg-x11-server.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Oct 19 22:35:02 UTC 2024 - Stefan Dirsch + +- U_xkb-Fix-buffer-overflow-in-_XkbSetCompatMap.patch + * Heap-based buffer overflow privilege escalation in _XkbSetCompatMap + (CVE-2024-9632, bsc#1231565) + ------------------------------------------------------------------- Mon Feb 12 09:58:50 UTC 2024 - Stefan Dirsch diff --git a/xorg-x11-server.spec b/xorg-x11-server.spec index d401f62..9540f58 100644 --- a/xorg-x11-server.spec +++ b/xorg-x11-server.spec @@ -241,6 +241,8 @@ Patch1960: u_sync-pci-ids-with-Mesa.patch Patch1218176: u_miCloseScreen_check_for_null_pScreen_dev_private.patch +Patch1231565: U_xkb-Fix-buffer-overflow-in-_XkbSetCompatMap.patch + %description This package contains the X.Org Server. @@ -398,6 +400,8 @@ sh %{SOURCE92} --verify . %{SOURCE91} %patch1218176 -p1 +%patch1231565 -p1 + %build # We have some -z now related errors during X default startup (boo#1197994): # - when loading modesetting: gbm_bo_get_plane_count