See the release notes: - https://github.com/irontec/sngrep/releases/tag/v1.7.0 - https://github.com/irontec/sngrep/releases/tag/v1.8.0 - https://github.com/irontec/sngrep/releases/tag/v1.8.1 - https://github.com/irontec/sngrep/releases/tag/v1.8.2 This fixes the following vulnerabilities: - CVE-2024-3119: A buffer overflow vulnerability exists in all versions of sngrep since v0.4.2, due to improper handling of 'Call-ID' and 'X-Call-ID' SIP headers. The functions sip_get_callid and sip_get_xcallid in sip.c use the strncpy function to copy header contents into fixed-size buffers without checking the data length. This flaw allows remote attackers to execute arbitrary code or cause a denial of service (DoS) through specially crafted SIP messages. https://www.cve.org/CVERecord?id=CVE-2024-3119 - CVE-2024-3120: A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. The flaw is due to inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers in the sip_validate_packet and sip_parse_extra_headers functions within src/sip.c. This vulnerability allows remote attackers to execute arbitrary code or cause a denial of service (DoS) via crafted SIP messages. https://www.cve.org/CVERecord?id=CVE-2024-3120 Signed-off-by: Titouan Christophe <titouan.christophe@mind.be> Signed-off-by: Julien Olivain <ju.o@free.fr>
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# sngrep
|
|
#
|
|
################################################################################
|
|
|
|
SNGREP_VERSION = 1.8.2
|
|
SNGREP_SITE = \
|
|
https://github.com/irontec/sngrep/releases/download/v$(SNGREP_VERSION)
|
|
SNGREP_LICENSE = GPL-3.0+
|
|
SNGREP_LICENSE_FILES = LICENSE
|
|
SNGREP_CPE_ID_VENDOR = irontec
|
|
SNGREP_AUTORECONF = YES
|
|
SNGREP_DEPENDENCIES = libpcap ncurses host-pkgconf
|
|
|
|
SNGREP_CONF_ENV += \
|
|
$(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
|
|
|
|
SNGREP_CONF_OPTS += --disable-unicode
|
|
|
|
# openssl and gnutls can't be enabled at the same time.
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
SNGREP_DEPENDENCIES += openssl
|
|
SNGREP_CONF_OPTS += --with-openssl --without-gnutls
|
|
# gnutls support also requires libgcrypt
|
|
else ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
|
|
SNGREP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
SNGREP_DEPENDENCIES += gnutls libgcrypt
|
|
SNGREP_CONF_OPTS += --with-gnutls --without-openssl
|
|
else
|
|
SNGREP_CONF_OPTS += --without-gnutls --without-openssl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE2),y)
|
|
SNGREP_DEPENDENCIES += pcre2
|
|
SNGREP_CONF_OPTS += --without-pcre --with-pcre2
|
|
else ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
SNGREP_DEPENDENCIES += pcre
|
|
SNGREP_CONF_OPTS += --with-pcre --without-pcre2
|
|
else
|
|
SNGREP_CONF_OPTS += --without-pcre --without-pcre2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
SNGREP_DEPENDENCIES += zlib
|
|
SNGREP_CONF_OPTS += --with-zlib
|
|
else
|
|
SNGREP_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|