Page MenuHomeFreeBSD

opencrypto: Disallow requests which pass VERIFY_DIGEST without a MAC
ClosedPublic

Authored by markj on Sep 24 2021, 6:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 18, 10:00 AM
Unknown Object (File)
Tue, Jul 7, 2:00 AM
Unknown Object (File)
Fri, Jul 3, 7:05 AM
Unknown Object (File)
Mon, Jun 22, 10:39 AM
Unknown Object (File)
Jun 19 2026, 7:27 PM
Unknown Object (File)
Apr 23 2026, 11:08 AM
Unknown Object (File)
Apr 21 2026, 12:55 AM
Unknown Object (File)
Apr 20 2026, 4:48 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable