Skip to content

CVE-2026-63566 DTLS handshake reassembler allocates buffer from unchecked 24-bit length

HighCVSS 8.7 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Memory allocation with excessive size value in the DTLS handshake reassembly (DtlsReliableHandshake, DtlsReassembler) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated DTLS peer to cause a denial of service through memory exhaustion via crafted handshake message fragments, because the reassembly buffer for each incoming handshake message was allocated at the 24-bit length declared in the fragment header, without the check against the peer's maximum handshake message size that TLS already applied. A fragment carrying no payload can force an allocation of almost 16 MB, for each of up to 16 pending messages per handshake, before the handshake is authenticated. DTLS servers and DTLS clients are both affected; TLS is not.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
bouncycastle bc-csharp < 2.7.0 2.7.0 Fixed
nuget BouncyCastle.Cryptography(NuGet) < 2.7.0 2.7.0 Fixed

Affected products

ProductAffected versionsFixed in
nuget BouncyCastle.Cryptography(NuGet) < 2.7.0 2.7.0
bouncycastle bc-csharp < 2.7.0 2.7.0

References