//nefariousplan

CVE-2026-10649: Pacemaker's Remote Listener Has Decompressed Messages Pre-Auth Since 2013. Nothing In Pacemaker Has Ever Compressed One.

vendor

patterns

cve

proof of concept

Pacemaker's CIB remote listener has been decompressing messages that no Pacemaker sender produces. The decompression code lives in pcmk__remote_message_xml() in lib/common/remote.c, runs before the client authenticates, and trusts three attacker-controlled uint32_t size fields to compute a heap allocation. The path has been in the receiver since October 14, 2013. Nothing in Pacemaker has ever set payload_compressed to a nonzero value. The codepath is dead from the project's view, and reachable from any TCP socket that completes the listener's handshake. AISLE found it and reported it to Red Hat, which published CVE-2026-10649 to oss-security on June 16, 2026. The fix commit, signed by Chris Lumens at Red Hat, states the gap directly: "These checks haven't failed in the past because nothing is using the compressed payload code."

The receiver supports a sender the project never wrote

The wire format for CVE-2026-10649 is defined in lib/common/remote.c as a packed forty-byte header:

struct remote_header_v0 {
    uint32_t endian;    /* Detect messages from hosts with different endian-ness */
    uint32_t version;
    uint64_t id;
    uint64_t flags;
    uint32_t size_total;
    uint32_t payload_offset;
    uint32_t payload_compressed;
    uint32_t payload_uncompressed;

        /* New fields get added here */

} __attribute__ ((packed));

Four uint32_t size fields. Three of them name lengths the receiver will trust. payload_compressed != 0 is the switch that selects the decompression branch inside pcmk__remote_message_xml(). payload_uncompressed is the size the bzlib decompressor will be told to write. payload_offset is added on top.

The sender side is pcmk__remote_send_xml() in the same file. It builds messages this way:

header->id = id;
header->endian = ENDIAN_LOCAL;
header->version = REMOTE_MSG_VERSION;
header->payload_offset = iov[0].iov_len;
header->payload_uncompressed = iov[1].iov_len;

/* ... */

header->size_total = iov[0].iov_len + iov[1].iov_len;

payload_compressed is not assigned. The header was zero-initialized at allocation. payload_compressed ships as zero. Every other internal caller in the Pacemaker tree that constructs a remote_header_v0 ships it the same way.

The receiver has carried the compression branch since October 14, 2013. The comment above it in the pre-fix source was the testimony:

/* Support compression on the receiving end now, in case we ever want to add it later */
if (header->payload_compressed) {
    int rc = 0;
    unsigned int size_u = 1 + header->payload_uncompressed;
    char *uncompressed =
        pcmk__assert_alloc(header->payload_offset + size_u, sizeof(char));
    ...

"Now" was October 14, 2013, the day Andrew Beekhof committed the protocol versioning code to lib/common/remote.c. "Later" never came. The branch is dead from the project's view. It is live to anyone who can write the four-byte endianness magic 0xBADADBBD, followed by a valid forty-byte header, to TCP port 3121. This is the Receiver Supports No Sender shape: a network protocol receiver carrying decode logic for a feature no sender in the project's own code ever produces, audited only by attackers because attackers are the only callers.

The integer overflow is two characters of arithmetic

unsigned int size_u = 1 + header->payload_uncompressed;
char *uncompressed =
    pcmk__assert_alloc(header->payload_offset + size_u, sizeof(char));

payload_uncompressed is uint32_t, attacker-supplied. Set it to 0xFFFFFFFE. size_u becomes 0xFFFFFFFF. payload_offset + size_u is the addition of two uint32_t values, performed in unsigned int arithmetic, and the sum wraps: 0x28 + 0xFFFFFFFF = 0x27 modulo 2^32. pcmk__assert_alloc(0x27, 1) calls calloc(39, 1). The receiver now holds a thirty-nine-byte heap buffer.

The next line is the decompressor:

rc = BZ2_bzBuffToBuffDecompress(uncompressed + header->payload_offset, &size_u,
                                remote->buffer + header->payload_offset,
                                header->payload_compressed, 1, 0);

uncompressed + header->payload_offset is already past the end of the 39-byte allocation. size_u, passed by pointer, is 0xFFFFFFFF. bzlib has been told it owns a four-gigabyte output region starting forty bytes past the start of a thirty-nine-byte buffer. It writes to that region until the compressed input is exhausted.

The PoC parameters in the AISLE advisory for CVE-2026-10649 chose a less aggressive value:

payload_offset       = 0x00000028
payload_uncompressed = 0xFFFFFFC0
payload_compressed   = len(bz2_payload)
bz2_payload          = bz2.compress(b"A"*512 + b"\x00")

With those values, size_u = 0xFFFFFFC1, payload_offset + size_u = 0xFFFFFFE9 with no wrap, and the receiver calls calloc(0xFFFFFFE9, 1). That is a request for roughly four gigabytes of contiguous virtual memory, allocated and zero-filled. On any host where the request fails, pcmk__assert_alloc's wrapper calls crm_abort(...) and crm_exit(CRM_EX_OSERR). The process dies. The advisory describes this primitive. The wraparound primitive at payload_uncompressed = 0xFFFFFFFE sits one constant away from it.

Pre-auth, on the cluster's CIB listener

The decompressor runs inside cib_remote_msg() in daemons/based/based_remote.c:

rc = pcmk__read_available_remote_data(client->remote);
/* ... */

/* must pass auth before we will process anything else */
if (!pcmk__is_set(client->flags, pcmk__client_authenticated)) {
    xmlNode *reg;
    const char *user = NULL;

    command = pcmk__remote_message_xml(client->remote);
    if (!cib_remote_auth(command)) {
        pcmk__xml_free(command);
        return -1;
    }

    pcmk__set_client_flags(client, pcmk__client_authenticated);
    /* ... */
}

pcmk__remote_message_xml is the function with the integer overflow. It runs in the branch reached when pcmk__client_authenticated is not yet set. The XML it returns is then handed to cib_remote_auth() to check the password. The decompressor runs first. The password check runs against whatever the decompressor returned.

For the remote-clear-port listener (no TLS), the attacker needs nothing more than a TCP connection. For remote-tls-port, the attacker needs to complete the gnutls handshake, which the patch commit notes explicitly: "if remote-tls-port is in use, it requires the client to complete the gnutls handshake procedure (pcmk__remote_message_xml is only called in cib_remote_msg after the handshake but before the client has authenticated)." The handshake gates the listener. The authentication gates the cluster. The integer overflow sits between them.

Pacemaker does not enable remote CIB administration by default. Operators turn it on. When they do, the listener accepts traffic from anywhere the network routes it to.

Crash the CIB, fence the node

pcmk__assert_alloc is two layers of macros around a one-paragraph function in include/crm/common/memory_internal.h:

static inline void *
pcmk__assert_alloc_as(const char *file, const char *function, uint32_t line,
                      size_t nmemb, size_t size)
{
    void *ptr = calloc(nmemb, size);

    if (ptr == NULL) {
        crm_abort(file, function, line, "Out of memory", FALSE, TRUE);
        crm_exit(CRM_EX_OSERR);
    }
    return ptr;
}

A failed allocation is not a return value. It is a process termination. The CIB daemon (pacemaker-based) is the cluster's information base, the single source of truth for cluster configuration and state. When it dies on a node, the rest of the cluster sees the node as no longer participating in the CIB and proceeds with whatever recovery policy the cluster was configured for.

The patch commit bb37829 names the consequence directly: "we'll crash due to an out of memory error and the node could potentially be fenced."

An unauthenticated attacker on the wire holds the input to that decision. A cluster manager designed to maintain availability is being asked, by an unauthenticated remote, to remove one of its own hosts from itself. The same pre-auth socket is reachable on every cluster member that runs the CIB remote listener.

Twelve and a half years of dead receiver

The integer-overflow line was introduced in commit aa024490a0, Andrew Beekhof, October 14, 2013: "Feature: remote: Properly version the remote connection protocol." It survived the 2020 refactor that split IPC code into multiple files. It survived the 2025 sanity-check pass that touched the surrounding localized_remote_header() function. It was not introduced by a recent change.

The fix commit 1e1825b is unambiguous about why no one noticed:

Such a header would have to indicate that the payload is compressed, which nothing in pacemaker is doing. In fact, we haven't used any of the remote message compression code since it was introduced in 2013 which explains why we haven't seen any problems with it.

A second commit 8e667ef, the medium-severity sanity-check fix in localized_remote_header, makes the same admission in shorter form:

These checks haven't failed in the past because nothing is using the compressed payload code.

The codepath had been auditable in the source for twelve and a half years. No internal traffic exercised it. No fuzz target reached it through pcmk__remote_send_xml, because that function never sets the gate field. No production crash report pointed at it, because production senders never produced a compressed remote message. The first traffic ever to exercise the branch was, by construction, attacker traffic, because the field that gates the branch is one no Pacemaker sender has ever set to nonzero.

AISLE, the AI-assisted code-review platform that has now produced more than 225 CVE disclosures against widely-deployed codebases, reported the bug to Red Hat. The disclosure credit on CVE-2026-10649 reads "AISLE in partnership with Red Hat." A pipeline whose job is to read every codepath read the one nobody on the project had a reason to exercise.

What the patch did, and what the wire format still says

The fix for CVE-2026-10649 lands in four commits on PR #4128:

Commit Severity Effect
8e667ef Med Rewrites the expected_size check in localized_remote_header to handle the compressed case correctly and guards the addition against SIZE_MAX. The pre-fix check assumed one of payload_compressed or payload_uncompressed would be zero, which is true only for traffic the project itself produces.
1e1825b High Adds explicit bounds checks on payload_uncompressed, on size_u, and on payload_offset + size_u against UINT_MAX and SIZE_MAX before the allocation. This is the integer-overflow fix.
bb37829 High Introduces PCMK__REMOTE_MSG_MAX_SIZE, set to 20 MB, and caps both the read-side buffer and the decompression buffer against it. Bounds the cost of a single remote message.
6dd7ce8 High Fixes the send side: pcmk__remote_send_xml was computing header->size_total = iov[0].iov_len + iov[1].iov_len (two size_t values) into a uint32_t field with no overflow check.

The wire format is unchanged. payload_compressed, payload_uncompressed, and payload_offset are still uint32_t. The receiver still trusts them as inputs to an allocation. The new checks bound that trust to twenty megabytes; the patch's own commit message calls that "doubly unfortunate given how much work we've recently put into removing restrictions on IPC messages allowing for much larger clusters."

What the receiver does not do, in any version, is delete the decompression branch. The branch that no Pacemaker sender has ever exercised still exists, still runs against attacker-supplied size fields, still calls BZ2_bzBuffToBuffDecompress if payload_compressed is nonzero. The patch made the branch safe to be wrong. It did not make the branch necessary.

This is also the Declared Size Is Allocation shape on a C network protocol. The wire field is four bytes; the allocation the receiver was performing was four gigabytes; the amplification ratio is one to a billion. The earlier exhibit was Svelte devalue passing the wire's length field straight to new Array(len), where V8 committed 800 megabytes of backing store for an eighteen-byte JSON payload. The pattern recurs at every layer where a parser hands a declared length to a runtime constructor that defaults to eager allocation. The Pacemaker exhibit is the C/network instance, in pre-auth code, against a daemon that decides which nodes get fenced. The wire still names the size. The new code caps the runtime's response at twenty megabytes. The next version of the protocol will still carry the field.

PoC: seclists.org/oss-sec/2026/q2/944

The receiver supports compression. The sender does not. The attacker does.