This vulnerability can be mitigated if you don't run X as root. Use the modesetting driver and ensure permissions to the video device with Unix groups or a mechanism like systemd-logind.
Since Wayland compositors are almost never setuid root, it isn't a problem for them.