Skip to main content
Vulnerability Database/CVE-2026-112271

CVE-2026-112271: libdisplay-info Buffer Overflow Vulnerability

CVE-2026-112271 is a heap out-of-bounds read flaw in libdisplay-info that can be exploited through crafted EDID data from malicious monitors or devices. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112271 Overview

CVE-2026-112271 is a heap out-of-bounds read vulnerability in libdisplay-info through version 0.4.0. The flaw resides in the DisplayID v1 section parser located in displayid.c. It triggers when a data block declares a length that exceeds the enclosing section. The is_all_zeroes helper then reads past the heap buffer boundary, which can crash any process linked against the library.

Attackers deliver the malformed data through a crafted Extended Display Identification Data (EDID) blob. Delivery paths include a malicious monitor, a rogue Keyboard-Video-Mouse (KVM) switch, a USB capture device, or a tampered EDID file loaded by display tooling.

Critical Impact

A crafted EDID from an attacker-controlled display device can crash any application or compositor that parses it with libdisplay-info ≤ 0.4.0, enabling local denial of service on Linux desktop and embedded systems.

Affected Products

  • libdisplay-info versions through 0.4.0
  • Wayland compositors and display tooling that link libdisplay-info for EDID parsing
  • Linux desktop and embedded distributions shipping the affected library

Discovery Timeline

  • 2026-10-19 - CVE-2026-112271 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112271

Vulnerability Analysis

The vulnerability is a heap out-of-bounds read classified under [CWE-125]. The DisplayID v1 parser in displayid.c iterates data blocks inside a 128-byte EDID section. Each block carries a length byte that the parser trusts without validating against the remaining section bytes.

When the parser passes the block payload to the is_all_zeroes helper, that helper walks the declared length starting from the block offset. If the declared length pushes the read past the section end, is_all_zeroes dereferences memory beyond the allocated heap buffer. The out-of-bounds access can touch unmapped pages and terminate the process with SIGSEGV.

The condition reaches any caller that parses untrusted EDID data. That includes Wayland compositors, display configuration daemons, and command-line utilities that read EDID blobs from sysfs or user-supplied files.

Root Cause

The parser performs no bounds check between the data block's declared length and the DisplayID section boundary. The DisplayID v1 parsing routine spans lines 603 to 689 of displayid.c in release 0.4.0. The missing length validation is the direct cause of the out-of-bounds read.

Attack Vector

The attack vector is local and requires user interaction, consistent with hot-plugging a display device or opening a crafted EDID file. An attacker supplies a malicious EDID blob through:

  • A rogue monitor, projector, or display dongle connected over HDMI or DisplayPort
  • A compromised KVM switch or USB video capture device that advertises its own EDID
  • An EDID file loaded by drm_kms_helper.edid_firmware or by display inspection tools

No authentication is required. The parser processes the EDID as soon as the device is enumerated or the file is read.

No verified public exploit code is available. See the HackMD exploit analysis and the VulnCheck security advisory for technical write-ups.

Detection Methods for CVE-2026-112271

Indicators of Compromise

  • Repeated SIGSEGV crashes in processes linked against libdisplay-info, including Wayland compositors such as gnome-shell, kwin_wayland, or sway
  • Core dumps whose stack trace includes is_all_zeroes and the DisplayID v1 parser in displayid.c
  • Kernel log entries recording a new display device immediately before the crash

Detection Strategies

  • Monitor system journals and coredumpctl output for crashes referencing libdisplay-info symbols
  • Scan installed packages across the fleet to identify hosts running libdisplay-info ≤ 0.4.0
  • Correlate udev display hot-plug events with subsequent process termination events on sensitive workstations

Monitoring Recommendations

  • Forward systemd-coredump and journalctl events into a centralized log platform for cross-host correlation
  • Alert on unexpected monitor or USB display device connections on servers, kiosks, and conference-room endpoints
  • Track libdisplay-info package versions through endpoint inventory to confirm patch rollout

How to Mitigate CVE-2026-112271

Immediate Actions Required

  • Inventory all Linux hosts and container images that ship libdisplay-info and identify versions at or below 0.4.0
  • Apply the vendor patch as soon as it is released by the upstream project at freedesktop.org GitLab
  • Restrict physical access to display, KVM, and USB capture connections on high-value endpoints
  • Avoid loading untrusted EDID files through kernel parameters or user-space display utilities

Patch Information

Upstream fixes are tracked in the libdisplay-info GitLab repository. Review the vulnerable parser source and the VulnCheck advisory for fix availability and distribution backports. Update to a release that validates the DisplayID data-block length against the enclosing section before invoking is_all_zeroes.

Workarounds

  • Disable automatic EDID parsing on headless or kiosk systems that do not require display configuration
  • Block unknown USB and display peripherals using usbguard policies or BIOS port controls
  • Run compositors and display utilities with systemd Restart= policies to recover service after a crash while a patch is pending

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.