From patchwork Fri Dec 4 09:28:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Virendrasinh Chauhan X-Patchwork-Id: 107294 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.4249.1796376530937312273 for ; Fri, 04 Dec 2026 01:28:51 -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=AzHlDgjo; 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=5639; q=dns/txt; s=iport01; t=1796376531; x=1797586131; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=sCcxHvqyN0gShIDyPrZZoaNglflsQgo3iVM2RNvEZS4=; b=AzHlDgjoYBJKXAucgCNB3YvKhV5+3rEMqRy1XgoDkEC5ZazjXOL34TOZ gQYxqaPorSaqiDSVBbb+lrqsJUppMytaYf9jRtbkBFGaC0FSrslO+0EXy mqR6OtTF1Dq4nrUyp2nI+kev7LiflxGTKjD3BmNslOQDcjxygjEYxIDiR sES+G/IME7jqmsRZCmP/9pBINpwMAvW1Y7HDYzd6isoU10JU2vRrDowqR avs1LWtwtoOntQ+8cZBc6b90Jj4SvlJhhThvXSnOM+2tXMzGlBx5gQZFw 6c/ScBQq3/jLUdVej4Fz8xop6DM90ktIxsKzcSTXP3b2YKfEGAjHpSOzt Q==; X-CSE-ConnectionGUID: XUCdJm0/SQKK6cPtNhwEnQ== X-CSE-MsgGUID: LbMpz76eSjOAOiRd9Hy9fw== X-IPAS-Result: A0BcAgDPhhJr/9VK/pBaglmCV3VhQkkDlCmCIYEWimOSNIF+DwEBAQ9EDQQBAYQ/jmwCJjQJDgECBAMCAwEBAQEBAQEBAQEBAQoBAQUBAQECAQcFgQ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L 2QQ+zEytu417EGtQ9z3UhG0rXLCuQQTM+e8CMUz5RvIzu/f5ByUQzFeCDVAc9ch8sQxQFTGy 2O0oj8gPhQ32JX9dJ5X3u78Qe+aUcTNEVI/WA== IronPort-HdrOrdr: A9a23:TBswsaAws/kWFsTlHemc55DYdb4zR+YMi2TDsHoBKyC9Hfb3qy nDppkmPHzP+VUssRMb+OxoUZPoKRi3yXcf2+Ys1NmZMDUOwFHJEKhSqa3/3jbnByryssRZ1a tmbuxCLeeYNykesS4/izPIdOrJB7K8gcSVuds= X-Talos-CUID: 9a23:4UEqwG6sjx42+0e0r9ssxHM/FuIgKjrm9VTzfUSAFUBpV5CTcArF X-Talos-MUID: 9a23:zdgX6wZyjOFVl+BTkzXJnCM9aspT4YOHL0E3ncQmqpiKKnkl X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.29,78,1794873600"; d="scan'208";a="62011733" Received: from aer-l-core-12.cisco.com ([144.254.74.213]) by aer-iport-8.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 04 Dec 2026 09:28:48 +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-12.cisco.com (Postfix) with ESMTPS id A9C1E1800035B for ; Fri, 4 Dec 2026 09:28:48 +0000 (GMT) Received: by sjc-ads-22317.cisco.com (Postfix, from userid 1893823) id 5014FCC1288; Fri, 4 Dec 2026 01:28:47 -0800 (PST) From: cvirendr@cisco.com To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][master][PATCH] rsyslog: fix CVE-2026-129837 Date: Fri, 4 Dec 2026 01:28:45 -0800 Message-ID: <20261204092845.4069904-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-12.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:25:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/134028 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.2610.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..8b98de22eb --- /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 source diffs against checksum-verified rsyslog-8.2610.0 + source (SHA-256: 7bdf95e81ea6c0ee5d586342d57d2a6e395b089fb3c67318a0dc555816de404b); blob indexes match that source. +- Adapt test registration to the 8.2610.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. +- Preserve the target source file final newline; the upstream + newline-only change is not needed for this backport. + +Signed-off-by: Virendrasinh Chauhan +--- + runtime/datetime.c | 1 + + tests/Makefile.am | 3 +++ + tests/timereported-weekday-range.sh | 36 ++++++++++++++++++++++++++++++++++++ + 3 files changed, 40 insertions(+) + create mode 100755 tests/timereported-weekday-range.sh + +diff --git a/runtime/datetime.c b/runtime/datetime.c +index e3fd69c..8b6b285 100644 +--- a/runtime/datetime.c ++++ b/runtime/datetime.c +@@ -1187,6 +1187,7 @@ + } + 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 43585f6..4426d58 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 \ +@@ -13,6 +14,7 @@ + proprepltest-rfctag-udp.sh \ + proprepltest-rfctag.sh \ + unit/README.md ++EXTRA_DIST += $(TESTS_WEEKDAY_RANGE) + + TESTS_DISK_QUEUE_SERIALIZER = diskqueue-serializer-abi.sh + EXTRA_DIST += $(TESTS_DISK_QUEUE_SERIALIZER) +@@ -388,6 +390,7 @@ + prop-programname.sh \ + prop-programname-with-slashes.sh \ + hostname-with-slash-pmrfc5424.sh \ ++ $(TESTS_WEEKDAY_RANGE) \ + hostname-with-slash-pmrfc3164.sh \ + hostname-with-slash-dflt-invld.sh \ + func-substring-invld-startpos.sh \ +diff --git a/tests/timereported-weekday-range.sh b/tests/timereported-weekday-range.sh +new file mode 100755 +index 0000000..c8a45ef +--- /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.2610.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2610.0.bb index eb46ef086a..52d468f6f5 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2610.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2610.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 = " \