X11 Mesa 3D Graphics Library shared memory permissions vulnerability
The Mesa 3D X11 Graphics Library creates shared memory segments with world-readable and world-writable permissions (0777), allowing any local user to read or write to them. An attacker could access these segments to disclose or corrupt pixmap data being transmitted to the X server.
An exploitable shared memory permissions vulnerability exists in the functionality of X11 Mesa 3D Graphics Library. An attacker can access the shared memory without any specific permissions to trigger this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The library calls shmget() with permissions 0777, making the shared memory segment accessible to all users.
Impact
An attacker could read or corrupt pixmaps being transmitted to the X server, potentially leading to disclosure or corruption of GUI artifacts, though no memory corruption attacks have been found.
What the attacker needed
Local access to the system; X11 running with vulnerable Mesa library
The fix
The vendor patched the vulnerability.
How it was found
- Identify an affected shared memory segment using ipcs.
- As another OS user, read the shared memory using a tool like smaSHeM.
- Observe the dumped contents with hexdump.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Shared memory is a way for programs to exchange data quickly by using a common memory area. The graphics library created these areas with permissions that let any user on the computer read and write them. This means another user could peek at or tamper with the screen data being sent to the display server.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.