Heap-Based Buffer Overflow in Corosync Totem Process Group
A heap-based buffer overflow in the Corosync Totem Process Group component allows a network-adjacent attacker to crash the cluster or potentially execute arbitrary code via crafted multicast messages.
CVE search metadata
CVE search record: CVE-2026-81665. Severity: high. CVSS: 7.5. KEV: no. Product: Corosync. Brief: Heap-Based Buffer Overflow in Corosync Totem Process Group. Brief link: https://feed.craftedsignal.io/briefs/2026-09-corosync-totempg-overflow/
CVE-2026-81665 describes a critical heap-based buffer overflow vulnerability in the Totem Process Group (totempg) message reassembly logic within the Corosync daemon. The flaw exists because the buffer allocated for reassembling fragmented multicast messages lacks sufficient runtime bounds checking in release builds. Corosync is a core cluster membership and messaging system commonly used in Linux high-availability environments. An attacker located on the local network segment, capable of injecting multicast traffic, can send malformed packets to the cluster. By triggering the buffer overflow, the attacker can cause a denial of service by crashing the Corosync daemon, which disrupts the cluster services. Given the nature of heap corruption, this vulnerability also presents a potential path for remote code execution if the attacker can exercise precise control over heap layout and state. This issue is particularly significant for environments that rely on cluster availability for mission-critical services.
Attack Chain
- Attacker establishes a presence on the local network segment (L2/L3 adjacency).
- Attacker crafts malformed, fragmented multicast messages designed to exceed pre-allocated buffer sizes.
- Attacker injects the crafted multicast packets onto the cluster's private interconnect network.
- Corosync daemon receives and processes the malicious multicast fragment.
- The totempg component performs reassembly without enforcing runtime bounds checking.
- The heap buffer overflow occurs, overwriting adjacent memory structures with attacker-controlled data.
- The Corosync daemon crashes due to memory corruption, leading to service disruption or node fencing.
- If heap state is sufficiently controlled, the attacker gains the ability to overwrite function pointers or other control flow structures, enabling arbitrary code execution.
Impact
The vulnerability poses a severe threat to cluster integrity and availability. Successful exploitation typically results in an immediate crash of the Corosync daemon, causing a denial of service (DoS) for all services managed by the cluster. In enterprise environments, this can lead to massive service outages, data inconsistency, and potential loss of data access. Depending on the environment, an attacker achieving code execution would gain the privileges of the user running the Corosync daemon, which is typically the root or a highly privileged service account.
Recommendation
Prioritize the patching of all cluster nodes running the vulnerable Corosync daemon. Monitor cluster health for unexpected daemon restarts or nodes being fenced from the cluster, as these may indicate exploitation attempts. Utilize network segmentation to restrict access to the multicast traffic used by the cluster to only trusted infrastructure nodes.
Immediate actions
Patch all instances of Corosync immediately upon vendor release availability.
Threat Hunt
Unexpected crash logs in /var/log/corosync.log or systemd journals.
Data: Log files from Corosync nodes
Mitigations
Restrict multicast traffic to only authorized management VLANs.
Network-adjacent exploitation vector
Gaps
- Need to determine the patch level for current environment inventory.