Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update outdated OpenSSL version in build images #3839

Closed
Jakuje opened this issue May 18, 2020 · 9 comments
Closed

Update outdated OpenSSL version in build images #3839

Jakuje opened this issue May 18, 2020 · 9 comments

Comments

@Jakuje
Copy link
Contributor

Jakuje commented May 18, 2020

We got recently an oss-fuzz report for libssh that is pointing deep into the openssl code, which is far from reach of our project. Looking into the traces, the openssl-1.0.2g is used, which is after EOL so I do not believe it is something we should be solving and debugging.

The openssl is installed in the base-runner image already. Would it make sense to update to something more up-to-date?

The oss-fuzz reports showing the openssl issues:
https://oss-fuzz.com/testcase-detail/5152650317529088
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22133

@jonathanmetzman
Copy link
Contributor

I'm assuming that the base builder image has an old openssl regardless of what sanitizer build is being done (for sanitizer builds @oliverchang does some magic to build dependencies with MSAN).
I'm not sure we should to fix this besides doing #3756 since there are probably many dependencies installed via apt that are out-of-date.

@oliverchang
Copy link
Collaborator

oliverchang commented May 19, 2020

I'm assuming that the base builder image has an old openssl regardless of what sanitizer build is being done (for sanitizer builds @oliverchang does some magic to build dependencies with MSAN).

Right, MSan builds are also at the exact same version as what apt has.

I'm not sure we should to fix this besides doing #3756 since there are probably many dependencies installed via apt that are out-of-date.

+1

@Jakuje
Copy link
Contributor Author

Jakuje commented Dec 4, 2020

@jonathanmetzman Any update on this? Looks like the fuzzer is bumping into this issue more frequently than needed so it already escalated to the Fuzz-Blocker:

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22133#c7

@jonathanmetzman
Copy link
Contributor

@Jakuje I don't know we can fix it so easily. We provide ubuntu 16.04 images. I'm not sure the correct thing to do is to update libraries that are old. I think this can be confusing for projects that expect certain settings on Ubuntu 16.04.
Maybe you can build your project with a newer OpenSSL version.
The only real option for us at this point is to update to a newer ubuntu version. We haven't done this yet and don't have nearterm plans to do it, but we will need to do it eventually.

@DavidKorczynski
Copy link
Collaborator

DavidKorczynski commented Aug 20, 2021

@Jakuje - I did a fix here #6256 which compiles libssh from source and uses the compiled version. We can merge this in for now and then update once base images are upgraded. Please let me know in the PR if you are happy with that.

@jonathanmetzman
Copy link
Contributor

Is this still necessary now that #6180 is complete? Ubuntu 20.04 comes with libssl1.1

@Jakuje
Copy link
Contributor Author

Jakuje commented Aug 31, 2021

When you update to 20.04, it will be just 1.5 year old stuff in the image, which should be good enough for some time. The OpenSSL 1.1.1 should be supported at least until 2023 (assuming the bugs will be updated also in the image) [1].

[1] https://www.openssl.org/source/

@DavidKorczynski
Copy link
Collaborator

When you update to 20.04, it will be just 1.5 year old stuff in the image, which should be good enough for some time. The OpenSSL 1.1.1 should be supported at least until 2023 (assuming the bugs will be updated also in the image) [1].

[1] https://www.openssl.org/source/

The base image is now Ubuntu 20.04:

I think this can be closed.

@DavidKorczynski
Copy link
Collaborator

Closing this as the OSS-Fuzz base image is now Ubuntu 20.04 - for more details see here #6302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants