Stack-based Buffer Overflow Affecting xwayland package, versions <2:24.1.12-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.17% (7th 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-DEBIANUNSTABLE-XWAYLAND-17192559
  • published5 Jun 2026
  • disclosed5 Jun 2026

Introduced: 5 Jun 2026

CVE-2026-50259  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade Debian:unstable xwayland to version 2:24.1.12-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream xwayland package and not the xwayland package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland. _XkbSetMapChecks() declares a fixed-size stack buffer mapWidths[256] indexed by key type index. The helper function CheckKeyTypes() writes to this buffer at a client-controlled offset, allowing a stack buffer overflow. This may be used to crash the server, or for privilege escalation if the X server runs as root.

References

CVSS Base Scores

version 3.1