HomeFreeBSD

ktls_ocf: Reject encrypted TLS records using AEAD that are too small.

Description

ktls_ocf: Reject encrypted TLS records using AEAD that are too small.

If a TLS record is too small to contain the required explicit IV,
record_type (TLS 1.3), and MAC, reject attempts to decrypt it with
EMSGSIZE without submitting it to OCF. OCF drivers may not properly
detect that regions in the crypto request are outside the bounds of
the mbuf chain. The caller isn't supposed to submit such requests.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37372

Details

Provenance
jhbAuthored on Nov 15 2022, 8:02 PM
Reviewer
markj
Differential Revision
D37372: ktls_ocf: Reject encrypted TLS records using AEAD that are too small.
Parents
rG64811651aa7c: ktls: Add tests for software AES-CBC decryption for TLS 1.1+.
Branches
Unknown
Tags
Unknown