Red Hat Bugzilla – Bug 1031818
IKEv2 minor check code could allow packets that crash the IKE daemon in the future
Last modified: 2014-04-07 11:10:00 EDT
Description of problem:
During an effort to ignore IKEv2 minor version numbers as required for RFC-5996, complete parse errors of any IKE packets with version 2.1+ were mistakenly accepted for further processing. This causes a crash later on if the IKE packet is mangled (e.g. too short). Openswan turns out not to be vulnerable because it happens to abort on the mismatched IKE length versus packet length before it inspects the rest of the IKE header. And since reading an invalid IKE major aborts further parsing of the IKE header, the length remains at 0, and so it will always mismatch.
We mention this bug, because if the ike_pad= feature is ever backported from libreswan to openswan, this would actually open up a crasher (like in libreswan 3.6)
Version-Release number of selected component (if applicable):
2.6.32-12 (rhel 6.x) and 2.6.32-4 (rhel 5.1x) and upstream in openswan 2.6.38+
As openswan is currently not vulnerable for this bug, no release is required. However, this bug should be addressed if/when a new openswan package is going to be released - especially if the ike_pad= code is backported, which would expose this bug to a vulnerability.
This code was backported already for CVE-2013-6467 and has been included in openswan-2.6.32-27.2