[Pkg-openssl-devel] Bug#506111: openssl command line tool crashes if IPv6 addressis given as subjectAltName

Tobias Ginzler ginzler at fgan.de
Tue Nov 18 13:29:40 UTC 2008


Package: openssl
Version: 0.9.8g-14
Severity: normal



The openssl command line tool sometimes segfaults when a IPv6 address is 
given as SubjectAltName in an X.509_v3 extension.

Steps to reproduce:

copy the attached files into the same directory and issue

openssl req -config ssl.conf -new -key privkey.pem -out newreq.pem


valgrind:

==19593== Process terminating with default action of signal 11 (SIGSEGV)
==19593==  Access not within mapped region at address 0x491BD0C
==19593==    at 0x4024A30: memcpy (mc_replace_strmem.c:402)
==19593==    by 0x415FFBA: ASN1_STRING_set (in /usr/lib/i686/cmov/libcrypto.so.0.9.8)
==19593==    by 0x414955A: ASN1_OCTET_STRING_set (in /usr/lib/i686/cmov/libcrypto.so.0.9.8)
==19593==    by 0x4177A05: a2i_IPADDRESS (in /usr/lib/i686/cmov/libcrypto.so.0.9.8)
==19593==    by 0x4178887: v2i_GENERAL_NAME_ex (in /usr/lib/i686/cmov/libcrypto.so.0.9.8)
==19593==    by 0x4178B7A: v2i_GENERAL_NAME (in /usr/lib/i686/cmov/libcrypto.so.0.9.8)


-- System Information:
Debian Release: lenny/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.25-2-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages openssl depends on:
ii  libc6                  2.7-16            GNU C Library: Shared libraries
ii  libssl0.9.8            0.9.8g-14         SSL shared libraries
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

openssl recommends no packages.

-- no debconf information
-------------- next part --------------
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAuWOV1YaPCfjSxRIg6nJGfI9NZWEu6YJXzXqa+05+4UH8vbD+
Zcz6RjjQ+QnV4xXYNr7kSoBqCBnIby9Ntd6kcUV7gw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I4y5rErPB+lWbyHObfRvV4VTldLbe8GjBK1ajrOX+QqxxSBz0jQ2m
2ju5nMDCM4wEw+FEmmJmcRECgYBgP9PHVhwnZXB+bPtOQhM+M78J/y9nZU8jLr1+
TB4c+02/XQCNYSWTqxc8hLdSsTR8u+RQlHXjyy6tAmPNz1SzQUgihBJo0+p9IeAK
BL2GMRDyDMLs1Pd5DsL1mbzRuX18wNNdv6G31Oc+Z+hG/ElsnrrgHO01X6VznZte
S0ulqwKBgAaz5nlPeJkHHcbSzNW28s0VfTujFf5aFeS/8yfp3V64N2ooswTQkr6y
ZCwonGSsY4RhF1EoaK+UUhJI8kVnu62XXm5eKXFZUG2q/VM7ULLS4Bqsm3hPrhPH
H8D3MNEEIIs7R0m7Xtnw9Pm+WAcf5G4sc0YpvakHVCZNsiMLvd4A
-----END RSA PRIVATE KEY-----
-------------- next part --------------
RANDFILE	=$ENV::HOME/.rnd

[policy_match]
organizationName	= match

[req]
distinguished_name	= req_distinguished_name
x509_extensions		= v3_ca

[req_distinguished_name]
countryName             = US
countryName_value       = US
countryName_default     = US
commonName             = Common Name (eg, YOUR name)
commonName_value       = commonName
organizationName      = Organisation
organizationName_value= org

[v3_ca]
basicConstraints	= critical, CA:FALSE
subjectKeyIdentifier	= hash
authorityKeyIdentifier	= keyid:always,issuer:always
keyUsage		= digitalSignature, nonRepudiation, keyEncipherment, keyAgreement
subjectAltName		= IP:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA


More information about the Pkg-openssl-devel mailing list