Buffer Over-read Affecting xorg-server package, versions [,21.1.12)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-XORGSERVER-6579653
  • published7 Apr 2024
  • disclosed4 Apr 2024
  • creditUnknown

Introduced: 4 Apr 2024

CVE-2024-31082  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade xorg-server to version 21.1.12 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Over-read due to the ProcAppleDRICreatePixmap function. An attacker can cause memory leakage and segmentation faults by triggering byte-swapped length values in replies, leading to the X server reading heap memory values and transmitting them back to the client until an unmapped page is encountered, resulting in a crash. Although the attacker cannot control the specific memory copied into the replies, the use of small length values typically stored in a 32-bit integer can cause significant attempted out-of-bounds reads.

Note

This function is only found in the Xquartz server for MacOS systems, and not in Xwayland, Xorg, or any other X servers.

CVSS Scores

version 3.1