A NULL pointer dereference flaw was discovered in GnuTLS's gnutls_x509_dn_oid_name(). The function, when called with the GNUTLS_X509_DN_OID_RETURN_OID flag, should not return NULL to its caller. However, it could previously return NULL when parsed X.509 certificates included specific OIDs.
The issue was corrected upstream using the following commit:
The fix was first included in upstream versions 3.1.20 and 3.2.10:
Affected function was introduced in GnuTLS version 3.0:
The gnutls packages in Red Hat Enterprise Linux 6 and earlier include GnuTLS versions 2.x or 1.x and were therefore not affected by this issue. The gnutls and mingw-gnutls packages in Fedora are already updated to the fixed upstream version.
This issue did not affect the versions of gnutls as shipped with Red Hat Enterprise Linux 4, 5, and 6.
Red Hat would like to thank GnuTLS upstream for reporting this issue.
This issue has been addressed in following products:
Red Hat Enterprise Linux 7
Via RHSA-2014:0684 https://rhn.redhat.com/errata/RHSA-2014-0684.html