Bound imuxsock PRI digit accumulation to the three digits accepted by
its syntax check. Longer numeric fields follow existing invalid-PRI
handling without unnecessary signed arithmetic.
Red Hat Product Security assigned CVE-2026-129831 to this change. Our
review classifies it as separate robustness hardening; we did not
establish an independent security impact beyond the coordinated
trigger path. Its disclosure is coordinated with the original GHSA
because the change touches that report’s trigger path.
Focused real-socket tests passed 3/3; mock distcheck passed 1,508
tests with 13 skips; the Ubuntu 26.04 container suite passed 1,558
tests with 81 skips. Clang static analysis found no bugs.
This source-only patch is standalone against the checked baseline; it
is coordinated with GHSA-xrxr-7942-54fr but is not that advisory's
vulnerability fix. Apply it against the exact source version you
maintain.
Coordinated disclosure: 2026-11-17 16:00 UTC (17:00 CET). Planned
fixed-version label: 2026-11-17 daily stable. Actual binary package
availability must be verified separately.
Credit: Identified during rsyslog's internal code review.
Patch (source only): see the attached .patch file (preserved without
line wrapping).
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index e6d1ca73a..3002d1dea 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -979,7 +979,7 @@ static rsRetVal SubmitMsg(uchar *pRcv, int lenRcv, lstn_t *pLstn, struct ucred *
parse++;
pri = 0;
priDigitCount = 0;
- while (offs < lenMsg && isdigit(*parse)) {
+ while (offs < lenMsg && priDigitCount < 3 && isdigit(*parse)) {
pri = pri * 10 + *parse - '0';
++parse;
++offs;