xserver/xkb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Peter Hutterer 1493a3f5b4 xkb: Fix out-of-bounds array access in _CheckSetShapes()
The primaryNdx and approxNdx fields in the shape wire description are
attacker-controlled CARD8 values from the client request. They are used
to index into the shape->outlines[] array, but were only checked against
XkbNoShape (0xff) and never validated against the actual number of
outlines (shapeWire->nOutlines).

Assisted-by: Claude:claude-claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2208>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-05 15:07:55 +02:00
..
ddxBeep.c
ddxCtrls.c
ddxKillSrv.c
ddxLEDs.c
ddxLoad.c
ddxPrivate.c
ddxVT.c
maprules.c
meson.build
README.compiled
xkb-procs.h
xkb.c xkb: Fix out-of-bounds array access in _CheckSetShapes() 2026-06-05 15:07:55 +02:00
xkbAccessX.c
xkbActions.c
XKBAlloc.c
xkbDflts.h
xkbEvents.c
xkbfile_priv.h
xkbfmisc.c
xkbfmisc_priv.h
XKBGAlloc.c
xkbgeom.h
xkbInit.c
xkbLEDs.c
XKBMAlloc.c
XKBMisc.c
xkbout.c
xkbout_priv.h
xkbPrKeyEv.c
xkbrules_priv.h
xkbsrv_priv.h
xkbtext.c
xkbtext_priv.h
xkbUtils.c
XKM_file_format.txt
xkmread.c

The X server uses this directory to store the compiled version of the
current keymap and/or any scratch keymaps used by clients.  The X server
or some other tool might destroy or replace the files in this directory,
so it is not a safe place to store compiled keymaps for long periods of
time.  The default keymap for any server is usually stored in:
     X<num>-default.xkm
where <num> is the display number of the server in question, which makes
it possible for several servers *on the same host* to share the same 
directory.

Unless the X server is modified, sharing this directory between servers on
different hosts could cause problems.