Changes between Initial Version and Version 1 of CVE-2017-12166


Ignore:
Timestamp:
09/22/17 08:50:28 (7 years ago)
Author:
Steffan Karger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CVE-2017-12166

    v1 v1  
     1= CVE-2017-12166: out of bounds write in key-method 1 =
     2
     3OpenVPN 2.4.4 and 2.3.18 resolve an out-of-bounds write vulnerability, that was discovered by Guide Vranken.
     4
     5This vulnerability is only exposed when explicitly selecting `key-method 1` in the config (or on the command line).  This option is only available for backward compatibility with OpenVPN 1.x, and has no longer been the default since the release of OpenVPN 2.0 in 2005.  It will be removed all together in OpenVPN 2.5.
     6
     7Commit message:
     8
     9{{{
     10 Fix bounds check in read_key()
     11
     12The bounds check in read_key() was performed after using the value, instead
     13of before. If 'key-method 1' is used, this allowed an attacker to send a
     14malformed packet to trigger a stack buffer overflow.
     15
     16Fix this by moving the input validation to before the writes.
     17
     18Note that 'key-method 1' has been replaced by 'key method 2' as the default
     19in OpenVPN 2.0 (released on 2005-04-17), and explicitly deprecated in 2.4
     20and marked for removal in 2.5. This should limit the amount of users
     21impacted by this issue.
     22
     23CVE: 2017-12166
     24Signed-off-by: Steffan Karger <steffan.karger@...>
     25Acked-by: Gert Doering <gert@...>
     26Acked-by: David Sommerseth <davids@...>
     27Message-Id: <80690690-67ac-3320-1891-9fecedc6a1fa@...>
     28URL: ​https://www.mail-archive.com/search?l=mid&q=80690690-67ac-3320-1891-9fecedc6a1fa@fox-it.com
     29Signed-off-by: David Sommerseth <davids@...>
     30}}}
     31
     32Mail thread reporting the vulnerability:
     33https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15492.html
     34
     35Fixes in tree:
     36
     37commit 3b1a61e9fb27213c46f76312f4065816bee8ed01  (master)
     38
     39commit c7e259160b28e94e4ea7f0ef767f8134283af255  (release/2.4)
     40
     41commit fce34375295151f548a26c2d0eb30141e427c81a  (release/2.3)
     42
     43commit a9f5c744d6b09f2495ca48d2c926efd3a4b981e6  (release/2.2)
     44
     45commit c560f95e7038daa3a1b5a08b69b85fb68d4eeef3  (release/2.1)