From patchwork Fri Dec 4 09:30:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Virendrasinh Chauhan X-Patchwork-Id: 107295 Received: from aer-iport-8.cisco.com (aer-iport-8.cisco.com [173.38.203.70]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4267.1796376644117480548 for ; Fri, 04 Dec 2026 01:30:44 -0800 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=Ido7hH34; spf=pass (domain: cisco.com, ip: 173.38.203.70, mailfrom: cvirendr@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=5849; q=dns/txt; s=iport01; t=1796376644; x=1797586244; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=eTJCY0DAWNDGfGWlGEbPRQmD5NgWMaDGn9fh1fIW96w=; b=Ido7hH34X9Lst4frvp3mdq0qrcOmKUJmSapXfH1vZvS1B/nxmFBkuBlE CkPEqqypW7xiB+k5pyvSKdCwU3SLzhMASgSvaABnPm0hvMClgzOJvQfE3 Ro+qbKhfw/S8l5vWmiPS2nzZ0IlQZ13Cju0emT6I01KgjVuw5RKXYB/MK ZiQdB17glrHp7KfK97GFaiHl5/8SAfkqP1J2BvDMFp1zMJ7BU2UiQgOzF 5ApWxY/5sIYcet9n1KTL7knuCoTZxG6N612Xi2+2oEVq2zBXndLij9OEN kiSzB00mSybBBFo/KwWAtHXhZlgis67EkmSf6hceseqBvuQt8cuECagck A==; X-CSE-ConnectionGUID: AdTxjE/uQVKIfhSSQ/AmDA== X-CSE-MsgGUID: 1gN8v62XSnaN7Ti5Dpon4w== X-IPAS-Result: A0BbAgBNhxJr/89K/pBaglmCV3VhQkkDlCmCIYt5kjSBfg8BAQEPRA0EAQGEP45sAiY0CQ4BAgQDAgMBAQEBAQEBAQEBAQEKAQEFAQEBAgEHBYEOE4ZPD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aEFe2v/S9okq/QM5Eb UsM9ywjqKI/+ECmQp/6RRLQnZKflhcRQZ9UVuY98gzIkvSS6AeCDW9CRTlEADA7iPILqfUR/ gfht7vU6fZH6dV5lVr1Gm+okA6P IronPort-HdrOrdr: A9a23:onfcK6OEcunz+sBcTvGjsMiBIKoaSvp037BN7TESdfU7SKKlfq yV8cjztiWE6wr5OktApTnoAsDpKhnhHPVOjrX5U43PYOCfgguVBbAny5f+yDv9HCC73Otc2a B8N5VaMrTLfD1HZQKQ2njeLz7mq+P3lJyVuQ== X-Talos-CUID: 9a23:LjmQ/mknNyrdNHAMIwIfdhiNqQLXOVTR8GfSDgilMFhKabOVcmSpv4phv+M7zg== X-Talos-MUID: 9a23:cCp/nQRtYKDPunX5RXS1ixcyKpky05+oAWZSrZRbl9GDM3BvbmI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.29,78,1794873600"; d="scan'208";a="62012189" Received: from aer-l-core-06.cisco.com ([144.254.74.207]) by aer-iport-8.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 04 Dec 2026 09:30:29 +0000 Received: from sjc-ads-22317.cisco.com (sjc-ads-22317.cisco.com [171.70.24.49]) (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 aer-l-core-06.cisco.com (Postfix) with ESMTPS id 7F15018000702 for ; Fri, 4 Dec 2026 09:30:29 +0000 (GMT) Received: by sjc-ads-22317.cisco.com (Postfix, from userid 1893823) id 26B35CC1288; Fri, 4 Dec 2026 01:30:28 -0800 (PST) From: "Virendrasinh Chauhan" To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][blacksail][PATCH] rsyslog: fix CVE-2026-129837 Date: Fri, 4 Dec 2026 01:30:26 -0800 Message-ID: <20261204093026.4071226-1-cvirendr@cisco.com> X-Mailer: git-send-email 2.44.1 MIME-Version: 1.0 X-Outbound-Client-TLS: ANONYMOUS;sjc-ads-22317.cisco.com [171.70.24.49];TLSv1.3;TLS_AES_256_GCM_SHA384;256 X-Outbound-SMTP-Client: 171.70.24.49, sjc-ads-22317.cisco.com X-Outbound-Node: aer-l-core-06.cisco.com 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 ; Fri, 04 Dec 2026 10:48:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/134029 This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. NVD details for this CVE are in [3]. [1] https://github.com/rsyslog/rsyslog/commit/59c3657b02ae81426220ec6dd504dff2b395ce6e [2] https://github.com/rsyslog/rsyslog/security/advisories/GHSA-5pc2-f2v7-5w5p [3] https://nvd.nist.gov/vuln/detail/CVE-2026-129837 Signed-off-by: Virendrasinh Chauhan --- .../rsyslog/rsyslog/CVE-2026-129837.patch | 109 ++++++++++++++++++ .../rsyslog/rsyslog_8.2606.0.bb | 1 + 2 files changed, 110 insertions(+) create mode 100644 meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2026-129837.patch diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2026-129837.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2026-129837.patch new file mode 100644 index 0000000000..5d10f0d3e7 --- /dev/null +++ b/meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2026-129837.patch @@ -0,0 +1,109 @@ +From 59c3657b02ae81426220ec6dd504dff2b395ce6e Mon Sep 17 00:00:00 2001 +From: Rainer Gerhards +Date: Sat, 14 Nov 2026 08:12:38 +0000 +Subject: [PATCH] Fix weekday formatting for low-year timestamps + +CVE: CVE-2026-129837 +Upstream-Status: Backport [https://github.com/rsyslog/rsyslog/commit/59c3657b02ae81426220ec6dd504dff2b395ce6e] + +Backport Changes: +- Regenerate the datetime.c and tests/Makefile.am hunks against the + checksum-verified 8.2606.0 recipe source; security code is unchanged. +- Adapt test registration to the 8.2606.0 TESTS_DEFAULT layout; the + regression test itself is unchanged. +- Omit runtime/AGENTS.md, which contains upstream contributor guidance + and does not affect the fix or runtime behavior. +- Omit the upstream EOF newline-only change; it is not needed for this fix. + +Signed-off-by: Virendrasinh Chauhan +--- + runtime/datetime.c | 1 + + tests/Makefile.am | 4 ++++ + tests/timereported-weekday-range.sh | 36 ++++++++++++++++++++++++++++++++++++ + 3 files changed, 41 insertions(+) + create mode 100755 tests/timereported-weekday-range.sh + +diff --git a/runtime/datetime.c b/runtime/datetime.c +index ab59ddcfd1af778fb2866c3ef30106dc96d1c072..655ad4bbbb32c80a01ba433db6c415a8a800553b 100644 +--- a/runtime/datetime.c ++++ b/runtime/datetime.c +@@ -1185,6 +1185,7 @@ int getWeekdayNbr(struct syslogTime *ts) { + } + wday = ((36525 * g) / 100) + ((306 * f) / 10) + ts->day - 621049; + wday %= 7; ++ if (wday < 0) wday += 7; + return wday; + } + +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 5c22eadabb59e90be6439335e1292417c585765d..abd5b22f05c470ac855c289bfd98e8a2094e8a7f 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -1,4 +1,5 @@ + TEST_EXTENSIONS=.sh ++TESTS_WEEKDAY_RANGE = timereported-weekday-range.sh + EXTRA_DIST = \ + tabescape_dflt.sh \ + tabescape_dflt-udp.sh \ +@@ -15,6 +16,7 @@ EXTRA_DIST = \ + unit/README.md + + TESTS_JSON_OMITIFZERO = json-omitifzero.sh json-omitifzero-subtree.sh json-whitespace.sh ++EXTRA_DIST += $(TESTS_WEEKDAY_RANGE) + EXTRA_DIST += $(TESTS_JSON_OMITIFZERO) + + TESTS_TEMPLATE_REGEX_BOUNDS = template-regex-index-bounds.sh +@@ -502,6 +504,8 @@ TESTS_DEFAULT = \ + parsertest-snare_ccoff_udp.sh \ + parsertest-snare_ccoff_udp2.sh + ++TESTS_DEFAULT += $(TESTS_WEEKDAY_RANGE) ++ + TESTS_SKELETONS = \ + omfwd-lb-1target-retry-test_skeleton.sh \ + omfwd-lb-1target-retry-test_skeleton-TargetFail.sh +diff --git a/tests/timereported-weekday-range.sh b/tests/timereported-weekday-range.sh +new file mode 100755 +index 0000000000000000000000000000000000000000..c8a45efaa0d4898e8d83de458fd5973a0063ad32 +--- /dev/null ++++ b/tests/timereported-weekday-range.sh +@@ -0,0 +1,36 @@ ++#!/bin/bash ++# SPDX-License-Identifier: Apache-2.0 ++# Regression for low-year RFC5424 timestamps reaching weekday formatters. ++# A negative C remainder previously indexed before wdayNames/one_digit and ++# could crash rsyslogd. Exact formatted output and processing of later valid ++# messages are the oracle. ++# shellcheck disable=SC1091,SC2086 ++. ${srcdir:=.}/diag.sh init ++export NUMMESSAGES=6 ++export QUEUE_EMPTY_CHECK_FUNC=wait_file_lines ++generate_conf ++add_conf ' ++template(name="weekday" type="string" ++ string="%msg%:%timereported:::date-wdayname%/%timereported:::date-wday%\n") ++:msg, contains, "case:" action(type="omfile" template="weekday" ++ file="'$RSYSLOG_OUT_LOG'") ++' ++startup ++injectmsg_literal "<165>1 0001-01-02T00:00:00Z h a - - - case:low2" ++injectmsg_literal "<165>1 0001-01-06T00:00:00Z h a - - - case:low6" ++injectmsg_literal "<165>1 0001-01-07T00:00:00Z h a - - - case:low7" ++injectmsg_literal "<165>1 1970-01-01T00:00:00Z h a - - - case:epoch" ++injectmsg_literal "<165>1 2026-11-13T00:00:00Z h a - - - case:current" ++injectmsg_literal "<165>1 2024-02-29T00:00:00Z h a - - - case:leap" ++shutdown_when_empty ++wait_shutdown ++LC_ALL=C sort "$RSYSLOG_OUT_LOG" > "$RSYSLOG_DYNNAME.sorted" ++mv "$RSYSLOG_DYNNAME.sorted" "$RSYSLOG_OUT_LOG" ++export EXPECTED="case:current:Fri/5 ++case:epoch:Thu/4 ++case:leap:Thu/4 ++case:low2:Mon/1 ++case:low6:Fri/5 ++case:low7:Sat/6" ++cmp_exact ++exit_test + +-- +2.39.5 diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2606.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2606.0.bb index 12036e32a8..d1208995fd 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2606.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2606.0.bb @@ -25,6 +25,7 @@ SRC_URI = "https://www.rsyslog.com/files/download/rsyslog/${BPN}-${PV}.tar.gz \ file://run-ptest \ file://0001-tests-disable-the-check-for-inotify.patch \ file://0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch \ + file://CVE-2026-129837.patch \ " SRC_URI:append:libc-musl = " \