History log of /xsrc/external/mit/xorg-server.old/dist/glx/glxcmds.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# a2f091b7 02-Nov-2024 mrg <mrg@NetBSD.org>

merge upstream change e5e8586a12a3ec915673edffa10dc8fe5e15dac3


Subject: [PATCH] glx: Call XACE hooks on the GLX buffer

The XSELINUX code will label resources at creation by checking the
access mode. When the access mode is DixCreateAccess, it will call the
function to label the new resource SELinuxLabelResource().

However, GLX buffers do not go through the XACE hooks when created,
hence leaving the resource actually unlabeled.

When, later, the client tries to create another resource using that
drawable (like a GC for example), the XSELINUX code would try to use
the security ID of that object which has never been labeled, get a NULL
pointer and crash when checking whether the requested permissions are
granted for subject security ID.

To avoid the issue, make sure to call the XACE hooks when creating the
GLX buffers.

Credit goes to Donn Seeley <donn@xmission.com> for providing the patch.

CVE-2024-0408

# 706f2543 09-Jun-2016 mrg <mrg@NetBSD.org>

initial import of existing netbsd xorg-server 1.10 sources in the
xorg-server.old subdir.