]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ktls_ocf: Reject encrypted TLS records using AEAD that are too small.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 15 Nov 2022 20:02:57 +0000 (12:02 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 15 Nov 2022 20:02:57 +0000 (12:02 -0800)
commit4e47414648894943413091984124d93bd43e5da1
treeaedbc2a655d760ed2f3ac8db825f75dbee32bb43
parent64811651aa7c401e5b520877ccd04e9eeab425e1
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
sys/opencrypto/ktls_ocf.c