rtci 0.4.1
Released 2026-11-29.
From CHANGELOG.md of rtci at its release tag.
A security patch release: one fix, no API or default change.
Security
- A forged ChangeCipherSpec could end an established DTLS 1.2 association without keys. The DTLS 1.2 record ciphers (AES-GCM, AES-CCM, ChaCha20-Poly1305, AES-CBC; certificate and PSK suites) handed a record of content type ChangeCipherSpec back without authenticating it. After the handshake, anyone able to send a datagram from the peer's address could send a 14-octet record that the engine took as authenticated: one that did not parse drew a fatal
decode_erroralert and ended the association; one with a valid body and a high sequence number stopped RFC 9146 connection-id peer-address migration for the rest of the association; one queued during the handshake failed the handshake once the keys existed. Every record of a protected epoch is now opened and checked whatever its content type, a record that fails is discarded silently (RFC 6347 section 4.1.2.7), and no content type is exempt from the connection-id check (RFC 9146 sections 3 and 6). DTLS 1.3 was not affected. rtci 0.4.0 and every earlier release are affected. Tests:forged_change_cipher_spec_test,every_content_type_is_authenticated_by_every_record_cipher. The audit rows RFC6347-4.1.2.1-3, RFC6347-4.1.2.1-5, RFC6347-4.1.2.7-1, RFC6347-4.1.2.7-3, RFC9146-3-6 and RFC9146-6-2 were recorded as tested in 0.4.0 while this defect violated them; their tests did not send a forged ChangeCipherSpec.
Fixed
- AES-CCM record keys left in dead stack frames in an optimised build. With the fix above in place, the DTLS key residue measurement found two round keys of a DTLS 1.3 AES-128-CCM record key in dead stack frames (rustc 1.100.0; 0.4.0 left none, the change moved the compiler's inlining). Every AES-CCM record now runs in a frame of its own and the stack below it is overwritten afterwards in optimised builds too (24 KiB per record; ledger row
ccm-1). AES-GCM, ChaCha20-Poly1305 and SRTP records are untouched.