mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
package/swupdate: security bump to version 2026.05
Fixes: * CVE-2023-7216 [1] A path traversal vulnerability was found in the CPIO utility. This issue could allow a remote unauthenticated attacker to trick a user into opening a specially crafted archive. During the extraction process, the archiver could follow symlinks outside of the intended directory, which could be utilized to run arbitrary commands on the target system. * CVE-2026-28525 [2] SWUpdate contains an integer underflow vulnerability in the multipart upload parser in mongoose_multipart.c that allows unauthenticated attackers to cause a denial of service by sending a crafted HTTP POST request to /upload with a malformed multipart boundary and controlled TCP stream timing. Attackers can trigger an integer underflow in the mg_http_multipart_continue_wait_for_chunk() function when the buffer length falls within a specific range, causing an out-of-bounds heap read that writes data beyond the allocated receive buffer to a local IPC socket. For full release notes, see: https://github.com/sbabic/swupdate/releases/tag/2026.05 Remove patch that has been merged upstream for this release. [1] https://github.com/advisories/GHSA-v9vx-4mxw-76j2 [2] https://github.com/advisories/GHSA-hggv-rg65-qf4h Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
This commit is contained in:
committed by
Marcus Hoffmann
parent
4834f18c69
commit
0c6595aaac
@@ -1,67 +0,0 @@
|
||||
From 4e7c2f6c4b978efae69d777705de84411a01c147 Mon Sep 17 00:00:00 2001
|
||||
From: James Hilliard <james.hilliard1@gmail.com>
|
||||
Date: Tue, 24 Mar 2026 14:23:58 -0600
|
||||
Subject: [PATCH] build: fix no-crypto configuration link failure
|
||||
|
||||
When no crypto backend is selected, the crypto directory contributes
|
||||
no objects, so this kbuild variant does not generate
|
||||
crypto/built-in.o.
|
||||
|
||||
The top-level build still linked that file unconditionally, causing
|
||||
the final link to fail.
|
||||
|
||||
Introduce a hidden SWUPDATE_CRYPTO helper selected by the Kconfig
|
||||
options that actually populate crypto/, and only descend into the
|
||||
crypto directory when that helper is enabled.
|
||||
|
||||
Upstream: https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b
|
||||
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
||||
---
|
||||
Makefile | 3 ++-
|
||||
crypto/Kconfig | 5 +++++
|
||||
2 files changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index aa9604aa..759fd191 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -369,7 +369,8 @@ include $(srctree)/Makefile.flags
|
||||
# This allow a user to issue only 'make' to build a kernel including modules
|
||||
# Defaults to vmlinux, but the arch makefile usually adds further targets
|
||||
|
||||
-objs-y := core handlers crypto bootloader suricatta
|
||||
+objs-y := core handlers bootloader suricatta
|
||||
+objs-$(CONFIG_SWUPDATE_CRYPTO) += crypto
|
||||
libs-y := corelib mongoose parser fs containers
|
||||
bindings-y := bindings
|
||||
tools-y := tools
|
||||
diff --git a/crypto/Kconfig b/crypto/Kconfig
|
||||
index 4b9db821..cc953542 100644
|
||||
--- a/crypto/Kconfig
|
||||
+++ b/crypto/Kconfig
|
||||
@@ -23,9 +23,13 @@ menu "Crypto libraries"
|
||||
depends on HAVE_GPGME
|
||||
endmenu
|
||||
|
||||
+config SWUPDATE_CRYPTO
|
||||
+ bool
|
||||
+
|
||||
config HASH_VERIFY
|
||||
bool "Allow to add sha256 hash to each image"
|
||||
depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
|
||||
+ select SWUPDATE_CRYPTO
|
||||
help
|
||||
Allow to add a sha256 hash to an artifact.
|
||||
This is automatically set in case of Signed Image
|
||||
@@ -83,6 +87,7 @@ menu "Encryption"
|
||||
config ENCRYPTED_IMAGES
|
||||
bool "Images can be encrypted with a symmetric key"
|
||||
depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
|
||||
+ select SWUPDATE_CRYPTO
|
||||
comment "Image encryption needs an SSL implementation"
|
||||
depends on !SSL_IMPL_OPENSSL && !SSL_IMPL_WOLFSSL && !SSL_IMPL_MBEDTLS
|
||||
|
||||
--
|
||||
2.47.3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533 swupdate-2025.12.tar.gz
|
||||
sha256 fd70cdfc7224b4209f5f657c3d6052688412325ea5d4e9e792575fa22eb65cef swupdate-2026.05.tar.gz
|
||||
sha256 4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683 LICENSES/BSD-1-Clause.txt
|
||||
sha256 e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6 LICENSES/BSD-3-Clause.txt
|
||||
sha256 0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192 LICENSES/CC0-1.0.txt
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SWUPDATE_VERSION = 2025.12
|
||||
SWUPDATE_VERSION = 2026.05
|
||||
SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
|
||||
SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
|
||||
SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
|
||||
|
||||
Reference in New Issue
Block a user