Skip to content
  1. Jan 22, 2015
  2. Jan 14, 2015
  3. Jan 13, 2015
  4. Jan 12, 2015
  5. Jan 10, 2015
  6. Jan 09, 2015
  7. Jan 08, 2015
    • Matt Caswell's avatar
    • Matt Caswell's avatar
      A memory leak can occur in dtls1_buffer_record if either of the calls to · 103b171d
      Matt Caswell authored
      
      ssl3_setup_buffers or pqueue_insert fail. The former will fail if there is a
      malloc failure, whilst the latter will fail if attempting to add a duplicate
      record to the queue. This should never happen because duplicate records should
      be detected and dropped before any attempt to add them to the queue.
      Unfortunately records that arrive that are for the next epoch are not being
      recorded correctly, and therefore replays are not being detected.
      Additionally, these "should not happen" failures that can occur in
      dtls1_buffer_record are not being treated as fatal and therefore an attacker
      could exploit this by sending repeated replay records for the next epoch,
      eventually causing a DoS through memory exhaustion.
      
      Thanks to Chris Mueller for reporting this issue and providing initial
      analysis and a patch. Further analysis and the final patch was performed by
      Matt Caswell from the OpenSSL development team.
      
      CVE-2015-0206
      
      Reviewed-by: default avatarDr Stephen Henson <steve@openssl.org>
      103b171d