public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/corosync] f44: New upstream release
@ 2026-10-27 18:19 Jan Friesse
0 siblings, 0 replies; only message in thread
From: Jan Friesse @ 2026-10-27 18:19 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/corosync
Branch : f44
Commit : d02f8b667500be63f66fd0c932dd778260506a1e
Author : Jan Friesse <jfriesse@redhat.com>
Date : 2026-10-27T19:18:47+01:00
Stats : +15/-206 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/corosync/c/d02f8b667500be63f66fd0c932dd778260506a1e?branch=f44
Log:
New upstream release
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
---
diff --git a/.gitignore b/.gitignore
index be468d1..da5230e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,3 +52,4 @@ corosync-1.2.7.tar.gz
/corosync-3.1.8.tar.gz
/corosync-3.1.9.tar.gz
/corosync-3.1.10.tar.gz
+/corosync-3.2.0.tar.gz
diff --git a/0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch b/0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch
deleted file mode 100644
index 457716c..0000000
--- a/0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 83920f2e36b5f1acd7dcf033c0820043cc29f82a Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Wed, 2 Sep 2026 15:08:31 +0200
-Subject: [PATCH 1/2] totemsrp: Fix int overflow in commit_token_sanity
-
-This commit addresses an integer overflow (wraparound) vulnerability
-in the check_memb_commit_token_sanity function.
-
-Previously, on 32-bit systems, a large unsigned network value for
-addr_entries (>= 153391690) could cause an integer overflow when
-multiplied by the sizes of the srp_addr and memb_commit_token_memb_entry
-structures. This wraparound resulted in a required_len that was smaller
-than the actual required memory size, potentially bypassing the
-subsequent message length bounds check.
-
-To fix this, we now reject the message if addr_entries exceeds
-PROCESSOR_COUNT_MAX before any multiplication or addition occurs.
-
-Fixes: CVE-2026-81666
-
-Reported-by: Tristan Madani <tristan@talencesecurity.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Reviewed-by: Tristan Madani <tristan@talencesecurity.com>
-Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
----
- exec/totemsrp.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/exec/totemsrp.c b/exec/totemsrp.c
-index 67596911..1802bb34 100644
---- a/exec/totemsrp.c
-+++ b/exec/totemsrp.c
-@@ -3829,6 +3829,14 @@ static int check_memb_commit_token_sanity(
- addr_entries = swab32(addr_entries);
- }
-
-+ if (addr_entries > PROCESSOR_COUNT_MAX) {
-+ log_printf (instance->totemsrp_log_level_security,
-+ "Received commit_token message addr_entries exceeds the maximum "
-+ "allowed value... ignoring.");
-+
-+ return (-1);
-+ }
-+
- required_len = sizeof(struct memb_commit_token) +
- (addr_entries * (sizeof(struct srp_addr) + sizeof(struct memb_commit_token_memb_entry)));
- if (msg_len < required_len) {
---
-2.51.1
-
diff --git a/0001-totemsrp-Return-error-if-sanity-check-fails.patch b/0001-totemsrp-Return-error-if-sanity-check-fails.patch
deleted file mode 100644
index 4923d2d..0000000
--- a/0001-totemsrp-Return-error-if-sanity-check-fails.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From a16614accfdb3481264d7281843fadf439d9ab1b Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Thu, 2 Apr 2026 09:00:39 +0200
-Subject: [PATCH 1/2] totemsrp: Return error if sanity check fails
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Previously, the check_memb_commit_token_sanity function correctly
-checked the minimum message length. However, if the message was too
-short, it incorrectly returned a success code (0) instead of the
-expected failure code (-1).
-
-This commit ensures the appropriate error code is returned when the
-message length sanity check fails.
-
-Fixes: CVE-2026-35091
-
-Reported-by: Sebastián Alba Vives (@Sebasteuo / 0xS4bb1) <sebasjosue84@gmail.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Also-proposed-by: nicholasyang <nicholas.yang@suse.com>
-Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
----
- exec/totemsrp.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/exec/totemsrp.c b/exec/totemsrp.c
-index a716ae9..372a96d 100644
---- a/exec/totemsrp.c
-+++ b/exec/totemsrp.c
-@@ -3811,10 +3811,10 @@ static int check_memb_commit_token_sanity(
- log_printf (instance->totemsrp_log_level_security,
- "Received memb_commit_token message is too short... ignoring.");
-
-- return (0);
-+ return (-1);
- }
-
-- addr_entries= mct_msg->addr_entries;
-+ addr_entries = mct_msg->addr_entries;
- if (endian_conversion_needed) {
- addr_entries = swab32(addr_entries);
- }
---
-1.8.3.1
-
diff --git a/0002-totempg-Replace-assert-with-check-in-deliver_fn.patch b/0002-totempg-Replace-assert-with-check-in-deliver_fn.patch
deleted file mode 100644
index 7f5e746..0000000
--- a/0002-totempg-Replace-assert-with-check-in-deliver_fn.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 5148bf07dffa61bcfa92ca2c058e7d0f0a981cf3 Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Wed, 2 Sep 2026 15:53:33 +0200
-Subject: [PATCH 2/2] totempg: Replace assert with check in deliver_fn
-
-If assert() is compiled out in release builds, a
-new message could be appended past the end of the assembly buffer,
-resulting in a buffer overflow.
-
-To prevent this, replace the assertion with a standard runtime bounds
-check. If the incoming message exceeds the maximum buffer size, it is
-now safely logged and ignored.
-
-Fixes: CVE-2026-81665
-
-Reported-by: Tristan Madani <tristan@talencesecurity.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Reviewed-by: Tristan Madani <tristan@talencesecurity.com>
-Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
----
- exec/totempg.c | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/exec/totempg.c b/exec/totempg.c
-index d9beb899..b086bad9 100644
---- a/exec/totempg.c
-+++ b/exec/totempg.c
-@@ -659,7 +659,14 @@ static void totempg_deliver_fn (
- return ;
- }
-
-- assert((assembly->index+msg_len) < sizeof(assembly->data));
-+ if (assembly->index + msg_len >= sizeof(assembly->data)) {
-+ log_printf(LOG_WARNING,
-+ "Message (totempg_mcast) received from node " CS_PRI_NODE_ID
-+ " would create too long message of %u bytes... Ignoring.",
-+ nodeid, assembly->index + msg_len);
-+
-+ return ;
-+ }
- memcpy (&assembly->data[assembly->index], &data[datasize],
- msg_len - datasize);
-
---
-2.51.1
-
diff --git a/0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch b/0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch
deleted file mode 100644
index 32b652d..0000000
--- a/0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 4082294f5094a7591e4e00658c5a605f05d644f1 Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Thu, 2 Apr 2026 09:44:06 +0200
-Subject: [PATCH 2/2] totemsrp: Fix integer overflow in memb_join_sanity
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This commit addresses an integer overflow (wraparound) vulnerability
-in the check_memb_join_sanity function.
-
-Previously, the 32-bit unsigned network values proc_list_entries and
-failed_list_entries were added together before being promoted to
-size_t. This allowed the addition to wrap around in 32-bit arithmetic
-(e.g., 0x80000000 + 0x80000000 = 0), resulting in a required_len
-calculation that was incorrectly small.
-
-The solution is to cast the list entries to size_t and verify that
-neither exceeds the maximum allowed value before the addition occurs.
-
-Fixes: CVE-2026-35092
-
-Reported-by: Sebastián Alba Vives (@Sebasteuo / 0xS4bb1) <sebasjosue84@gmail.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Also-proposed-by: nicholasyang <nicholas.yang@suse.com>
-Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
----
- exec/totemsrp.c | 12 +++++++++++-
- 1 file changed, 11 insertions(+), 1 deletion(-)
-
-diff --git a/exec/totemsrp.c b/exec/totemsrp.c
-index 372a96d..6759691 100644
---- a/exec/totemsrp.c
-+++ b/exec/totemsrp.c
-@@ -3786,7 +3786,17 @@ static int check_memb_join_sanity(
- failed_list_entries = swab32(failed_list_entries);
- }
-
-- required_len = sizeof(struct memb_join) + ((proc_list_entries + failed_list_entries) * sizeof(struct srp_addr));
-+ if (proc_list_entries > PROCESSOR_COUNT_MAX ||
-+ failed_list_entries > PROCESSOR_COUNT_MAX) {
-+ log_printf (instance->totemsrp_log_level_security,
-+ "Received memb_join message list_entries exceeds the maximum "
-+ "allowed value... ignoring.");
-+
-+ return (-1);
-+ }
-+
-+ required_len = sizeof(struct memb_join) +
-+ (((size_t)proc_list_entries + (size_t)failed_list_entries) * sizeof(struct srp_addr));
- if (msg_len < required_len) {
- log_printf (instance->totemsrp_log_level_security,
- "Received memb_join message is too short... ignoring.");
---
-1.8.3.1
-
diff --git a/corosync.spec b/corosync.spec
index de34618..b877f54 100644
--- a/corosync.spec
+++ b/corosync.spec
@@ -11,20 +11,17 @@
%bcond_without vqsim
%bcond_without runautogen
%bcond_without userflags
+%bcond_without unencrypted
+%bcond_without udpu
Name: corosync
Summary: The Corosync Cluster Engine and Application Programming Interfaces
-Version: 3.1.10
-Release: 6%{?dist}
+Version: 3.2.0
+Release: 1%{?dist}
License: BSD-3-Clause
URL: http://corosync.github.io/corosync/
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
-Patch0: 0001-totemsrp-Return-error-if-sanity-check-fails.patch
-Patch1: 0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch
-Patch2: 0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch
-Patch3: 0002-totempg-Replace-assert-with-check-in-deliver_fn.patch
-
# Runtime bits
# The automatic dependency overridden in favor of explicit version lock
Requires: corosynclib%{?_isa} = %{version}-%{release}
@@ -105,6 +102,12 @@ BuildRequires: git
%if %{with vqsim}
--enable-vqsim \
%endif
+%if %{with unencrypted}
+ --enable-unencrypted \
+%endif
+%if %{with udpu}
+ --enable-udpu \
+%endif
%if %{with userflags}
--enable-user-flags \
%endif
@@ -294,6 +297,9 @@ network splits)
%endif
%changelog
+* Tue Oct 27 2026 Jan Friesse <jfriesse@redhat.com> - 3.2.0-1
+- New upstream release
+
* Fri Sep 04 2026 Jan Friesse <jfriesse@redhat.com> - 3.1.10-6
- totemsrp: Fix int overflow in commit_token_sanity
(fixes CVE-2026-81666)
diff --git a/sources b/sources
index 9c626fd..b8e20ee 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (corosync-3.1.10.tar.gz) = cf2014d15fdbd3495cfe64629255f7855a79651a595938dac7bc7ec67338d843079ae40cf1c15de23b50d85cb39b2c2e3e3448a9cc33759ad8988b8c85ce59d3
+SHA512 (corosync-3.2.0.tar.gz) = 438e13339ed34c9abac9bc2e06bd596959be39ad353954549da522490dbf138c35872b9bd48b952796ded4d3fa96342ff21c6ecc4dbbb147058df638f023099e
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-27 18:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27 18:19 [rpms/corosync] f44: New upstream release Jan Friesse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox