CVE-2022-2320
NixOS vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2022-2320) was discovered in the Xorg-x11-server, specifically within the handling of ProcXkbSetDeviceInfo requests. The vulnerability was disclosed on July 12, 2022, affecting the X.Org Server version 21.1.0. This security flaw stems from improper validation of user-supplied data, which can lead to memory access beyond allocated buffer boundaries (ZDI Advisory, X.Org Announcement).

Technical details

The vulnerability is classified with a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The technical issue involves incorrect naming of functions, where XkbSetDeviceInfo ended up as the checker function and XkbSetDeviceInfoCheck as the setter function. This resulted in the setter function being called before proper validation, potentially leading to out-of-bounds memory access. The vulnerability was introduced in commit c06e27b2f6fd9f7b9f827623a48876a225264132 (X.Org Announcement, NVD).

Impact

When successfully exploited, this vulnerability allows an attacker to escalate privileges and execute arbitrary code in the context of root. This is particularly critical for systems where the X server is running with privileged access and for SSH X forwarding sessions (X.Org Announcement, ZDI Advisory).

Mitigation and workarounds

The vulnerability was fixed in xorg-server version 21.1.4 through a patch that correctly names the functions and moves the length checks to the checker function. The fix was implemented in commit dd8caf39e9e15d8f302e54045dd08d8ebf1025dc, with an additional required commit f1070c01d616c5f21f939d5ebc533738779451ac for backporting the security fixes (X.Org Announcement, Gentoo Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management