Add EN-20:08 through EN-20:09, and SA-20:12 through SA-20:16.
Approved by: so
This commit is contained in:
parent
142813164f
commit
8467b546fc
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=54136
30 changed files with 3038 additions and 0 deletions
13
share/security/patches/SA-20:16/cryptodev.patch
Normal file
13
share/security/patches/SA-20:16/cryptodev.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- sys/opencrypto/cryptodev.c.orig
|
||||
+++ sys/opencrypto/cryptodev.c
|
||||
@@ -585,8 +585,8 @@
|
||||
if (thash) {
|
||||
cria.cri_alg = thash->type;
|
||||
cria.cri_klen = sop->mackeylen * 8;
|
||||
- if (thash->keysize != 0 &&
|
||||
- sop->mackeylen > thash->keysize) {
|
||||
+ if (sop->mackeylen > thash->keysize ||
|
||||
+ sop->mackeylen < 0) {
|
||||
CRYPTDEB("invalid mac key length");
|
||||
error = EINVAL;
|
||||
SDT_PROBE1(opencrypto, dev, ioctl, error,
|
||||
Loading…
Add table
Add a link
Reference in a new issue