Skip to contentSkip to conversation

package/busybox: security bump version to 1.38.0

PATCH In review Bernd Kuhls 2 participants 2 messages May 19 – May 30

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/busybox: security bump version to 1.38.0

https://www.busybox.net/news.html

Removed patches which are included in this release, renumbered remaining patches.

Patch 0006 was removed because its fix is included in upstream commit
https://github.com/vda-linux/busybox_mirror/commit/9a8796436b9b0641e13480811902ea2ac57881d3

which also adds a new Kconfig option, disabled by default, to fix CVE-2023-39810. To improve security we enable this option by default.

---
v2:
- updated BUSYBOX_IGNORE_CVES comments (Fiona)
- added CONFIG_FEATURE_PATH_TRAVERSAL_PROTECTION to config files (Fiona)

 ...-failing-saying-ncurses-is-not-found.patch | 38 ------------
 ...Fix-compilation-with-Linux-v6.8-rc1.patch} |  0
 ...-awk.c-fix-CVE-2023-42366-bug-15874.patch} |  0
 ...-SYS_settimeofday-before-calling-sy.patch} |  0
 ...x-wrong-OPT_locallog-flag-detection.patch} |  0
 ...0-libbb-sha-add-missing-sha-NI-guard.patch | 54 -----------------
 ...tests-fix-test-after-cve-2025-46394.patch} |  0
 ...rol-characters-or-spaces-in-the-URL.patch} |  0
 ...archive-sanitize-filenames-on-output.patch | 58 -------------------
 package/busybox/busybox-minimal.config        |  1 +
 package/busybox/busybox.config                |  1 +
 package/busybox/busybox.hash                  |  4 +-
 package/busybox/busybox.mk                    |  7 +--
 13 files changed, 7 insertions(+), 156 deletions(-)
 delete mode 100644 package/busybox/0006-menuconfig-GCC-failing-saying-ncurses-is-not-found.patch
 rename package/busybox/{0007-tc-Fix-compilation-with-Linux-v6.8-rc1.patch => 0006-tc-Fix-compilation-with-Linux-v6.8-rc1.patch} (100%)
 rename package/busybox/{0008-awk.c-fix-CVE-2023-42366-bug-15874.patch => 0007-awk.c-fix-CVE-2023-42366-bug-15874.patch} (100%)
 rename package/busybox/{0009-hwclock-Check-for-SYS_settimeofday-before-calling-sy.patch => 0008-hwclock-Check-for-SYS_settimeofday-before-calling-sy.patch} (100%)
 rename package/busybox/{0011-syslogd-fix-wrong-OPT_locallog-flag-detection.patch => 0009-syslogd-fix-wrong-OPT_locallog-flag-detection.patch} (100%)
 delete mode 100644 package/busybox/0010-libbb-sha-add-missing-sha-NI-guard.patch
 rename package/busybox/{0013-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch => 0010-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch} (100%)
 rename package/busybox/{0014-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch => 0011-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch} (100%)
 delete mode 100644 package/busybox/0012-archival-libarchive-sanitize-filenames-on-output.patch
package/busybox/0006-menuconfig-GCC-failing-saying-ncurses-is-not-found.patch deleted +0 -38
deleted file mode 100644
index 594874471d..0000000000
@@ -1,38 +0,0 @@
-From 7f0bb7f69f38298971aa8153d3fbe9b1fdda8ae7 Mon Sep 17 00:00:00 2001
-From: ctxnop <[email protected]>
-Date: Sun, 26 Jan 2025 20:59:20 +0100
-Subject: [PATCH] menuconfig: GCC failing saying ncurses is not found
-
-Newer GCC increased diagnostics levels resulting in considering the
-test code to be invalid. The resulting message was misleading, saying
-that ncurses was not found, while the check failed for an unrelated
-reason which was hidden because GCC stderr was redirected to
-/dev/null.
-
-Signed-off-by: ctxnop <[email protected]>
-Upstream: http://lists.busybox.net/pipermail/busybox/2024-July/090840.html
-[Fiona: rephrased commit message for clarity]
-Signed-off-by: Fiona Klute (WIWA) <[email protected]>
----
- scripts/kconfig/lxdialog/check-lxdialog.sh | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
-index 5075ebf2d..08e4da3de 100755
---- a/scripts/kconfig/lxdialog/check-lxdialog.sh
-+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
-@@ -45,9 +45,9 @@ trap "rm -f $tmp" 0 1 2 3 15
- 
- # Check if we can link to ncurses
- check() {
--        $cc -x c - -o $tmp 2>/dev/null <<'EOF'
-+	$cc -x c - -o $tmp <<'EOF'
- #include CURSES_LOC
--main() {}
-+int main() { return 0; }
- EOF
- 	if [ $? != 0 ]; then
- 	    echo " *** Unable to find the ncurses libraries or the"       1>&2
--- 
-2.48.1
-
package/busybox/0006-tc-Fix-compilation-with-Linux-v6.8-rc1.patch renamed from package/busybox/0007-tc-Fix-compilation-with-Linux-v6.8-rc1.patch +0 -0
similarity index 100%
rename from package/busybox/0007-tc-Fix-compilation-with-Linux-v6.8-rc1.patch
rename to package/busybox/0006-tc-Fix-compilation-with-Linux-v6.8-rc1.patch
package/busybox/0007-awk.c-fix-CVE-2023-42366-bug-15874.patch renamed from package/busybox/0008-awk.c-fix-CVE-2023-42366-bug-15874.patch +0 -0
similarity index 100%
rename from package/busybox/0008-awk.c-fix-CVE-2023-42366-bug-15874.patch
rename to package/busybox/0007-awk.c-fix-CVE-2023-42366-bug-15874.patch
package/busybox/0008-hwclock-Check-for-SYS_settimeofday-before-calling-sy.patch renamed from package/busybox/0009-hwclock-Check-for-SYS_settimeofday-before-calling-sy.patch +0 -0
similarity index 100%
rename from package/busybox/0009-hwclock-Check-for-SYS_settimeofday-before-calling-sy.patch
rename to package/busybox/0008-hwclock-Check-for-SYS_settimeofday-before-calling-sy.patch
package/busybox/0009-syslogd-fix-wrong-OPT_locallog-flag-detection.patch renamed from package/busybox/0011-syslogd-fix-wrong-OPT_locallog-flag-detection.patch +0 -0
similarity index 100%
rename from package/busybox/0011-syslogd-fix-wrong-OPT_locallog-flag-detection.patch
rename to package/busybox/0009-syslogd-fix-wrong-OPT_locallog-flag-detection.patch
package/busybox/0010-libbb-sha-add-missing-sha-NI-guard.patch deleted +0 -54

54 lines not on this page · raw message

package/busybox/0010-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch renamed from package/busybox/0013-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch +0 -0
similarity index 100%
rename from package/busybox/0013-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch
rename to package/busybox/0010-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch
package/busybox/0011-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch renamed from package/busybox/0014-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch +0 -0
similarity index 100%
rename from package/busybox/0014-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch
rename to package/busybox/0011-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch
package/busybox/0012-archival-libarchive-sanitize-filenames-on-output.patch deleted +0 -58

58 lines not on this page · raw message

package/busybox/busybox-minimal.config +1 -0
index 1e4b404479..c571081374 100644
@@ -190,6 +190,7 @@ CONFIG_LZOPCAT=y
 # CONFIG_FEATURE_UNZIP_LZMA is not set
 # CONFIG_FEATURE_UNZIP_XZ is not set
 # CONFIG_FEATURE_LZMA_FAST is not set
+CONFIG_FEATURE_PATH_TRAVERSAL_PROTECTION=y
 
 #
 # Coreutils
package/busybox/busybox.config +1 -0
index 823fcd2b46..4b532d6fe4 100644
@@ -196,6 +196,7 @@ CONFIG_FEATURE_UNZIP_BZIP2=y
 CONFIG_FEATURE_UNZIP_LZMA=y
 CONFIG_FEATURE_UNZIP_XZ=y
 # CONFIG_FEATURE_LZMA_FAST is not set
+CONFIG_FEATURE_PATH_TRAVERSAL_PROTECTION=y
 
 #
 # Coreutils
package/busybox/busybox.hash +2 -2
index 39ca8915f3..73e88e49da 100644
@@ -1,5 +1,5 @@
-# From https://busybox.net/downloads/busybox-1.37.0.tar.bz2.sha256
-sha256  3311dff32e746499f4df0d5df04d7eb396382d7e108bb9250e7b519b837043a4  busybox-1.37.0.tar.bz2
+# From https://www.busybox.net/downloads/busybox-1.38.0.tar.bz2.sha256
+sha256  34f9ea6ff8636f2c9241153b9114eefa9e65674a45318ae1ef95bb5f31c53bb2  busybox-1.38.0.tar.bz2
 # Locally computed
 sha256  bbfc9843646d483c334664f651c208b9839626891d8f17604db2146962f43548  LICENSE
 sha256  b5a136ed67798e51fe2e0ca0b2a21cb01b904ff0c9f7d563a6292e276607e58f  archival/libarchive/bz/LICENSE
package/busybox/busybox.mk +3 -4
index ebe169cdb9..5b461c3a34 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-BUSYBOX_VERSION = 1.37.0
+BUSYBOX_VERSION = 1.38.0
 BUSYBOX_SITE = https://www.busybox.net/downloads
 BUSYBOX_SOURCE = busybox-$(BUSYBOX_VERSION).tar.bz2
 BUSYBOX_LICENSE = GPL-2.0, bzip2-1.0.4
@@ -15,11 +15,10 @@ BUSYBOX_CPE_ID_VENDOR = busybox
 # 0004-nslookup-sanitize-all-printed-strings-with-printable.patch
 BUSYBOX_IGNORE_CVES += CVE-2022-28391
 
-# 0012-archival-libarchive-sanitize-filenames-on-output.patch
-# 0013-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch
+# 0010-testsuite-tar-tests-fix-test-after-cve-2025-46394.patch
 BUSYBOX_IGNORE_CVES += CVE-2025-46394
 
-# 0014-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch
+# 0011-wget-dont-allow-control-characters-or-spaces-in-the-URL.patch
 BUSYBOX_IGNORE_CVES += CVE-2025-60876
 
 BUSYBOX_CFLAGS = \
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Hi,

Quoted 7 lines

https://www.busybox.net/news.html
Removed patches which are included in this release, renumbered remaining patches.

Patch 0006 was removed because its fix is included in upstream commit
https://github.com/vda-linux/busybox_mirror/commit/9a8796436b9b0641e13480811902ea2ac57881d3

Quoted 8 lines

which also adds a new Kconfig option, disabled by default, to fix CVE-2023-39810. To improve security we enable this option by default.

---
v2:
- updated BUSYBOX_IGNORE_CVES comments (Fiona)
- added CONFIG_FEATURE_PATH_TRAVERSAL_PROTECTION to config files (Fiona)

Committed, thanks.

It is a bit unfortunate that there is no git tag corresponding to the 1.38.0 tarball (presumably Denys forgot to push), but I have verified that the tarball corresponds to:

commit fc71374dfccd46448c62947269a35f1420d7ee28

Author: Denys Vlasenko <[email protected]>
Date:   Wed May 13 04:20:15 2026 +0200

Bump version to 1.38.0

See the discussion on the busybox list:

https://lists.busybox.net/pipermail/busybox/2026-May/092326.html

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot