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

(cherry picked from commit 4e47414648894943413091984124d93bd43e5da1)

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
rG4f1a2168f685: ktls: Don't leak ktls session objects for certain errors.
Branches
Unknown
Tags
Unknown