HomeFreeBSD

opencrypto: Disallow requests which pass VERIFY_DIGEST without a MAC

Description

opencrypto: Disallow requests which pass VERIFY_DIGEST without a MAC

Otherwise we can end up comparing the computed digest with an
uninitialized kernel buffer.

In cryptoaead_op() we already unconditionally fail the request if a
pointer to a digest buffer is not specified.

Based on a patch by Simran Kathpalia.

Reported by: syzkaller
Reviewed by: jhb
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/529
Differential Revision: https://reviews.freebsd.org/D32124

Details

Provenance
markjAuthored on Sep 24 2021, 7:04 PM
Reviewer
jhb
Differential Revision
D32124: opencrypto: Disallow requests which pass VERIFY_DIGEST without a MAC
Parents
rG1a25c51e38a7: loader: dev_net.c should use __func__ with printf
Branches
Unknown
Tags
Unknown