diff options
| -rw-r--r-- | meta/recipes-core/busybox/busybox/CVE-2025-46394-01.patch | 57 | ||||
| -rw-r--r-- | meta/recipes-core/busybox/busybox/CVE-2025-46394-02.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-core/busybox/busybox_1.36.1.bb | 2 | 
3 files changed, 91 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox/CVE-2025-46394-01.patch b/meta/recipes-core/busybox/busybox/CVE-2025-46394-01.patch new file mode 100644 index 0000000000..c95cba3c33 --- /dev/null +++ b/meta/recipes-core/busybox/busybox/CVE-2025-46394-01.patch  | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | From f5e1bf966b19ea1821f00a8c9ecd7774598689b4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Denys Vlasenko <vda.linux@googlemail.com> | ||
| 3 | Date: Wed, 24 Sep 2025 03:28:47 +0200 | ||
| 4 | Subject: [PATCH] archival/libarchive: sanitize filenames on output (prevent | ||
| 5 | control sequence attacks | ||
| 6 | |||
| 7 | This fixes CVE-2025-46394 (terminal escape sequence injection) | ||
| 8 | |||
| 9 | Original credit: Ian.Norton at entrust.com | ||
| 10 | |||
| 11 | function old new delta | ||
| 12 | header_list 9 15 +6 | ||
| 13 | header_verbose_list 239 244 +5 | ||
| 14 | ------------------------------------------------------------------------------ | ||
| 15 | (add/remove: 0/0 grow/shrink: 2/0 up/down: 11/0) Total: 11 bytes | ||
| 16 | |||
| 17 | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | ||
| 18 | |||
| 19 | CVE: CVE-2025-46394 | ||
| 20 | Upstream-Status: Backport [https://git.busybox.net/busybox/commit/?id=f5e1bf966b19ea1821f00a8c9ecd7774598689b4] | ||
| 21 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 22 | --- | ||
| 23 | archival/libarchive/header_list.c | 2 +- | ||
| 24 | archival/libarchive/header_verbose_list.c | 4 ++-- | ||
| 25 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
| 26 | |||
| 27 | diff --git a/archival/libarchive/header_list.c b/archival/libarchive/header_list.c | ||
| 28 | index 0621aa406..9490b3635 100644 | ||
| 29 | --- a/archival/libarchive/header_list.c | ||
| 30 | +++ b/archival/libarchive/header_list.c | ||
| 31 | @@ -8,5 +8,5 @@ | ||
| 32 | void FAST_FUNC header_list(const file_header_t *file_header) | ||
| 33 | { | ||
| 34 | //TODO: cpio -vp DIR should output "DIR/NAME", not just "NAME" */ | ||
| 35 | - puts(file_header->name); | ||
| 36 | + puts(printable_string(file_header->name)); | ||
| 37 | } | ||
| 38 | diff --git a/archival/libarchive/header_verbose_list.c b/archival/libarchive/header_verbose_list.c | ||
| 39 | index a575a08a0..e7a09430d 100644 | ||
| 40 | --- a/archival/libarchive/header_verbose_list.c | ||
| 41 | +++ b/archival/libarchive/header_verbose_list.c | ||
| 42 | @@ -57,13 +57,13 @@ void FAST_FUNC header_verbose_list(const file_header_t *file_header) | ||
| 43 | ptm->tm_hour, | ||
| 44 | ptm->tm_min, | ||
| 45 | ptm->tm_sec, | ||
| 46 | - file_header->name); | ||
| 47 | + printable_string(file_header->name)); | ||
| 48 | |||
| 49 | #endif /* FEATURE_TAR_UNAME_GNAME */ | ||
| 50 | |||
| 51 | /* NB: GNU tar shows "->" for symlinks and "link to" for hardlinks */ | ||
| 52 | if (file_header->link_target) { | ||
| 53 | - printf(" -> %s", file_header->link_target); | ||
| 54 | + printf(" -> %s", printable_string(file_header->link_target)); | ||
| 55 | } | ||
| 56 | bb_putchar('\n'); | ||
| 57 | } | ||
diff --git a/meta/recipes-core/busybox/busybox/CVE-2025-46394-02.patch b/meta/recipes-core/busybox/busybox/CVE-2025-46394-02.patch new file mode 100644 index 0000000000..ec17b9285a --- /dev/null +++ b/meta/recipes-core/busybox/busybox/CVE-2025-46394-02.patch  | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 7378db981d87b4a2264e14d60340a7fb5c67ae59 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Peter Marko <peter.marko@siemens.com> | ||
| 3 | Date: Fri, 3 Oct 2025 16:12:56 +0200 | ||
| 4 | Subject: [PATCH] testsuite/tar.tests: fix test after CVE-2025-46394 | ||
| 5 | |||
| 6 | tar now sanitizes output and this test needs to expect that. | ||
| 7 | |||
| 8 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 9 | |||
| 10 | CVE: CVE-2025-46394 | ||
| 11 | Upstream-Status: Submitted [https://lists.busybox.net/pipermail/busybox/2025-October/091743.html] | ||
| 12 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 13 | --- | ||
| 14 | testsuite/tar.tests | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/testsuite/tar.tests b/testsuite/tar.tests | ||
| 18 | index 0f2e89112..48fc38114 100755 | ||
| 19 | --- a/testsuite/tar.tests | ||
| 20 | +++ b/testsuite/tar.tests | ||
| 21 | @@ -325,9 +325,9 @@ unset LANG | ||
| 22 | rm -rf etc usr | ||
| 23 | ' "\ | ||
| 24 | etc/ssl/certs/3b2716e5.0 | ||
| 25 | -etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem | ||
| 26 | +etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sa??lay??c??s??.pem | ||
| 27 | etc/ssl/certs/f80cc7f6.0 | ||
| 28 | -usr/share/ca-certificates/mozilla/EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.crt | ||
| 29 | +usr/share/ca-certificates/mozilla/EBG_Elektronik_Sertifika_Hizmet_Sa??lay??c??s??.crt | ||
| 30 | 0 | ||
| 31 | etc/ssl/certs/3b2716e5.0 -> EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem | ||
| 32 | etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem -> /usr/share/ca-certificates/mozilla/EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.crt | ||
diff --git a/meta/recipes-core/busybox/busybox_1.36.1.bb b/meta/recipes-core/busybox/busybox_1.36.1.bb index 069544cc8a..d3f259d45b 100644 --- a/meta/recipes-core/busybox/busybox_1.36.1.bb +++ b/meta/recipes-core/busybox/busybox_1.36.1.bb  | |||
| @@ -59,6 +59,8 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ | |||
| 59 | file://0001-cut-Fix-s-flag-to-omit-blank-lines.patch \ | 59 | file://0001-cut-Fix-s-flag-to-omit-blank-lines.patch \ | 
| 60 | file://CVE-2022-48174.patch \ | 60 | file://CVE-2022-48174.patch \ | 
| 61 | file://CVE-2023-39810.patch \ | 61 | file://CVE-2023-39810.patch \ | 
| 62 | file://CVE-2025-46394-01.patch \ | ||
| 63 | file://CVE-2025-46394-02.patch \ | ||
| 62 | " | 64 | " | 
| 63 | SRC_URI:append:libc-musl = " file://musl.cfg " | 65 | SRC_URI:append:libc-musl = " file://musl.cfg " | 
| 64 | # TODO http://lists.busybox.net/pipermail/busybox/2023-January/090078.html | 66 | # TODO http://lists.busybox.net/pipermail/busybox/2023-January/090078.html | 
