Misc CVE ignores
cover Misc CVE ignores
* I'm working on upstream NVD fixes for some of these.
* There are roughly half of the ignore cases that are a bit of a challenge to identify where the fix was clearly tracked into a specific version. I tried to document in each commit as much as a could by linking to conversations clarifying the details.
Matt Weber (10):
package/bind: ignore CVE-2017-3139
package/coreutils: ignore CVE-2013-0221, CVE-2013-0222, CVE-2013-0223 package/bind: ignore CVE-2019-6470
package/cmake: ignore CVE-2016-10642
package/flex: ignore CVE-2019-6293
package/hostapd: ignore CVE-2021-30004 when using openssl package/wpa_supplicant: ignore CVE-2021-30004 when using openssl package/ncurses: ignore CVE-2018-10754, CVE-2018-19211,
CVE-2018-19217, CVE-2019-17594, CVE-2019-17595
package/rsyslog: ignore CVE-2015-3243
package/tar: ignore CVE-2007-4476
package/bind/bind.mk | 4 ++++ package/cmake/cmake.mk | 2 ++ package/coreutils/coreutils.mk | 4 ++++ package/flex/flex.mk | 3 +++ package/hostapd/hostapd.mk | 2 ++ package/ncurses/ncurses.mk | 6 ++++++ package/rsyslog/rsyslog.mk | 4 ++++ package/tar/tar.mk | 2 ++ package/wpa_supplicant/wpa_supplicant.mk | 2 ++ 9 files changed, 29 insertions(+)
Signature · 1 line
2.17.1
PATCH 1/10 package/bind: ignore CVE-2017-3139
This CVE is only relevant to the configuration of a specific RHEL release (6.x).
https://bugzilla.redhat.com/show_bug.cgi?id=1447743
--- package/bind/bind.mk | 2 ++ 1 file changed, 2 insertions(+)
package/bind/bind.mk +2 -0
@@ -13,6 +13,8 @@ BIND_CONFIG_SCRIPTS = bind9-config isc-config.sh BIND_LICENSE = MPL-2.0 BIND_LICENSE_FILES = COPYRIGHT BIND_CPE_ID_VENDOR = isc +# Only applies to RHEL6.x with DNSSEC validation on +BIND_IGNORE_CVES = CVE-2017-3139 BIND_TARGET_SERVER_SBIN = arpaname ddns-confgen dnssec-checkds dnssec-coverage BIND_TARGET_SERVER_SBIN += dnssec-importkey dnssec-keygen dnssec-revoke BIND_TARGET_SERVER_SBIN += dnssec-settime dnssec-verify genrandom
Signature · 1 line
2.17.1
PATCH 2/10 package/coreutils: ignore CVE-2013-0221, CVE-2013-0222, CVE-2013-0223
In reply to Matt WeberThis CVE is only relevant to a build when the SUSE coreutils-i18n.patch is included. The upstream codebase does not include this patch, nor does Buildroot.
https://security-tracker.debian.org/tracker/CVE-2013-0221
https://security-tracker.debian.org/tracker/CVE-2013-0222
https://security-tracker.debian.org/tracker/CVE-2013-0223
--- package/coreutils/coreutils.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/coreutils/coreutils.mk +4 -0
@@ -10,6 +10,10 @@ COREUTILS_SOURCE = coreutils-$(COREUTILS_VERSION).tar.xz COREUTILS_LICENSE = GPL-3.0+ COREUTILS_LICENSE_FILES = COPYING COREUTILS_CPE_ID_VENDOR = gnu +# Only when including SUSE coreutils-i18n.patch +COREUTILS_IGNORE_CVES = CVE-2013-0221 +COREUTILS_IGNORE_CVES += CVE-2013-0222 +COREUTILS_IGNORE_CVES += CVE-2013-0223 # We're patching m4/pthread-cond.m4 COREUTILS_AUTORECONF = YES
Signature · 1 line
2.17.1
PATCH 2/10 package/coreutils: ignore CVE-2013-0221, CVE-2013-0222, CVE-2013-0223
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Matt" == Matt Weber <[email protected]> writes:
This CVE is only relevant to a build when the SUSE coreutils-i18n.patch is included. The upstream codebase does not include this patch, nor does Buildroot.
https://security-tracker.debian.org/tracker/CVE-2013-0221
https://security-tracker.debian.org/tracker/CVE-2013-0222
https://security-tracker.debian.org/tracker/CVE-2013-0223Signed-off-by Matthew Weber <[email protected]>--- package/coreutils/coreutils.mk | 4 ++++ 1 file changed, 4 insertions(+)package/coreutils/coreutils.mk +0
-0
package/coreutils/coreutils.mk COREUTILS_SOURCE = coreutils-$(COREUTILS_VERSION).tar.xz · line 16
Quoted 7 lines
package/coreutils/coreutils.mk +4
-0@@ -10,6 +10,10 @@ COREUTILS_SOURCE = coreutils-$(COREUTILS_VERSION).tar.xz COREUTILS_LICENSE = GPL-3.0+ COREUTILS_LICENSE_FILES = COPYING COREUTILS_CPE_ID_VENDOR = gnu +# Only when including SUSE coreutils-i18n.patch +COREUTILS_IGNORE_CVES = CVE-2013-0221 +COREUTILS_IGNORE_CVES += CVE-2013-0222 +COREUTILS_IGNORE_CVES += CVE-2013-0223
NIT: There is no problem having multiple CVE's on the same line:
COREUTILS_IGORE_CVES += CVE-2013-0221 CVE-2013-0222 CVE-2013-0223
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/10 package/bind: ignore CVE-2019-6470
In reply to Matt WeberThere had existed in one of the ISC BIND libraries a bug in a function that was used by dhcpd when operating in DHCPv6 mode. There was also a bug in dhcpd relating to the use of this function per its documentation, but the bug in the library function prevented this from causing any harm. All releases of dhcpd from ISC contain copies of this, and other, BIND libraries in combinations that have been tested prior to release and are known to not present issues like this.
Affects: Builds of dhcpd versions prior to version 4.4.1 when using BIND versions 9.11.2 or later.
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6470
--- package/bind/bind.mk | 2 ++ 1 file changed, 2 insertions(+)
package/bind/bind.mk +2 -0
@@ -15,6 +15,8 @@ BIND_LICENSE_FILES = COPYRIGHT BIND_CPE_ID_VENDOR = isc # Only applies to RHEL6.x with DNSSEC validation on BIND_IGNORE_CVES = CVE-2017-3139 +# Library CVE and not used by bind but used by ISC DHCP +BIND_IGNORE_CVES += CVE-2019-6470 BIND_TARGET_SERVER_SBIN = arpaname ddns-confgen dnssec-checkds dnssec-coverage BIND_TARGET_SERVER_SBIN += dnssec-importkey dnssec-keygen dnssec-revoke BIND_TARGET_SERVER_SBIN += dnssec-settime dnssec-verify genrandom
Signature · 1 line
2.17.1
PATCH 4/10 package/cmake: ignore CVE-2016-10642
In reply to Matt WeberThis is specific to the npm package that installs cmake, so isn't relevant to Buildroot.
https://github.com/openembedded/openembedded-core/blob/14241ed09f9ed317045cf75a6d08416d3579bb8d/meta/recipes-devtools/cmake/cmake.inc
https://nvd.nist.gov/vuln/detail/CVE-2016-10642#vulnCurrentDescriptionTitle
"cmake installs the cmake x86 linux binaries. cmake downloads binary resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested binary with an attacker controlled binary if the attacker is on the network or positioned in between the user and the remote server."
--- package/cmake/cmake.mk | 2 ++ 1 file changed, 2 insertions(+)
package/cmake/cmake.mk +2 -0
@@ -10,6 +10,8 @@ CMAKE_SITE = https://cmake.org/files/v$(CMAKE_VERSION_MAJOR) CMAKE_LICENSE = BSD-3-Clause CMAKE_LICENSE_FILES = Copyright.txt CMAKE_CPE_ID_VENDOR = cmake_project +# Tool download MITM attack warning if using npm package to install cmake +CMAKE_IGNORE_CVES = CVE-2016-10642 # CMake is a particular package: # * CMake can be built using the generic infrastructure or the cmake one.
Signature · 1 line
2.17.1
PATCH 5/10 package/flex: ignore CVE-2019-6293
In reply to Matt Weberhttps://security-tracker.debian.org/tracker/CVE-2019-6293
https://github.com/NixOS/nixpkgs/issues/55386#issuecomment-683792976
"But this bug does not cause stack overflows in the generated code. The function and file referred to in the bug (mark_beginning_as_normal in nfa.c) are part of the flex code generator, not part of the generated code. If flex crashes before generating any code, that can hardly be a vulnerability. If flex does not crash, the generated code is fine (or perhaps subject to other unreported bugs, who knows, but the NFA has been generated correctly)."
Upstream has chosen to not provide a fix
https://github.com/microsoft/CBL-Mariner/pull/312
--- package/flex/flex.mk | 3 +++ 1 file changed, 3 insertions(+)
package/flex/flex.mk +3 -0
@@ -10,6 +10,9 @@ FLEX_INSTALL_STAGING = YES FLEX_LICENSE = FLEX FLEX_LICENSE_FILES = COPYING FLEX_CPE_ID_VENDOR = flex_project +# bug does not cause stack overflows in the generated code and has been +# noted upstream as a bug in the code generator +FLEX_IGNORE_CVES = CVE-2019-6293 FLEX_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-m4 HOST_FLEX_DEPENDENCIES = host-m4
Signature · 1 line
2.17.1
PATCH 6/10 package/hostapd: ignore CVE-2021-30004 when using openssl
In reply to Matt WeberThe CVE can be ignored when the internal TLS impl isn't used.
https://security-tracker.debian.org/tracker/CVE-2021-30004
"Issue only affects the "internal" TLS implementation (CONFIG_TLS=internal)"
--- package/hostapd/hostapd.mk | 2 ++ 1 file changed, 2 insertions(+)
package/hostapd/hostapd.mk +2 -0
@@ -38,6 +38,8 @@ ifeq ($(BR2_PACKAGE_LIBOPENSSL),y) HOSTAPD_DEPENDENCIES += host-pkgconf libopenssl HOSTAPD_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs openssl` HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/' +# Issue only affects the "internal" TLS implementation +HOSTAPD_IGNORE_CVES += CVE-2021-30004 else HOSTAPD_CONFIG_DISABLE += CONFIG_EAP_PWD CONFIG_EAP_TEAP HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/'
Signature · 1 line
2.17.1
PATCH 6/10 package/hostapd: ignore CVE-2021-30004 when using openssl
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Matt" == Matt Weber <[email protected]> writes:
The CVE can be ignored when the internal TLS impl isn't used.
https://security-tracker.debian.org/tracker/CVE-2021-30004
"Issue only affects the "internal" TLS implementation (CONFIG_TLS=internal)"Signed-off-by Matthew Weber <[email protected]>
A conditionally ignored CVE isn't great. Why not just add the fix?
I just gave it a try and it applies cleanly to 2.9.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 7/10 package/wpa_supplicant: ignore CVE-2021-30004 when using openssl
In reply to Matt WeberThe CVE can be ignored when the internal TLS impl isn't used.
https://security-tracker.debian.org/tracker/CVE-2021-30004
"Issue only affects the "internal" TLS implementation (CONFIG_TLS=internal)"
--- package/wpa_supplicant/wpa_supplicant.mk | 2 ++ 1 file changed, 2 insertions(+)
package/wpa_supplicant/wpa_supplicant.mk +2 -0
@@ -132,6 +132,8 @@ ifeq ($(BR2_PACKAGE_LIBOPENSSL),y) WPA_SUPPLICANT_DEPENDENCIES += host-pkgconf libopenssl WPA_SUPPLICANT_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs openssl` WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/' +# Issue only affects the "internal" TLS implementation +WPA_SUPPLICANT_IGNORE_CVES += CVE-2021-30004 else WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_EAP_PWD CONFIG_EAP_TEAP WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/'
Signature · 1 line
2.17.1
PATCH 8/10 package/ncurses: ignore CVE-2018-10754, CVE-2018-19211, CVE-2018-19217, CVE-2019-17594, CVE-2019-17595
In reply to Matt WeberCommit 4b21273d71d09 added upstream (security) patches up to 20200118 and in the commit description it outlines these CVEs were patched.
--- package/ncurses/ncurses.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/ncurses/ncurses.mk +6 -0
@@ -11,6 +11,12 @@ NCURSES_DEPENDENCIES = host-ncurses NCURSES_LICENSE = MIT with advertising clause NCURSES_LICENSE_FILES = COPYING NCURSES_CPE_ID_VENDOR = gnu +# Commit 4b21273d71d09 added upstream (security) patches up to 20200118 +NCURSES_IGNORE_CVES += CVE-2018-10754 +NCURSES_IGNORE_CVES += CVE-2018-19211 +NCURSES_IGNORE_CVES += CVE-2018-19217 +NCURSES_IGNORE_CVES += CVE-2019-17594 +NCURSES_IGNORE_CVES += CVE-2019-17595 NCURSES_CONFIG_SCRIPTS = ncurses$(NCURSES_LIB_SUFFIX)6-config NCURSES_PATCH = \ $(addprefix https://invisible-mirror.net/archives/ncurses/$(NCURSES_VERSION)/, \
Signature · 1 line
2.17.1
PATCH 9/10 package/rsyslog: ignore CVE-2015-3243
In reply to Matt Weberhttps://security-tracker.debian.org/tracker/CVE-2015-3243
"Rsyslog uses weak permissions for generating log files."
Ignoring this CVE for Buildroot as normally there are not local users and a build could customize the rsyslog.conf to be more restrictive ($FileCreateMode 0640).
Example fix from Alpino Linux
https://github.com/libTorrentUser/alpino-linux-aports/commit/3cb5210cdac46fb8805d4028df16f5889f393a09
--- package/rsyslog/rsyslog.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/rsyslog/rsyslog.mk +4 -0
@@ -9,6 +9,10 @@ RSYSLOG_SITE = http://rsyslog.com/files/download/rsyslog RSYSLOG_LICENSE = GPL-3.0, LGPL-3.0, Apache-2.0 RSYSLOG_LICENSE_FILES = COPYING COPYING.LESSER COPYING.ASL20 RSYSLOG_CPE_ID_VENDOR = rsyslog +# rsyslog uses weak permissions for generating log files. +# Ignoring this CVE as Buildroot normally doesn't have local users and a build +# could customize the rsyslog.conf to be more restrictive ($FileCreateMode 0640) +RSYSLOG_IGNORE_CVES += CVE-2015-3243 RSYSLOG_DEPENDENCIES = zlib libestr liblogging libfastjson host-pkgconf RSYSLOG_CONF_ENV = ac_cv_prog_cc_c99='-std=c99' RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
Signature · 1 line
2.17.1
PATCH 9/10 package/rsyslog: ignore CVE-2015-3243
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Matt" == Matt Weber <[email protected]> writes:
https://security-tracker.debian.org/tracker/CVE-2015-3243
"Rsyslog uses weak permissions for generating log files."Ignoring this CVE for Buildroot as normally there are not local users and a build could customize the rsyslog.conf to be more restrictive ($FileCreateMode 0640).
Example fix from Alpino Linux
https://github.com/libTorrentUser/alpino-linux-aports/commit/3cb5210cdac46fb8805d4028df16f5889f393a09
Here as well, I don't like ignoring the issue just because you COULD work around it by doing customization outside Buildroot.
How about combining this with a patch to platform/redhat/rsyslog.conf to set sensible permissions just like it is done for Alpino?
Quoted 27 lines
Signed-off-by Matthew Weber <[email protected]>--- package/rsyslog/rsyslog.mk | 4 ++++ 1 file changed, 4 insertions(+)package/rsyslog/rsyslog.mk +4
-0@@ -9,6 +9,10 @@ RSYSLOG_SITE = http://rsyslog.com/files/download/rsyslog RSYSLOG_LICENSE = GPL-3.0, LGPL-3.0, Apache-2.0 RSYSLOG_LICENSE_FILES = COPYING COPYING.LESSER COPYING.ASL20 RSYSLOG_CPE_ID_VENDOR = rsyslog +# rsyslog uses weak permissions for generating log files. +# Ignoring this CVE as Buildroot normally doesn't have local users and a build +# could customize the rsyslog.conf to be more restrictive ($FileCreateMode 0640) +RSYSLOG_IGNORE_CVES += CVE-2015-3243 RSYSLOG_DEPENDENCIES = zlib libestr liblogging libfastjson host-pkgconf RSYSLOG_CONF_ENV = ac_cv_prog_cc_c99='-std=c99' RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard
PATCH 10/10 package/tar: ignore CVE-2007-4476
In reply to Matt Weberhttps://security-tracker.debian.org/tracker/CVE-2007-4476
Currently NVD has this incorrectly tagged for all versions. The bug trackers on different distros show it was generally fixed in versions >= 1.16 but because the impacted source code is in the GNU paxutils, it is hard to follow in what cases tar has been fixed around that 1.16 version.
https://bugs.gentoo.org/196978
--- package/tar/tar.mk | 2 ++ 1 file changed, 2 insertions(+)
package/tar/tar.mk +2 -0
@@ -13,6 +13,8 @@ TAR_CONF_OPTS = --exec-prefix=/ TAR_LICENSE = GPL-3.0+ TAR_LICENSE_FILES = COPYING TAR_CPE_ID_VENDOR = gnu +# only tar <= 1.16 +TAR_IGNORE_CVES += CVE-2007-4476 ifeq ($(BR2_PACKAGE_ACL),y) TAR_DEPENDENCIES += acl
Signature · 1 line
2.17.1
cover Misc CVE ignores
In reply to Matt WeberMatt, All,
On 2021-04-21 15:42 -0500, Matt Weber spake thusly:
Quoted 7 lines
* I'm working on upstream NVD fixes for some of these.
* There are roughly half of the ignore cases that are a bit of a challenge to identify where the fix was clearly tracked into a specific version. I tried to document in each commit as much as a could by linking to conversations clarifying the details.
Quoted 6 lines
Matt Weber (10):
package/bind: ignore CVE-2017-3139
package/coreutils: ignore CVE-2013-0221, CVE-2013-0222, CVE-2013-0223 package/bind: ignore CVE-2019-6470
package/cmake: ignore CVE-2016-10642
package/flex: ignore CVE-2019-6293
For this one, I've switched to using the actual upstream URL, rather that of a downstream consumer:
https://github.com/westes/flex/issues/414
Quoted 6 lines
package/hostapd: ignore CVE-2021-30004 when using openssl package/wpa_supplicant: ignore CVE-2021-30004 when using openssl package/ncurses: ignore CVE-2018-10754, CVE-2018-19211,
CVE-2018-19217, CVE-2019-17594, CVE-2019-17595package/rsyslog: ignore CVE-2015-3243
package/tar: ignore CVE-2007-4476
Series applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 18 lines
package/bind/bind.mk | 4 ++++ package/cmake/cmake.mk | 2 ++ package/coreutils/coreutils.mk | 4 ++++ package/flex/flex.mk | 3 +++ package/hostapd/hostapd.mk | 2 ++ package/ncurses/ncurses.mk | 6 ++++++ package/rsyslog/rsyslog.mk | 4 ++++ package/tar/tar.mk | 2 ++ package/wpa_supplicant/wpa_supplicant.mk | 2 ++ 9 files changed, 29 insertions(+)Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
cover Misc CVE ignores
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Matt, All,
On 2021-04-21 15:42 -0500, Matt Weber spake thusly:Quoted 7 lines
* I'm working on upstream NVD fixes for some of these.
* There are roughly half of the ignore cases that are a bit of a challenge to identify where the fix was clearly tracked into a specific version. I tried to document in each commit as much as a could by linking to conversations clarifying the details.
Quoted 6 lines
Matt Weber (10):
package/bind: ignore CVE-2017-3139
package/coreutils: ignore CVE-2013-0221, CVE-2013-0222, CVE-2013-0223 package/bind: ignore CVE-2019-6470
package/cmake: ignore CVE-2016-10642
package/flex: ignore CVE-2019-6293For this one, I've switched to using the actual upstream URL, rather that of a downstream consumer:
https://github.com/westes/flex/issues/414
Quoted 8 lines
Quoted 6 lines
package/hostapd: ignore CVE-2021-30004 when using openssl package/wpa_supplicant: ignore CVE-2021-30004 when using openssl package/ncurses: ignore CVE-2018-10754, CVE-2018-19211, CVE-2018-19217, CVE-2019-17594, CVE-2019-17595 package/rsyslog: ignore CVE-2015-3243
package/tar: ignore CVE-2007-4476Series applied to master, thanks.
I am not so happy with the hostapd/wpa_supplicant/rsyslog ignores, but I have applied the series to 2021.02.x anyway and will send followup patches to master (and 2021.02.x) to improve those packages later.
Signature · 1 line
Bye, Peter Korsgaard