xserver/xfixes
Olivier Fourdan ab02fb96b1 xfixes: Check request length for SetClientDisconnectMode
The handler of XFixesSetClientDisconnectMode does not check the client
request length.

A client could send a shorter request and read data from a former
request.

Fix the issue by checking the request size matches.

CVE-2025-49177

This issue was discovered by Nils Emmerich <nemmerich@ernw.de> and
reported by Julian Suleder via ERNW Vulnerability Disclosure.

Fixes: e167299f6 - xfixes: Add ClientDisconnectMode
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2024>
2025-06-17 14:21:24 +02:00
..
cursor.c xfixes: cursor.c should include header for CursorVisible & EnableCursor 2025-04-19 17:02:15 +00:00
disconnect.c xfixes: Check request length for SetClientDisconnectMode 2025-06-17 14:21:24 +02:00
meson.build xfixes: Add ClientDisconnectMode 2021-06-07 17:28:05 +02:00
region.c xfixes: drop swapping request length fields 2025-02-06 22:28:49 +00:00
saveset.c xfixes: drop swapping request length fields 2025-02-06 22:28:49 +00:00
select.c xfixes: drop swapping request length fields 2025-02-06 22:28:49 +00:00
xfixes.c misc.h: unexport compare_version() 2025-02-18 11:17:40 +00:00
xfixes.h xfixes: Unexport xfixes.h 2015-07-08 16:40:58 -04:00
xfixesint.h rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00