Use After Free Affecting xwayland package, versions <2:23.2.6-1ubuntu0.4


Severity

Recommended
medium

Based on Ubuntu security rating.

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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU2404-XWAYLAND-8746762
  • published26 Feb 2025
  • disclosed25 Feb 2025

Introduced: 25 Feb 2025

NewCVE-2025-26601  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Ubuntu:24.04 xwayland to version 2:23.2.6-1ubuntu0.4 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 Ubuntu. See How to fix? for Ubuntu:24.04 relevant fixed versions and status.

A use-after-free flaw was found in X.Org and Xwayland. When changing an alarm, the values of the change mask are evaluated one after the other, changing the trigger values as requested, and eventually, SyncInitTrigger() is called. If one of the changes triggers an error, the function will return early, not adding the new sync object, possibly causing a use-after-free when the alarm eventually triggers.

CVSS Scores

version 3.1