xserver/hw/xfree86/modes
Olivier Fourdan bb89548515 xfree86: Check for RandR provider functions
Changing XRandR provider properties if the driver has set no provider
function such as the modesetting driver will cause a NULL pointer
dereference and a crash of the Xorg server.

Related to CVE-2025-49180

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

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 0235121c6a)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2025>
2025-06-17 15:06:49 +02:00
..
Makefile.am xfree86: Move xf86CVTMode() function 2021-08-06 11:29:29 +00:00
meson.build xfree86: Move xf86CVTMode() function 2021-08-06 11:29:29 +00:00
xf86Crtc.c Revert "hw/xfree86: Propagate physical dimensions from DRM connector" 2021-12-03 03:10:06 +02:00
xf86Crtc.h Make xf86CompatOutput() return NULL when there are no privates 2021-11-06 19:06:20 +02:00
xf86Cursors.c Add RandR leases with modesetting driver support [v6] 2018-02-27 12:39:50 -05:00
xf86DiDGA.c xserver: Unifdef HAVE_CONFIG_H 2017-03-23 13:19:51 -04:00
xf86EdidModes.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xf86gtf.c xserver: Unifdef HAVE_CONFIG_H 2017-03-23 13:19:51 -04:00
xf86Modes.c Initialize Mode->name in xf86CVTMode() 2024-02-23 00:01:10 +00:00
xf86Modes.h Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86RandR12.c xfree86: Check for RandR provider functions 2025-06-17 15:06:49 +02:00
xf86RandR12.h xfree86: Hook up colormaps and RandR 1.2 gamma code v6 2016-07-28 10:12:05 +09:00
xf86Rotate.c xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00