CVE-2022-1215
NixOS vulnerability analysis and mitigation

Overview

A format string vulnerability (CVE-2022-1215) was discovered in libinput, affecting all versions since 1.10 (released Feb 2018). The vulnerability impacts all Wayland compositors and X.Org when using xf86-input-libinput. The issue was discovered by Albin Eldstål-Ahrens, Lukas Lamster, and Benjamin Svensson from Assured AB (OSS Security).

Technical details

When libinput detects a device, it logs messages through handlers set up by callers, which typically result in printf calls. The vulnerability occurs because device names become part of the format string, allowing printf-style format string placeholders in device names to potentially enable code execution. The vulnerability has a CVSS score of 7.1 (AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C) (OSS Security).

Impact

The logging occurs with the privileges of the caller, which in the case of Xorg may be root. This means that an attacker who controls device names could potentially execute malicious code with elevated privileges (Gentoo Security).

Mitigation and workarounds

The vulnerability was patched in libinput versions 1.20.1, 1.19.4, and 1.18.2. The fix is available in commit 2a8b8fde90d63d48ce09ddae44142674bbca1c28. Releases of versions 1.17.x and earlier were not planned for updates. Users are advised to upgrade to the patched versions (OSS Security).

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-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

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