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)
Feb 21 2025, 10:18 PM
Unknown Object (File)
Feb 21 2025, 10:08 AM
Unknown Object (File)
Feb 9 2025, 8:31 AM
Unknown Object (File)
Feb 9 2025, 12:14 AM
Unknown Object (File)
Feb 8 2025, 12:11 AM
Unknown Object (File)
Feb 7 2025, 10:58 PM
Unknown Object (File)
Feb 5 2025, 12:04 AM
Unknown Object (File)
Feb 4 2025, 9:07 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