Skip to contentSkip to conversation

Solaris 11: t_lpback.sh coredump on AES-GCM

Openvpn-devel [email protected]... 4 participants 8 messages Aug 29, 2017 – Nov 12, 2017

lore
Share & tools
lore
#0 lore raw

I recently run into the same problem as Jens Neuhalfen has reported more than a year ago in this mailing list.

As I was somewhat confused why the shipped Solaris openssl version failed, I looked into that issue as I also wanted to run a recent openvpn on Solaris 11.x.

After I figured out where we went wrong, I filed:

26336744 Solaris specific cleanup code breaks gcm_aes for, e.g., openvpn

which has now been fixed in oracle solaris-userland on git hub

https://github.com/oracle/solaris-userland/tree/master/components/openssl

It cannot say exactly when it will be in Solaris 11.3 SRU (patch) release.

Current workaround is disabling AES-GCM for openvpn but that should not be needed in the future.

Casper

#1 lore raw

Hi Casper,

Quoted 6 lines · On Tue, Aug 29, 2017 at 03:22:38PM +0200, [email protected]... wrote:

I recently run into the same problem as Jens Neuhalfen has reported more than a year ago in this mailing list.

As I was somewhat confused why the shipped Solaris openssl version failed, I looked into that issue as I also wanted to run a recent openvpn on Solaris 11.x.

Oh. That's the bit I missed - I tried reproducing it with various openssl versions, but my OpenSolaris test VM is so old that the *shipped* version didn't have GCM support yet...

Quoted 7 lines

After I figured out where we went wrong, I filed:

26336744 Solaris specific cleanup code breaks gcm_aes for, e.g., openvpn

which has now been fixed in oracle solaris-userland on git hub

https://github.com/oracle/solaris-userland/tree/master/components/openssl

Cool, thanks a lot!

Quoted 4 lines

It cannot say exactly when it will be in Solaris 11.3 SRU (patch) release.

Current workaround is disabling AES-GCM for openvpn but that should not be needed in the future.

Is there a way to reliably detect this issue from a test program (or by looking at system versions, like "uname")? It might be worth adding a configure test so users won't run into it ("AES-GCM disabled due to bug 26336744 in Solaris OpenSSL").

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#2 lore raw
Quoted 9 lines
Quoted 6 lines

After I figured out where we went wrong, I filed:
26336744 Solaris specific cleanup code breaks gcm_aes for, e.g., openvpn which has now been fixed in oracle solaris-userland on git hub
https://github.com/oracle/solaris-userland/tree/master/components/openssl

Cool, thanks a lot!

Quoted 8 lines
Quoted 3 lines

It cannot say exactly when it will be in Solaris 11.3 SRU (patch) release. Current workaround is disabling AES-GCM for openvpn but that should not be needed in the future.

Is there a way to reliably detect this issue from a test program (or by looking at system versions, like "uname")? It might be worth adding a configure test so users won't run into it ("AES-GCM disabled due to bug 26336744 in Solaris OpenSSL").

Well, t_lpback would fail but that is late as then you would have configured and compiled openvpn.

This bug exists in Solaris 11.2 FCS. Older versions, as you have seen, do not have GCM support so you would not find the bug.

The best way to find the install Solaris version in Solaris 11 and later is "pkg list entire"; this will print:

NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.3.22.0.3.0    i--

The actual string is pretty much an "historical accident" but the important bits are: 0.5.11-0.175.*3*.*22*.0.3.0

The first three is the minor version (11.*3*) and the *22* is the installed SRU.

For now, I think for Solaris 11+ we should disable gcm which I currently do by hand by changing

	#define HAVE_AEAD_CIPHER_MODES 1 

to
#undef HAVE_AEAD_CIPHER_MODES

Casper

#3 lore raw

Am 30.08.17 um 10:39 schrieb [email protected]...:

Quoted 13 lines
Quoted 13 lines
Quoted 6 lines

After I figured out where we went wrong, I filed:
26336744 Solaris specific cleanup code breaks gcm_aes for, e.g., openvpn which has now been fixed in oracle solaris-userland on git hub
https://github.com/oracle/solaris-userland/tree/master/components/openssl

Cool, thanks a lot!

Quoted 3 lines

It cannot say exactly when it will be in Solaris 11.3 SRU (patch) release. Current workaround is disabling AES-GCM for openvpn but that should not be needed in the future.

Quoted 8 lines
Quoted 4 lines

Is there a way to reliably detect this issue from a test program (or by looking at system versions, like "uname")? It might be worth adding a configure test so users won't run into it ("AES-GCM disabled due to bug 26336744 in Solaris OpenSSL").

Well, t_lpback would fail but that is late as then you would have configured and compiled openvpn.

Does it fail reliable? If yes we could just run a quick version of failing and if this fails disable AES support, especially disabling cipher negoiation.

Arne

#4 lore raw
Quoted 20 lines

Am 30.08.17 um 10:39 schrieb [email protected]...:

Quoted 18 lines
Quoted 17 lines
Quoted 6 lines

After I figured out where we went wrong, I filed:
26336744 Solaris specific cleanup code breaks gcm_aes for, e.g., openvpn which has now been fixed in oracle solaris-userland on git hub
https://github.com/oracle/solaris-userland/tree/master/components/openssl

Cool, thanks a lot!

Quoted 3 lines

It cannot say exactly when it will be in Solaris 11.3 SRU (patch) release. Current workaround is disabling AES-GCM for openvpn but that should not be needed in the future.

Is there a way to reliably detect this issue from a test program (or by looking at system versions, like "uname")? It might be worth adding a configure test so users won't run into it ("AES-GCM disabled due to bug 26336744 in Solaris OpenSSL").

Quoted 7 lines
Quoted 3 lines

Well, t_lpback would fail but that is late as then you would have configured and compiled openvpn.

Does it fail reliable? If yes we could just run a quick version of failing and if this fails disable AES support, especially disabling cipher negoiation.

Yes, very reliable (NULL pointer dereference)

Casper

#5 lore raw

Hello.

Spent a day debugging this issue on OpenIndiana.
If anyone steps on this once again...
It seems the issue was caused OI/Solaris OpenSSL specific patches, in particular by https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/library/openssl/openssl-1.0.2/patches/036-evp_leak.patch . It was fixed in solaris-userland in this commit - https://github.com/oracle/solaris-userland/commit/05790938481cdceaedb2a9aee700bcec6fca7e34
.

Signature · 3 lines
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department
#6 lore raw
Quoted 8 lines

Hello.

Spent a day debugging this issue on OpenIndiana.
If anyone steps on this once again...
It seems the issue was caused OI/Solaris OpenSSL specific patches, in particular by
https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/library/openssl/openssl-1.0.

2/patches/036-evp_leak.patch

Quoted 3 lines

. It was fixed in solaris-userland in this commit -
https://github.com/oracle/solaris-userland/commit/05790938481cdceaedb2a9aee700bcec6fca7e34
.

Yes I had bug 26336744 filed for this and figured out what was causing it; as a result it has been fixed in Solaris userland (in both branches).

The fix was also delivered in Solaris 11.3 SRU 24 which was released somewhere in the last week.

# pkg list -H entire openssl
entire                                            0.5.11-0.175.3.24.0.4.0    i--
library/security/openssl                          1.0.2.11-0.175.3.24.0.4.0  i--

(the weird numbers are historic and should be changed to a more easily understandable numbers in 11.4)

Casper

#7 lore raw

Hi,

noob speaking... so we're upgrading our VM build/test environmend, and have added an 11.3 VM (based on the "Oracle Solaris 11.3 VM Template for Oracle VM VirtualBox" nicely provided by Oracle).

Of course, GCM modes now core dump (= good to test :-) )...

Quoted 6 lines · On Wed, Sep 20, 2017 at 12:59:24PM +0200, [email protected]... wrote:

The fix was also delivered in Solaris 11.3 SRU 24 which was released somewhere in the last week.

# pkg list -H entire openssl
entire                                            0.5.11-0.175.3.24.0.4.0    i--
library/security/openssl                          1.0.2.11-0.175.3.24.0.4.0  i--

What I have after what I thought would do the updating ("pkg install entire") is:

[email protected]...:/tmp/openvpn$ pkg list -H entire openssl
entire                                            0.5.11-0.175.3.1.0.5.2     i--
library/security/openssl                          1.0.1.16-0.175.3.0.0.30.0  i--

... so is there a way to get from there to "11.3 SRU 24" from the inside of the VM? Or do you need to download something manually, have a maintenance contract, etc.?

(Too many things changed in the organizational structure since I used an "original Solaris" last time - that was OpenSolaris 10...)

thanks,

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...