Skip to content

Commit

Permalink
Fixed out-of-boundary reads in hash-mode 22400 (AES Crypt) kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteube committed Oct 22, 2021
1 parent 49a68cd commit 139ace2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenCL/m22400-pure.cl
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ KERNEL_FQ void m22400_init (KERN_ATTR_TMPS_ESALT (aescrypt_tmp_t, aescrypt_t))
#ifdef _unroll
#pragma unroll
#endif
for (int i = 127; i >= 0; i--) // create some space for the first digest without extra buffer
for (int i = 80 - 1; i >= 8; i--) // create some space for the first digest without extra buffer
{
w[8 + i] = w[i];
w[i] = w[i - 8];
}

w[0] = ctx.h[0];
Expand Down
1 change: 1 addition & 0 deletions docs/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fixed invalid handling of initialization value for -m 11500
- Fixed invalid progress counter initialization in attack-mode 9 when using --skip or --restore
- Fixed out-of-boundary reads in attack-mode 9 that were caused by a missing work item limit in the refactored autotune engine
- Fixed out-of-boundary reads in hash-mode 22400 (AES Crypt) kernel
- Fixed strategy for eliminating hashes with zero length in LM when multiple hashes contain a zero hash

##
Expand Down

0 comments on commit 139ace2

Please sign in to comment.