From patchwork Fri Oct 16 06:53:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 101054 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B30A1CCA462 for ; Fri, 16 Oct 2026 06:53:26 +0000 (UTC) Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.16260.1792133603646271459 for ; Thu, 15 Oct 2026 23:53:23 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=iDgoDGjr; spf=pass (domain: cisco.com, ip: 173.37.86.76, mailfrom: dkelaiya@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=4184; q=dns/txt; s=iport01; t=1792133603; x=1793343203; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hy9VbCdvY9yqpTKMevwvcWc0qVZMpmqTb//EEHv+V2k=; b=iDgoDGjrd0QrYDjwotbKJB8ectVxog0L4l0G6JJdjrJHELm3s0RiWnmV XYobggdF25WvdBOv1dZA6o/hftVHeH1DnqPz+cwSPectn7Yks0ODm4dv7 1pH4T2r7MKn+qUD/PaN2uaCc6OcvYqZAxdQHu4334MYuIByJb5HmhE2Ol SiZzjS3px68nHum5H2BDuHr8nvl3oewihErc+CO3h9EzD2ISwVo7XIvtj 5Oxc3oDbfeoh0QXGHyvPIFSCcG9Q9WxZYwOeOdyGxQ1uZO1qVwvgPmzpT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Ae811FfUuFLMqvRFTvOTLp3AqfUcAzN11BWQpAp0G9d1zOnhp0 /cREA41c0u60rfeLLKTEoGAh+w5J8XteYdasXZ6wHSBUbAtQIvIROPB4towMDUY358VW62BI ZBENHw2ME2ojx5nYj/7DLoyn+qsj3juehVTqUmeouw85G27IAlZjeOzbIuLKoHWLSlTthqJv k/A9F/SOQ45BuS45T/Y/2qlqPCayEsXX6pXTtVU7MVCh0WewGEWAhAaWVa35PK+kEOWX9NEN 1dS/TIjq6U3/kGnQtTxGRqirxa5UgU0QdFcFag+rQqK0KeRu1rfDWkfRTkHY9sj3CMreQEXO payt4uBLVRSXHe9EBpxKp/8QeuOBBUo IronPort-HdrOrdr: A9a23:rNQzcK9OFzrMtrtS6eFuk+DuI+orL9Y04lQ7vn2ZhyY7TiX+rb HKoB11737JYVoqNU3I+urwWpVoP0m9yXcd2+B4Vt2ftWLd1ldAQrsP0WKb+UyCJwTOsshAyK xnb69yTPf0DVR8kILGxTPQKadF/DFCm5rY49s3CBxWPGZXV50= X-Talos-CUID: 9a23:+TVqRmnPj72rX/Tp1VLbYKV06H/XOWbU6WjvM1G3MmJSUZqzQlaoxpt5yPM7zg== X-Talos-MUID: 9a23:RlDZkgnJGFZEyTDZvqDadno+Jd9F5a+VI3sSsqc+nOWBaCFoMhmC2WE= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,161,1787011200"; d="scan'208";a="536496854" Received: from rcdn-l-core-04.cisco.com ([173.37.255.141]) by rcdn-iport-5.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 16 Oct 2026 06:53:22 +0000 Received: from sjc-ads-5675.cisco.com (sjc-ads-5675.cisco.com [10.28.88.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rcdn-l-core-04.cisco.com (Postfix) with ESMTPS id 8BAAE180001A9; Fri, 16 Oct 2026 06:53:22 +0000 (GMT) Received: by sjc-ads-5675.cisco.com (Postfix, from userid 1887444) id 330FACC1611; Thu, 15 Oct 2026 23:53:22 -0700 (PDT) From: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-core@lists.openembedded.org Cc: Darsh Kelaiya Subject: [OE-core][wrynose][PATCH 1/3] busybox: fix CVE-2026-38752 Date: Thu, 15 Oct 2026 23:53:12 -0700 Message-Id: <20261016065314.3923094-1-dkelaiya@cisco.com> X-Mailer: git-send-email 2.35.6 MIME-Version: 1.0 X-Outbound-Client-TLS: ANONYMOUS;sjc-ads-5675.cisco.com [10.28.88.189];TLSv1.3;TLS_AES_256_GCM_SHA384;256 X-Outbound-SMTP-Client: 10.28.88.189, sjc-ads-5675.cisco.com X-Outbound-Node: rcdn-l-core-04.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 16 Oct 2026 06:53:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/247997 From: Darsh Kelaiya This patch applies the upstream fix shown in [1]. The advisory identifying the fix is referenced in [2]. [1] https://lists.busybox.net/pipermail/busybox/2026-June/092351.html [2] https://nvd.nist.gov/vuln/detail/cve-2026-38752 Signed-off-by: Darsh Kelaiya --- .../busybox/busybox/CVE-2026-38752.patch | 83 +++++++++++++++++++ meta/recipes-core/busybox/busybox_1.37.0.bb | 1 + 2 files changed, 84 insertions(+) create mode 100644 meta/recipes-core/busybox/busybox/CVE-2026-38752.patch diff --git a/meta/recipes-core/busybox/busybox/CVE-2026-38752.patch b/meta/recipes-core/busybox/busybox/CVE-2026-38752.patch new file mode 100644 index 00000000000..52cba2417e7 --- /dev/null +++ b/meta/recipes-core/busybox/busybox/CVE-2026-38752.patch @@ -0,0 +1,83 @@ +From e886726a2f0ad397666687a5fc65c4e80240f964 Mon Sep 17 00:00:00 2001 +From: Sanghyun Park +Date: Tue, 16 Jun 2026 12:16:05 +0900 +Subject: [PATCH] awk: fix stack overflow in evaluate() + +Recursive awk functions can keep re-entering evaluate() until the +process stack is exhausted. Track active function-call depth and report a +normal awk error once the limit is reached instead of overflowing the +stack. + +CVE: CVE-2026-38752 +Upstream-Status: Submitted [https://lists.busybox.net/pipermail/busybox/2026-June/092351.html] + +Signed-off-by: Sanghyun Park +Signed-off-by: Darsh Kelaiya +--- + editors/awk.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/editors/awk.c b/editors/awk.c +index 64e752f..299e480 100644 +--- a/editors/awk.c ++++ b/editors/awk.c +@@ -638,6 +638,7 @@ struct globals2 { + smalluint exitcode; + + unsigned evaluate__seed; ++ unsigned evaluate__func_depth; + var *evaluate__fnargs; + regex_t evaluate__sreg; + +@@ -709,6 +710,7 @@ static const char EMSG_UNEXP_TOKEN[] ALIGN1 = "Unexpected token"; + static const char EMSG_DIV_BY_ZERO[] ALIGN1 = "Division by zero"; + static const char EMSG_INV_FMT[] ALIGN1 = "Invalid format specifier"; + static const char EMSG_TOO_FEW_ARGS[] ALIGN1 = "Too few arguments"; ++static const char EMSG_RECURSION[] ALIGN1 = "Recursion limit exceeded"; + static const char EMSG_NOT_ARRAY[] ALIGN1 = "Not an array"; + static const char EMSG_POSSIBLE_ERROR[] ALIGN1 = "Possible syntax error"; + static const char EMSG_UNDEF_FUNC[] ALIGN1 = "Call to undefined function"; +@@ -2994,6 +2996,7 @@ static var *evaluate(node *op, var *res) + #define fnargs (G.evaluate__fnargs) + /* seed is initialized to 1 */ + #define seed (G.evaluate__seed) ++#define func_depth (G.evaluate__func_depth) + #define sreg (G.evaluate__sreg) + + var *tmpvars; +@@ -3305,13 +3308,17 @@ static var *evaluate(node *op, var *res) + var *argvars, *sv_fnargs; + const char *sv_progname; + int nargs, i; ++ enum { MAX_AWK_FUNC_DEPTH = 1000 }; + + debug_printf_eval("FUNC\n"); + + if (!op->r.f->defined) + syntax_error(EMSG_UNDEF_FUNC); ++ if (func_depth >= MAX_AWK_FUNC_DEPTH) ++ syntax_error(EMSG_RECURSION); + + /* The body might be empty, still has to eval the args */ ++ func_depth++; + nargs = op->r.f->nargs; + argvars = nvalloc(nargs); + i = 0; +@@ -3339,6 +3346,7 @@ static var *evaluate(node *op, var *res) + + g_progname = sv_progname; + fnargs = sv_fnargs; ++ func_depth--; + + break; + } +@@ -3696,6 +3704,7 @@ static var *evaluate(node *op, var *res) + return res; + #undef fnargs + #undef seed ++#undef func_depth + #undef sreg + } + +-- +2.35.6 diff --git a/meta/recipes-core/busybox/busybox_1.37.0.bb b/meta/recipes-core/busybox/busybox_1.37.0.bb index b020c923be3..d4352fd4cbe 100644 --- a/meta/recipes-core/busybox/busybox_1.37.0.bb +++ b/meta/recipes-core/busybox/busybox_1.37.0.bb @@ -66,6 +66,7 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://CVE-2024-58251.patch \ file://CVE-2026-29004-01.patch \ file://CVE-2026-29004-02.patch \ + file://CVE-2026-38752.patch \ file://CVE-2026-38754.patch \ " SRC_URI:append:libc-musl = " file://musl.cfg" From patchwork Fri Oct 16 06:53:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 101053 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B691CCCA46D for ; Fri, 16 Oct 2026 06:53:26 +0000 (UTC) Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.16259.1792133603517260169 for ; Thu, 15 Oct 2026 23:53:23 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=JR72ZV+V; spf=pass (domain: cisco.com, ip: 173.37.86.78, mailfrom: dkelaiya@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=3349; q=dns/txt; s=iport01; t=1792133603; x=1793343203; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jvaEU70EiQprn3b8Er25E5mwr7T0Sj9XKBhTBlhIp+0=; b=JR72ZV+VEIvJsy+hemC9nP515r9zM6JlurMqipQe09bF9I5HJSxMbi/u N/wNkJYUAeBOUoCz+fMI7aF6Ede6qYyL5Vw7qX/DQYAutW+2YDi9Q/+08 929chV6cs9v4V+cKHw+bBYVZBvtus2VvvHHyFZn+lfMzzwf+ZV7D3eIEs vBRku8nFaYGSwyK8/TOWUECRhFqmxHXtgYrudISNnDIU1+NE9Bhn6a3fd 6GNPbQOme4qI+Voi5fzLNO0FpPKhK8BtlyBgGGAlIwEIXLn02+XF8wgdO 4hH0chA+VPZj+T7ODKrM7hpxRh6F3H4U+cYYosw2eDxOUzAgvAbdj3Ryp w==; X-CSE-ConnectionGUID: OsY4ajDZQyy0ZxVgKgB5Dw== X-CSE-MsgGUID: i6n/2t9YTwafjsTzwBQiUA== X-IPAS-Result: A0BeAgDEyNFq/5D/Ja1aglmCV3VgQ0mWSgOLZZI3gXQKDwEBAQ8uDxQEAQGFBQKOFQImNAkOAQIEAwIDAQEBAQEBAQEBAQEBCgEBBQEBAQIBBwWBDhOGTw2QEgECAQMBMQEYAS0QHAMBAi8gBwQjCBmDAgGCOgM3AxEGvGSCLIEBgykBPwJDUNhLDYJaAQsUAYE4hUCCf4UkXRgBhHwnGxuBcoEVg2mBBYEaQgECAoFHhlsEgiKBDIFaHmWUREiBHgNZLAFVEw0KCwcFgWgDNR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09TyVXra +TdZMgpHjJYVkqOU3I9ersBEDEewK/yXcX2/h0AV7dZmnbUQKTRekIh7cKgQeQfhEWndQy6U 4PScRD4aXLfDtHpPe/xhWkGNA9x9TC2qWpieDCi0pJd2hRGsddB8MTMHfiLqWwLzM2fKYEKA == X-Talos-CUID: 9a23:isoAj299Ck6BlRobXJ6Vv2kPK5wscFHv9WbBe32oN2lKR5fIZUDFrQ== X-Talos-MUID: 9a23:LdzgGQZMzapOleBTtmHqw2t+ZfZU/K2gClsxg4osgsi5HHkl X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,161,1787011200"; d="scan'208";a="535621976" Received: from rcdn-l-core-07.cisco.com ([173.37.255.144]) by rcdn-iport-7.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 16 Oct 2026 06:53:22 +0000 Received: from sjc-ads-5675.cisco.com (sjc-ads-5675.cisco.com [10.28.88.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rcdn-l-core-07.cisco.com (Postfix) with ESMTPS id 8F6AF1800049A; Fri, 16 Oct 2026 06:53:22 +0000 (GMT) Received: by sjc-ads-5675.cisco.com (Postfix, from userid 1887444) id 36808CBF201; Thu, 15 Oct 2026 23:53:22 -0700 (PDT) From: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-core@lists.openembedded.org Cc: Darsh Kelaiya Subject: [OE-core][wrynose][PATCH 2/3] busybox: fix CVE-2026-38753 Date: Thu, 15 Oct 2026 23:53:13 -0700 Message-Id: <20261016065314.3923094-2-dkelaiya@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261016065314.3923094-1-dkelaiya@cisco.com> References: <20261016065314.3923094-1-dkelaiya@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: ANONYMOUS;sjc-ads-5675.cisco.com [10.28.88.189];TLSv1.3;TLS_AES_256_GCM_SHA384;256 X-Outbound-SMTP-Client: 10.28.88.189, sjc-ads-5675.cisco.com X-Outbound-Node: rcdn-l-core-07.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 16 Oct 2026 06:53:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/247996 From: Darsh Kelaiya This patch applies the upstream fix shown in [1]. The advisory identifying the fix is referenced in [2]. [1] https://lists.busybox.net/pipermail/busybox/2026-June/092352.html [2] https://nvd.nist.gov/vuln/detail/cve-2026-38753 Signed-off-by: Darsh Kelaiya --- .../busybox/busybox/CVE-2026-38753.patch | 54 +++++++++++++++++++ meta/recipes-core/busybox/busybox_1.37.0.bb | 1 + 2 files changed, 55 insertions(+) create mode 100644 meta/recipes-core/busybox/busybox/CVE-2026-38753.patch diff --git a/meta/recipes-core/busybox/busybox/CVE-2026-38753.patch b/meta/recipes-core/busybox/busybox/CVE-2026-38753.patch new file mode 100644 index 00000000000..b7095b0d379 --- /dev/null +++ b/meta/recipes-core/busybox/busybox/CVE-2026-38753.patch @@ -0,0 +1,54 @@ +From 2ab1e56dbb740769b703822d839222c68813a97b Mon Sep 17 00:00:00 2001 +From: Sanghyun Park +Date: Tue, 16 Jun 2026 12:18:43 +0900 +Subject: [PATCH] awk: fix use-after-free in awk_sub() + +awk_sub() receives the replacement text as a pointer into awk variable +storage. Evaluating the regular expression argument can change that +storage through as_regex(), leaving the replacement pointer dangling +before strlen() and the replacement loop use it. + +Copy the replacement string before calling as_regex() so substitution +uses stable storage for the duration of the operation. + +CVE: CVE-2026-38753 +Upstream-Status: Submitted [https://lists.busybox.net/pipermail/busybox/2026-June/092352.html] + +Signed-off-by: Sanghyun Park +Signed-off-by: Darsh Kelaiya +--- + editors/awk.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/editors/awk.c b/editors/awk.c +index 299e480..e0781ee 100644 +--- a/editors/awk.c ++++ b/editors/awk.c +@@ -2561,6 +2561,7 @@ static char *awk_printf(node *n, size_t *len) + static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest /*,int subexp*/) + { + char *resbuf; ++ char *repl_copy; + const char *sp; + int match_no, residx, replen, resbufsize; + int regexec_flags; +@@ -2578,7 +2579,9 @@ static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest /*,in + resbuf = NULL; + residx = 0; + match_no = 0; ++ repl_copy = xstrdup(repl); + regex = as_regex(rn, &sreg); ++ repl = repl_copy; + sp = getvar_s(src ? src : intvar[F0]); + #if defined(REG_STARTEND) + src_string = sp; +@@ -2668,6 +2671,7 @@ static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest /*,in + setvar_p(dest ? dest : intvar[F0], resbuf); + if (regex == &sreg) + regfree(regex); ++ free(repl_copy); + return match_no; + } + +-- +2.35.6 diff --git a/meta/recipes-core/busybox/busybox_1.37.0.bb b/meta/recipes-core/busybox/busybox_1.37.0.bb index d4352fd4cbe..8da8338a57b 100644 --- a/meta/recipes-core/busybox/busybox_1.37.0.bb +++ b/meta/recipes-core/busybox/busybox_1.37.0.bb @@ -67,6 +67,7 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://CVE-2026-29004-01.patch \ file://CVE-2026-29004-02.patch \ file://CVE-2026-38752.patch \ + file://CVE-2026-38753.patch \ file://CVE-2026-38754.patch \ " SRC_URI:append:libc-musl = " file://musl.cfg" From patchwork Fri Oct 16 06:53:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 101055 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1105CC6B38 for ; Fri, 16 Oct 2026 06:53:26 +0000 (UTC) Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.16261.1792133603787434259 for ; Thu, 15 Oct 2026 23:53:23 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=eJCFOxW6; spf=pass (domain: cisco.com, ip: 173.37.86.77, mailfrom: dkelaiya@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=3836; q=dns/txt; s=iport01; t=1792133603; x=1793343203; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=x8w16JOCJZ3u5qIMAUJxhV2dU/PpkIix6inJwfAlHTM=; b=eJCFOxW6CNvcHg7+rTWuP1SzHX0si89TUej9snPWVEiqsY6GpX33ZcOB mp/WaJx8uFyhpn6CVGBsxezbMur+sRkivW3YwzARRnv3ve3o8FeX02mR4 rS9wxhdCnBWGHz6Q0xhpDIiD0c/RHdxq1FxTprpEBaP9KX6WZPW9lSyCG BChmnAP7W94Dn0tn38rO/NojaW0L3rfjqMVN+l34tzL5NAOhZWoODFKLO yYem0Z4Ry0ZsfWp64LBzjjjA0nj5047WGvDDnqAaMQovLYtfUzgqq4zQX J4jh1ULf9u5XyZGqAte61DOzrDJnhpLR0oUibFZfRFm0ImKYV5nZVOE/o w==; X-CSE-ConnectionGUID: uxsFx1g6SkGMaYHL2PoA8g== X-CSE-MsgGUID: mhiOUXHfS0Wm2UcDGC7RLw== X-IPAS-Result: A0AoAADEyNFq/5X/Ja1aHQEBAQEJARIBBQUBgXwIAQsBglZ1YENJjHKJWAOLZZI3gXQKDwEBAQ8uDxQEAQGFBQKO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WovCayEsXX6pXTtVU7MVCh0WewGEWAhAaWVa35PK+kEOWX9NEN 1dS/TIjq6U3/kGnQtTxGRqirxa5UgU0QdFcFag+rQqK0KeRulzfDWkfRTkHY9sj3CMreQEXO payt4uBLVRSXHe9EBpxKp/8QeuOBBUo IronPort-HdrOrdr: A9a23:tTFb86/c2ccfFxnZeSRuk+D6I+orL9Y04lQ7vn2ZhyY7TiX+rb HIoB11737JYVoqNU3I3OrwWpVoIkmskaKdn7NwAV7KZmCP0wGVxcNZnO7fKlbbdREWmNQw6U 4ZSdkcNPTASX5nkM39/A60V/wkwNWB7eSUoN229QYKcemvAJsQlzuQzW2gYzRLeDU= X-Talos-CUID: 9a23:jaqv2W1+78/mfYIDGchhpbxfB9A+XG2EwynrIGCdAFdJbOetTnbA9/Yx X-Talos-MUID: 9a23:4RoAZAyOocM+uMcyyaQbdzKTn3aaqKGuCWcwobUIgJG7MHZNMBuyp2uNZpByfw== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.27,161,1787011200"; d="scan'208";a="536204372" Received: from rcdn-l-core-12.cisco.com ([173.37.255.149]) by rcdn-iport-6.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 16 Oct 2026 06:53:22 +0000 Received: from sjc-ads-5675.cisco.com (sjc-ads-5675.cisco.com [10.28.88.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rcdn-l-core-12.cisco.com (Postfix) with ESMTPS id 91DC0180001CF; Fri, 16 Oct 2026 06:53:22 +0000 (GMT) Received: by sjc-ads-5675.cisco.com (Postfix, from userid 1887444) id 3B782CBF202; Thu, 15 Oct 2026 23:53:22 -0700 (PDT) From: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-core@lists.openembedded.org Cc: Darsh Kelaiya Subject: [OE-core][wrynose][PATCH 3/3] busybox: fix CVE-2026-38755 Date: Thu, 15 Oct 2026 23:53:14 -0700 Message-Id: <20261016065314.3923094-3-dkelaiya@cisco.com> X-Mailer: git-send-email 2.35.6 In-Reply-To: <20261016065314.3923094-1-dkelaiya@cisco.com> References: <20261016065314.3923094-1-dkelaiya@cisco.com> MIME-Version: 1.0 X-Outbound-Client-TLS: ANONYMOUS;sjc-ads-5675.cisco.com [10.28.88.189];TLSv1.3;TLS_AES_256_GCM_SHA384;256 X-Outbound-SMTP-Client: 10.28.88.189, sjc-ads-5675.cisco.com X-Outbound-Node: rcdn-l-core-12.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 16 Oct 2026 06:53:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/247998 From: Darsh Kelaiya This patch applies the upstream fix shown in [1]. The advisory identifying the fix is referenced in [2]. [1] https://lists.busybox.net/pipermail/busybox/2026-June/092354.html [2] https://nvd.nist.gov/vuln/detail/cve-2026-38755 Signed-off-by: Darsh Kelaiya --- .../busybox/busybox/CVE-2026-38755.patch | 70 +++++++++++++++++++ meta/recipes-core/busybox/busybox_1.37.0.bb | 1 + 2 files changed, 71 insertions(+) create mode 100644 meta/recipes-core/busybox/busybox/CVE-2026-38755.patch diff --git a/meta/recipes-core/busybox/busybox/CVE-2026-38755.patch b/meta/recipes-core/busybox/busybox/CVE-2026-38755.patch new file mode 100644 index 00000000000..4e79e3847f4 --- /dev/null +++ b/meta/recipes-core/busybox/busybox/CVE-2026-38755.patch @@ -0,0 +1,70 @@ +From 0efa89307bb63c456d25adfb352c3dcc48d8760b Mon Sep 17 00:00:00 2001 +From: Sanghyun Park +Date: Tue, 16 Jun 2026 12:19:27 +0900 +Subject: [PATCH] ash: fix stack overflow in evalfun() + +Recursive shell functions can repeatedly enter evalfun() until the +process stack is exhausted. Track active shell function calls and raise a +normal shell error when the recursion limit is reached. + +The counter is decremented through the existing funcdone cleanup path so +errors raised from inside the function body unwind it correctly. + +CVE: CVE-2026-38755 +Upstream-Status: Submitted [https://lists.busybox.net/pipermail/busybox/2026-June/092354.html] + +Signed-off-by: Sanghyun Park +Signed-off-by: Darsh Kelaiya +--- + shell/ash.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/shell/ash.c b/shell/ash.c +index bbd7307..a66d3cc 100644 +--- a/shell/ash.c ++++ b/shell/ash.c +@@ -414,6 +414,7 @@ struct globals_misc { + int shlvl; + #define rootshell (!shlvl) + int errlinno; ++ unsigned func_depth; + + char *minusc; /* argument to -c option */ + +@@ -506,6 +507,7 @@ extern struct globals_misc *BB_GLOBAL_CONST ash_ptr_to_globals_misc; + #define rootpid (G_misc.rootpid ) + #define shlvl (G_misc.shlvl ) + #define errlinno (G_misc.errlinno ) ++#define func_depth (G_misc.func_depth ) + #define minusc (G_misc.minusc ) + #define curdir (G_misc.curdir ) + #define physdir (G_misc.physdir ) +@@ -9920,6 +9922,10 @@ evalfun(struct funcnode *func, int argc, char **argv, int flags) + int savefuncline; + char *savefuncname; + char *savetrap = NULL; ++ enum { MAX_ASH_FUNC_DEPTH = 1000 }; ++ ++ if (func_depth >= MAX_ASH_FUNC_DEPTH) ++ ash_msg_and_raise_error("function recursion limit exceeded"); + + if (!Eflag) { + savetrap = trap[NTRAP_ERR]; +@@ -9938,6 +9944,7 @@ evalfun(struct funcnode *func, int argc, char **argv, int flags) + exception_handler = &jmploc; + shellparam.malloced = 0; + func->count++; ++ func_depth++; + funcname = func->n.ndefun.text; + funcline = func->n.ndefun.linno; + INT_ON; +@@ -9959,6 +9966,7 @@ evalfun(struct funcnode *func, int argc, char **argv, int flags) + } + funcline = savefuncline; + lineno = savelineno; ++ func_depth--; + freefunc(func); + freeparam(&shellparam); + shellparam = saveparam; +-- +2.35.6 diff --git a/meta/recipes-core/busybox/busybox_1.37.0.bb b/meta/recipes-core/busybox/busybox_1.37.0.bb index 8da8338a57b..744ab03451a 100644 --- a/meta/recipes-core/busybox/busybox_1.37.0.bb +++ b/meta/recipes-core/busybox/busybox_1.37.0.bb @@ -69,6 +69,7 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://CVE-2026-38752.patch \ file://CVE-2026-38753.patch \ file://CVE-2026-38754.patch \ + file://CVE-2026-38755.patch \ " SRC_URI:append:libc-musl = " file://musl.cfg" SRC_URI:append:x86-64 = " file://sha_accel.cfg"