package/mongoose: fix activation of openssl/mbedtls
PATCH 1/3 package/mongoose: fix activation of openssl/mbedtls
MG_ENABLE_SSL and MG_SSL_IF have been dropped since version 7.0 and
https://github.com/cesanta/mongoose/commit/f2fba1d2004c5ddf2fc0a7ca8dc75b5f78feed85
So use the new MG_ENABLE_OPENSSL and MG_ENABLE_MBEDTLS variables
--- package/mongoose/mongoose.mk | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
package/mongoose/mongoose.mk +2 -6
@@ -16,14 +16,10 @@ MONGOOSE_CFLAGS = $(TARGET_CFLAGS) ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGOOSE_DEPENDENCIES += openssl -MONGOOSE_CFLAGS += \ - -DMG_ENABLE_SSL \ - -DMG_SSL_IF=MG_SSL_IF_OPENSSL +MONGOOSE_CFLAGS += -DMG_ENABLE_OPENSSL=1 else ifeq ($(BR2_PACKAGE_MBEDTLS),y) MONGOOSE_DEPENDENCIES += mbedtls -MONGOOSE_CFLAGS += \ - -DMG_ENABLE_SSL \ - -DMG_SSL_IF=MG_SSL_IF_MBEDTLS +MONGOOSE_CFLAGS += -DMG_ENABLE_MBEDTLS=1 endif define MONGOOSE_BUILD_CMDS
Signature · 1 line
2.30.0
PATCH 2/3 package/mongoose: security bump to version 7.1
- Fix CVE-2021-26528: The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connection request after exhausting memory pool.
- Fix CVE-2021-26529: The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 and 6.7-6.18 (compiled with mbedTLS support) is vulnerable to remote OOB write attack via connection request after exhausting memory pool.
- Fix CVE-2021-26530: The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OOB write attack via connection request after exhausting memory pool.
https://github.com/cesanta/mongoose/releases/tag/7.1
--- package/mongoose/mongoose.hash | 2 +- package/mongoose/mongoose.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/mongoose/mongoose.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed: -sha256 28206185873b5c448765f56e54d86a7af5a856b0b5f241aa44ac94bf34af7eee mongoose-7.0.tar.gz +sha256 f099bf7223c527e1a0b7fc8888136a3992e8b5c7123839639213b9483bb4f95b mongoose-7.1.tar.gz sha256 9553d057f2ba980642f2c18d87ed38896cff1c9612d77d684a73a11fe1443b05 LICENSE
package/mongoose/mongoose.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -MONGOOSE_VERSION = 7.0 +MONGOOSE_VERSION = 7.1 MONGOOSE_SITE = $(call github,cesanta,mongoose,$(MONGOOSE_VERSION)) MONGOOSE_LICENSE = GPL-2.0 MONGOOSE_LICENSE_FILES = LICENSE
Signature · 1 line
2.30.0
PATCH 2/3 package/mongoose: security bump to version 7.1
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
- Fix CVE-2021-26528: The
mg_http_serve_filefunction in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connection request after exhausting memory pool.
- Fix CVE-2021-26529: Themg_tls_initfunction in Cesanta Mongoose HTTPS server 7.0 and 6.7-6.18 (compiled with mbedTLS support) is vulnerable to remote OOB write attack via connection request after exhausting memory pool.
- Fix CVE-2021-26530: Themg_tls_initfunction in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OOB write attack via connection request after exhausting memory pool.
Quoted 3 lines
https://github.com/cesanta/mongoose/releases/tag/7.1
Signed-off-by Fabrice Fontaine <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/3 package/mongoose: add MONGOOSE_CPE_ID_VENDOR
In reply to Fabrice Fontainecpe:2.3:a:cesanta:mongoose is a valid CPE identifier for this package:
--- package/mongoose/mongoose.mk | 1 + 1 file changed, 1 insertion(+)
package/mongoose/mongoose.mk +1 -0
@@ -8,6 +8,7 @@ MONGOOSE_VERSION = 7.1 MONGOOSE_SITE = $(call github,cesanta,mongoose,$(MONGOOSE_VERSION)) MONGOOSE_LICENSE = GPL-2.0 MONGOOSE_LICENSE_FILES = LICENSE +MONGOOSE_CPE_ID_VENDOR = cesenta MONGOOSE_INSTALL_STAGING = YES # static library MONGOOSE_INSTALL_TARGET = NO
Signature · 1 line
2.30.0
PATCH 3/3 package/mongoose: add MONGOOSE_CPE_ID_VENDOR
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
cpe:2.3:a:cesanta:mongoose is a valid CPE identifier for this package:
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Acesanta%3AmongooseSigned-off-by Fabrice Fontaine <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/3 package/mongoose: fix activation of openssl/mbedtls
In reply to Fabrice FontaineQuoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
MG_ENABLE_SSLandMG_SSL_IFhave been dropped since version 7.0 and
https://github.com/cesanta/mongoose/commit/f2fba1d2004c5ddf2fc0a7ca8dc75b5f78feed85So use the new
MG_ENABLE_OPENSSLandMG_ENABLE_MBEDTLSvariablesSigned-off-by Fabrice Fontaine <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard