aboutsummaryrefslogtreecommitdiff
path: root/lib/libveriexec
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-05-11 21:36:12 +0000
committerMark Johnston <markj@FreeBSD.org>2021-05-11 21:36:12 +0000
commit1a04f0156c4e6abfc01d5841341a94179f317f31 (patch)
tree89d3ba93038f2c103d195865dd354c2a856fcb49 /lib/libveriexec
parentb8f113cab91f288e5d5e29d21184d1601b87cfdd (diff)
downloadsrc-1a04f0156c4e6abfc01d5841341a94179f317f31.tar.gz
src-1a04f0156c4e6abfc01d5841341a94179f317f31.zip
cryptodev: Fix some input validation bugs
- When we do not have a separate IV, make sure that the IV length specified by the session is not larger than the payload size. - Disallow AEAD requests without a separate IV. crp_sanity() asserts that CRYPTO_F_IV_SEPARATE is set for AEAD requests, and some (but not all) drivers require it. - Return EINVAL for AEAD requests if an IV is specified but the transform does not expect one. Reported by: syzbot+c9e8f6ff5cb7fa6a1250@syzkaller.appspotmail.com Reported by: syzbot+007341439ae295cee74f@syzkaller.appspotmail.com Reported by: syzbot+46e0cc42a428b3b0a40d@syzkaller.appspotmail.com Reported by: syzbot+2c4d670173b8bdb947df@syzkaller.appspotmail.com Reported by: syzbot+220faa5eeb4d47b23877@syzkaller.appspotmail.com Reported by: syzbot+e83434b40f05843722f7@syzkaller.appspotmail.com Reviewed by: jhb MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30154
Diffstat (limited to 'lib/libveriexec')
0 files changed, 0 insertions, 0 deletions