Skip to content

Commit

Permalink
Merge branch 'vatral-fix-dlopen-vuln' into 3.6.x
Browse files Browse the repository at this point in the history
Attributes GH PR #1068: #1068
  • Loading branch information
sunweaver committed Jan 22, 2024
2 parents 3ef7845 + 09c4e21 commit e18eb77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nx-X11/extras/Mesa.patches_6.4.2/5003_dlopen-escalation.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Index: Mesa_6.4.2/src/glx/x11/dri_glx.c
===================================================================
--- Mesa_6.4.2.orig/src/glx/x11/dri_glx.c
+++ Mesa_6.4.2/src/glx/x11/dri_glx.c
@@ -196,7 +196,7 @@ static __DRIdriver *OpenDriver(const cha
}
}

- if (geteuid() == getuid()) {
+ if (geteuid() == getuid() && getgid() == getegid()) {
/* don't allow setuid apps to use LIBGL_DRIVERS_PATH */
libPaths = getenv("LIBGL_DRIVERS_PATH");
if (!libPaths)
1 change: 1 addition & 0 deletions nx-X11/extras/Mesa.patches_6.4.2/series
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
4005_adapt-all-libX11-include-paths-to-libNX_X11.patch
5002_silence-uninitialized.diff
1001_support_musl
5003_dlopen-escalation.patch

0 comments on commit e18eb77

Please sign in to comment.