1. 02 Nov, 2017 4 commits
  2. 01 Nov, 2017 3 commits
  3. 26 Oct, 2017 2 commits
  4. 25 Oct, 2017 1 commit
    • Matt Caswell's avatar
      Don't make any changes to the lhash structure if we are going to fail · 1aa0fcfb
      Matt Caswell authored
      
      
      The lhash expand() function can fail if realloc fails. The previous
      implementation made changes to the structure and then attempted to do a
      realloc. If the realloc failed then it attempted to undo the changes it
      had just made. Unfortunately changes to lh->p were not undone correctly,
      ultimately causing subsequent expand() calls to increment num_nodes to a
      value higher than num_alloc_nodes, which can cause out-of-bounds reads/
      writes. This is not considered a security issue because an attacker cannot
      cause realloc to fail.
      
      This commit moves the realloc call to near the beginning of the function
      before any other changes are made to the lhash structure. That way if a
      failure occurs we can immediately fail without having to undo anything.
      
      Thanks to Pavel Kopyl (Samsung) for reporting this issue.
      
      Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/4551)
      1aa0fcfb
  5. 24 Oct, 2017 2 commits
  6. 23 Oct, 2017 1 commit
  7. 19 Oct, 2017 1 commit
  8. 13 Oct, 2017 1 commit
  9. 11 Oct, 2017 1 commit
    • Matt Caswell's avatar
      Ensure we test all parameters for BN_FLG_CONSTTIME · 86ccadf5
      Matt Caswell authored
      
      
      RSA_setup_blinding() calls BN_BLINDING_create_param() which later calls
      BN_mod_exp() as follows:
      
      BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx)
      
      ret->mod will have BN_FLG_CONSTTIME set, but ret->e does not. In
      BN_mod_exp() we only test the third param for the existence of this flag.
      We should test all the inputs.
      
      Thanks to Samuel Weiser (samuel.weiser@iaik.tugraz.at) for reporting this
      issue.
      
      This typically only happens once at key load, so this is unlikely to be
      exploitable in any real scenario.
      
      Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/4477)
      
      (cherry picked from commit e913d11f)
      86ccadf5
  10. 03 Oct, 2017 4 commits
  11. 02 Oct, 2017 1 commit
  12. 29 Sep, 2017 3 commits
  13. 27 Sep, 2017 2 commits
  14. 26 Sep, 2017 1 commit
  15. 19 Sep, 2017 1 commit
  16. 11 Sep, 2017 1 commit
  17. 07 Sep, 2017 1 commit
  18. 28 Aug, 2017 1 commit
  19. 25 Aug, 2017 1 commit
  20. 24 Aug, 2017 1 commit
  21. 23 Aug, 2017 2 commits
  22. 22 Aug, 2017 1 commit
  23. 18 Aug, 2017 3 commits
  24. 17 Aug, 2017 1 commit