======================================================================
X.Org Security Advisory: April 21, 2026

Issue in libXpm prior to version 3.5.19
======================================================================

An issue has been found in the libXpm library published by X.Org for which
we are releasing a security fix for in libXpm-3.5.19.

* CVE-2026-4367: libXpm Out-of-bounds read in xpmNextWord()
libXpm uses a number of internal helper functions to parse the XPM file
  format.
  One of these internal functions, xpmNextString(), checks for the NULL
  terminator when looking for the end of the current string but not when
  looking for the beginning of the next string.
  A small XPM file with a malformed color table definition may cause the
  function xpmNextWord(), called from xpmParseColors() following a call
  to xpmNextString(), to start past the actual end of the file, causing
  an out-of-bound read.

  Introduced in: Unknown, prior to 3.5.5 (from Xorg 7.1)
  Fixed in: libXpm-3.5.19
  Fix: https://gitlab.freedesktop.org/xorg/lib/libxpm/-/commit/5448e1bd
  Found by: Naoki Wakamatsu

Attachment: OpenPGP_0x14706DBE1E4B4540.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to