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
F152561972: D32124.diff
Wed, Apr 15, 5:12 PM
F152469741: D32124.id95660.diff
Wed, Apr 15, 4:04 AM
F152455394: D32124.id95665.diff
Wed, Apr 15, 2:01 AM
Unknown Object (File)
Tue, Apr 14, 4:00 PM
Unknown Object (File)
Tue, Apr 14, 10:03 AM
Unknown Object (File)
Tue, Apr 14, 12:18 AM
Unknown Object (File)
Sun, Apr 12, 6:18 AM
Unknown Object (File)
Sat, Apr 11, 10:39 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