A use-after-free flaw was found in the X.Org X server and Xwayland in SyncChangeCounter(). A client that sets up multiple SyncCounters can trigger a use-after-free when destroying those counters via a second client connection while changing those counters. This may be used to crash the server, or for privilege escalation if the X server runs as root.
{
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50261.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0:24.1.9-4.el10_2.2"
},
{
"fixed": "0:24.1.5-6.el10_0.1"
},
{
"fixed": "0:1.1.0-25.el6_10.18"
},
{
"fixed": "0:1.20.4-35.el7_9"
},
{
"fixed": "0:1.8.0-36.el7_9.5"
},
{
"fixed": "0:21.1.3-20.el8_10.2"
},
{
"fixed": "0:1.20.11-28.el8_10.2"
},
{
"fixed": "0:1.15.0-10.el8_10"
},
{
"fixed": "0:1.20.10-5.el8_4"
},
{
"fixed": "0:1.11.0-8.el8_4.16"
},
{
"fixed": "0:1.20.10-5.el8_4"
},
{
"fixed": "0:1.11.0-8.el8_4.16"
},
{
"fixed": "0:1.20.11-8.el8_6"
},
{
"fixed": "0:21.1.3-2.el8_6.7"
},
{
"fixed": "0:1.12.0-6.el8_6.18"
},
{
"fixed": "0:1.20.11-8.el8_6"
},
{
"fixed": "0:21.1.3-2.el8_6.7"
},
{
"fixed": "0:1.12.0-6.el8_6.18"
},
{
"fixed": "0:1.20.11-19.el8_8"
},
{
"fixed": "0:21.1.3-13.el8_8.1"
},
{
"fixed": "0:1.12.0-15.el8_8.18"
},
{
"fixed": "0:1.20.11-19.el8_8"
},
{
"fixed": "0:21.1.3-13.el8_8.1"
},
{
"fixed": "0:1.12.0-15.el8_8.18"
},
{
"fixed": "0:24.1.9-4.el9_8.2"
},
{
"fixed": "0:1.20.11-34.el9_8.2"
},
{
"fixed": "0:1.15.0-7.el9_8.2"
},
{
"fixed": "0:1.20.11-21.el9_2"
},
{
"fixed": "0:21.1.3-10.el9_2.1"
},
{
"fixed": "0:1.12.0-14.el9_2.15"
},
{
"fixed": "0:1.20.11-29.el9_4"
},
{
"fixed": "0:22.1.9-8.el9_4.1"
},
{
"fixed": "0:1.13.1-8.el9_4.10"
},
{
"fixed": "0:1.20.11-34.el9_6"
},
{
"fixed": "0:23.2.7-6.el9_6.1"
},
{
"fixed": "0:1.14.1-11.el9_6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:x.org:x_server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "21.1.23"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:x.org:xwayland:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "24.1.12"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "bdd7bf57af208b1ddf57d4683d67104443b44812"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50261.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "65338824587909873669415630628024203791",
"length": 383
},
"id": "CVE-2026-50261-c5408df1",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://gitlab.freedesktop.org/xorg/xserver@bdd7bf57af208b1ddf57d4683d67104443b44812",
"target": {
"file": "Xext/sync.c",
"function": "SyncChangeCounter"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"250193507199759011693454702667975137262",
"254549355503302630593844762860733065962",
"3233652090355065373400587962311919480",
"115426914441259299880338233375805146245",
"166751493744464750211002044384396838693"
],
"threshold": 0.9
},
"id": "CVE-2026-50261-e1b6b967",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://gitlab.freedesktop.org/xorg/xserver@bdd7bf57af208b1ddf57d4683d67104443b44812",
"target": {
"file": "Xext/sync.c"
}
}
]
"2026-10-21T10:16:45Z"