Files
buildroot/package/x11r7/xlib_libXpm/xlib_libXpm.mk
Peter Korsgaard 3aa75c99c1 package/xlib_libXpm: security bump to version 3.5.19
Fixes the following vulnerability:

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.

Advisory:
https://lists.x.org/archives/xorg-announce/2026-April/003690.html

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-05-06 22:32:47 +02:00

26 lines
870 B
Makefile

################################################################################
#
# xlib_libXpm
#
################################################################################
XLIB_LIBXPM_VERSION = 3.5.19
XLIB_LIBXPM_SOURCE = libXpm-$(XLIB_LIBXPM_VERSION).tar.xz
XLIB_LIBXPM_SITE = https://xorg.freedesktop.org/archive/individual/lib
XLIB_LIBXPM_LICENSE = MIT
XLIB_LIBXPM_LICENSE_FILES = COPYING COPYRIGHT
XLIB_LIBXPM_CPE_ID_VENDOR = x.org
XLIB_LIBXPM_CPE_ID_PRODUCT = libxpm
XLIB_LIBXPM_INSTALL_STAGING = YES
XLIB_LIBXPM_DEPENDENCIES = xlib_libX11 xlib_libXext xlib_libXt xorgproto \
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
$(TARGET_NLS_DEPENDENCIES)
XLIB_LIBXPM_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
XLIB_LIBXPM_CONF_OPTS = --disable-open-zfile
ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
XLIB_LIBXPM_CONF_ENV += ac_cv_search_gettext=no
endif
$(eval $(autotools-package))