Skip to content
Misconfiguration Advisory Intermediate CVE-2019-5068

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.

Tim Brown Follow

Originally disclosed on Cisco Talos

Medium 5.1 View original

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.

Tim Brown, on Cisco Talos

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

  1. Identify an affected shared memory segment using ipcs.
  2. As another OS user, read the shared memory using a tool like smaSHeM.
  3. 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.

More by Tim Brown

View all

5 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.