Buffer Over-read Affecting xorg-server package, versions [1.7.0,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% (20th 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-6579652
  • published7 Apr 2024
  • disclosed4 Apr 2024
  • creditUnknown

Introduced: 4 Apr 2024

CVE-2024-31081  (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 ProcXIPassiveGrabDevice function. An attacker can cause the X server to read heap memory values and then transmit them back to the client until encountering an unmapped page, resulting in a crash by using byte-swapped length values in replies. This could potentially lead to memory leakage and segmentation faults, particularly when triggered by a client with a different endianness. Despite the attacker's inability to control the specific memory copied into the replies, the small length values typically stored in a 32-bit integer can result in significant attempted out-of-bounds reads.

CVSS Scores

version 3.1