From patchwork Wed Nov 25 21:34:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 105722 Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2116.1795642511963317481 for ; Wed, 25 Nov 2026 13:35:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=Uzo1Tyc0; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.228, mailfrom: fm-256628-20261125213509403daf08a70002076d-rdlvi6@rts-flowmailer.siemens.com) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20261125213509403daf08a70002076d for ; Wed, 25 Nov 2026 22:35:10 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=6bAPZhCuhz5lB5IZ0aX/IIKl4nED9wWWzZHeH2SAGA8=; b=Uzo1Tyc0VZ5pNUbjnQlAzNBAdz5bKvViQt8IAaZeymJnjtNTm7LqIP/5WCgzGClK1A6F34 DEHTHHkxMKJeiNgEeq57rcbBKd5I4WxoCUCumfFERTaAZ2pckxqYskoolulmF5VZGTXvbMuU F7S428FEAXjA3wUIcAETZeusH3C6hZ+if4uf9M00vvt7PkoFI8gC0jCuym9mQ6huPlAcEvCH j+9LfFk9HRg8YWElFIPyoPthB1F9yGj6XMrg9XzuM5urUrM6Jw1oa/8f2JjPn/2bY7EINtdJ 4pvXSjEsITxQqA+WKvdeV5975rgo2C1RFgx2k1qQwnH894xs0jLNQObg==; From: Peter Marko To: openembedded-core@lists.openembedded.org Cc: Peter Marko Subject: [scarthgap][PATCH] busybox: patch CVE-2026-136411 Date: Wed, 25 Nov 2026 22:34:34 +0100 Message-ID: <20261125213434.3584623-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 25 Nov 2026 21:35:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251254 From: Peter Marko Pick commit mentioned as "patch" in NVD CVE links. Signed-off-by: Peter Marko --- .../busybox/busybox/CVE-2026-136411.patch | 84 +++++++++++++++++++ meta/recipes-core/busybox/busybox_1.36.1.bb | 1 + 2 files changed, 85 insertions(+) create mode 100644 meta/recipes-core/busybox/busybox/CVE-2026-136411.patch diff --git a/meta/recipes-core/busybox/busybox/CVE-2026-136411.patch b/meta/recipes-core/busybox/busybox/CVE-2026-136411.patch new file mode 100644 index 00000000000..048bb867c4f --- /dev/null +++ b/meta/recipes-core/busybox/busybox/CVE-2026-136411.patch @@ -0,0 +1,84 @@ +From b67f7b7d14ac98ca84491718d364b955d21a9cd5 Mon Sep 17 00:00:00 2001 +From: Denys Vlasenko +Date: Fri, 6 Nov 2026 20:33:51 +0100 +Subject: [PATCH] tftpd: make DIR argiment work for non-root too, strip leading + / + +function old new delta +tftpd_main 573 589 +16 + +Signed-off-by: Denys Vlasenko + +CVE: CVE-2026-136411 +Upstream-Status: Backport [https://github.com/vda-linux/busybox_mirror/commit/b67f7b7d14ac98ca84491718d364b955d21a9cd5] +Signed-off-by: Peter Marko +--- + networking/tftp.c | 29 +++++++++++++++++++++++------ + 1 file changed, 23 insertions(+), 6 deletions(-) + +diff --git a/networking/tftp.c b/networking/tftp.c +index 9771a8225..c617cb0eb 100644 +--- a/networking/tftp.c ++++ b/networking/tftp.c +@@ -362,8 +362,8 @@ static int tftp_protocol( + * tftp -> "\0\4\0\1" + * ... + * Download with option of blksize 16384: +- * tftp -> "\0\1FILENAME\0octet\0blksize\00016384\0" +- * "\0\6blksize\00016384\0" <- tftpd ++ * tftp -> "\0\1FILENAME\0octet\0blksize\0""16384\0" ++ * "\0\6blksize\0""16384\0" <- tftpd + * tftp -> "\0\4\0\0" + * "\0\3\0\1FILEDATA..." <- tftpd + * tftp -> "\0\4\0\1" +@@ -375,8 +375,8 @@ static int tftp_protocol( + * "\0\4\0\1" <- tftpd + * ... + * Upload with option of blksize 16384: +- * tftp -> "\0\2FILENAME\0octet\0blksize\00016384\0" +- * "\0\6blksize\00016384\0" <- tftpd ++ * tftp -> "\0\2FILENAME\0octet\0blksize\0""16384\0" ++ * "\0\6blksize\0""16384\0" <- tftpd + * tftp -> "\0\3\0\1FILEDATA..." + * "\0\4\0\1" <- tftpd + * ... +@@ -916,7 +916,15 @@ int tftpd_main(int argc UNUSED_PARAM, char **argv) + G.pw = xgetpwnam(user_opt); + } + if (argv[0]) { +- xchroot(argv[0]); ++ const char *DIR = argv[0]; ++ if (chroot(DIR) == 0) ++ DIR = "/"; ++ /* ++ * If chroot failed, assume that we aren't root, ++ * and at least chdir to the specified DIR. ++ * If chroot worked, move current dir to new "/": ++ */ ++ xchdir(DIR); + } + + result = recv_from_to(STDIN_FILENO, +@@ -944,12 +952,21 @@ int tftpd_main(int argc UNUSED_PARAM, char **argv) + G.block_buf_tail[0] = '\0'; + + local_file = G.block_buf + 2; ++ ++ /* If someone really wants to expose their entire filesystem, "tftpd /" is the way to do it. ++ * Most people don't want that. ++ * Prevent escape via absolute paths or /../: ++ */ ++ while (local_file[0] == '/') ++ local_file++; + if (local_file[0] == '.' || strstr(local_file, "/.")) { ++//TODO: disallow only ".."? + error_msg = "dot in file name"; + goto err; + } ++ + mode = local_file + strlen(local_file) + 1; +- /* RFC 1350 says mode string is case independent */ ++ /* RFC 1350 says mode string is case insensitive */ + if (mode >= G.block_buf + result || strcasecmp(mode, "octet") != 0) { + error_msg = "mode is not 'octet'"; + goto err; diff --git a/meta/recipes-core/busybox/busybox_1.36.1.bb b/meta/recipes-core/busybox/busybox_1.36.1.bb index 70d984b7c6e..108d0d58690 100644 --- a/meta/recipes-core/busybox/busybox_1.36.1.bb +++ b/meta/recipes-core/busybox/busybox_1.36.1.bb @@ -68,6 +68,7 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://CVE-2026-29004-02.patch \ file://CVE-2026-38754.patch \ file://CVE-2024-58251.patch \ + file://CVE-2026-136411.patch \ " SRC_URI:append:libc-musl = " file://musl.cfg " # TODO http://lists.busybox.net/pipermail/busybox/2023-January/090078.html