Rebuild openssl 1.1.1 to pickup TLSv1.3 (bionic) and unbreak existing builds against 1.1.1 (dh key size)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HAProxy |
Fix Released
|
Unknown
|
|||
haproxy (Ubuntu) |
Fix Released
|
Medium
|
Christian Ehrhardt | ||
Bionic |
Fix Released
|
Medium
|
Christian Ehrhardt | ||
Disco |
Fix Released
|
Undecided
|
Christian Ehrhardt | ||
Eoan |
Fix Released
|
Undecided
|
Christian Ehrhardt | ||
Focal |
Fix Released
|
Medium
|
Christian Ehrhardt |
Bug Description
[Impact-Bionic]
* openssl 1.1.1 has been backported to Bionic for its longer
support upstream period
* That would allow the extra feature of TLSv1.3 in some consuming
packages what seems "for free". Just with a no change rebuild it would
pick that up.
[Impact Disco-Focal]
* openssl >=1.1.1 is in Disco-Focal already and thereby it was built
against that already. That made it pick up TLSv1.3, but also a related
bug that broke the ability to control the DHE key, it was always in
"ECDH auto" mode. Therefore the daemon didn't follow the config
anymore.
Upgraders would regress having their DH key behavior changed
unexpectedly.
[Test Case]
A)
* run "haproxy -vv" and check the reported TLS versions to include 1.3
B)
* download https:/
* Install haproxy
* ./testssl.sh --pfs <localip>:443
* Check the reported DH key/group (shoudl stay 1024)
* Check if settings work to bump it like
into
[Regression Potential-Bionic]
* This should be low, the code already runs against the .so of the newer
openssl library. This would only make it recognize the newer TLS
support.
i'd expect more trouble as-is with the somewhat big delta between what
it was built against vs what it runs with than afterwards.
* [1] and [2] indicate that any config that would have been made for
TLSv1.2 [1] would not apply to the v1.3 as it would be configured in
[2].
It is good to have no entry for [2] yet as following the defaults of
openssl is the safest as that would be updated if new insights/CVEs are
known.
But this could IMHO be the "regression that I'd expect", one explcitly
configured the v1.2 things and once both ends support v1.3 that might
be auto-negotiated. One can then set "force-tlsv12" but that is an
administrative action [3]
* Yet AFAIK this fine grained control [2] for TLSv1.3 only exists in
>=1.8.15 [4] and Bionic is on haproxy 1.8.8. So any user of TLSv1.3 in
Bionic haproxy would have to stay without that. There are further
changes to TLS v1.3 handling enhancements [5] but also fixes [6] which
aren't in 1.8.8 in Bionic.
So one could say enabling this will enable an inferior TLSv1.3 and one
might better not enable it, for an SRU the bar to not break old
behavior is intentionally high - I tried to provide as much as possible
background, the decision is up to the SRU team.
[Regression Potential-
* The fixes let the admin regain control of the DH key configuration
which is the fix. But remember that the default config didn't specify
any. Therefore we have two scenarios:
a) an admin had set custom DH parameters which were ignored. He had no
chance to control them and needs the fix. He might have been under
the impression that his keys are safe (there is a CVE against small
ones) and only now is he really safe -> gain high, regression low
b) an admin had not set anything, the default config is meant to use
(
should set it higher". But what really happened was ECDH auto mode
which has longer keys and different settings. Those systems will
be "fixed" by finally following the config, but that means the key
will "now" after the fix be vulnerable.
-> for their POV a formerly secure setup will become vulnerable
I'd expect that any professional setup would use explicit config as it
has seen the warning since day #1 and also any kind of deployment
recipes should use big keys. So the majority of users should be in (a).
c) And OTOH there are people like the reporter who strictly NEED the
key to be small for their devices they have to support. They will
finally be able to use the small keys again which formerly was
impossible.
Summary: (a) good (c) good, (b) good, but a regression in some POV
[1]: https:/
[2]: https:/
[3]: https:/
[4]: https:/
[5]: https:/
[6]: https:/
[Other Info]
* If this is nack'ed we will need an upload that prevents to enable
TLSv1.3 to avoid enabling it by accident on e.g. a security update.
---
haproxy needs to be rebuilt after #1797386 to take advantage of TLSv1.3.
(If that's not desirable for some reason, then maybe TLSv1.3 should be actively disabled to avoid any surprises in case of a future bug fix release.)
---
Output of haproxy -vv with stock package:
Built with OpenSSL version : OpenSSL 1.1.0g 2 Nov 2017
Running on OpenSSL version : OpenSSL 1.1.1 11 Sep 2018 (VERSIONS DIFFER!)
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports : TLSv1.0 TLSv1.1 TLSv1.2
---
Output after rebuilding the package from source:
Built with OpenSSL version : OpenSSL 1.1.1 11 Sep 2018
Running on OpenSSL version : OpenSSL 1.1.1 11 Sep 2018
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports : TLSv1.0 TLSv1.1 TLSv1.2 TLSv1.3
Related branches
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 308 lines (+261/-1) (has conflicts)5 files modifieddebian/changelog (+11/-0)
debian/control (+2/-1)
debian/patches/lp-1841936-BUG-MEDIUM-ssl-tune.ssl.default-dh-param-value-ignor.patch (+131/-0)
debian/patches/lp-1841936-CLEANUP-ssl-make-ssl_sock_load_dh_params-handle-errc.patch (+115/-0)
debian/patches/series (+2/-0)
- Robie Basak: Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 297 lines (+257/-1)5 files modifieddebian/changelog (+9/-0)
debian/control (+2/-1)
debian/patches/lp-1841936-BUG-MEDIUM-ssl-tune.ssl.default-dh-param-value-ignor.patch (+130/-0)
debian/patches/lp-1841936-CLEANUP-ssl-make-ssl_sock_load_dh_params-handle-errc.patch (+114/-0)
debian/patches/series (+2/-0)
- Robie Basak: Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 291 lines (+263/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/lp-1841936-BUG-MEDIUM-ssl-tune.ssl.default-dh-param-value-ignor.patch (+134/-0)
debian/patches/lp-1841936-CLEANUP-ssl-make-ssl_sock_load_dh_params-handle-errc.patch (+118/-0)
debian/patches/series (+2/-0)
- Robie Basak: Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 294 lines (+266/-0) (has conflicts)4 files modifieddebian/changelog (+12/-0)
debian/patches/lp-1841936-BUG-MEDIUM-ssl-tune.ssl.default-dh-param-value-ignor.patch (+134/-0)
debian/patches/lp-1841936-CLEANUP-ssl-make-ssl_sock_load_dh_params-handle-errc.patch (+118/-0)
debian/patches/series (+2/-0)
CVE References
tags: | removed: server-triage-discuss |
summary: |
- Rebuild haproxy with openssl 1.1.1 (bionic) + Rebuild haproxy with openssl 1.1.1 will change features (bionic) |
tags: | added: server-triage-discuss |
tags: | added: bionic-openssl-1.1 |
Changed in haproxy: | |
status: | Unknown → New |
Changed in haproxy: | |
status: | New → Fix Released |
Changed in haproxy (Ubuntu Bionic): | |
assignee: | Ubuntu Security Team (ubuntu-security) → Christian Ehrhardt (paelzer) |
description: | updated |
description: | updated |
Changed in haproxy (Ubuntu Focal): | |
status: | Triaged → Fix Committed |
Hi David,
this would be like [1] doen by xnox who also was leading the overall 1.1.1 SRU activity IIRC:
I subscribed him to share his two cents.
@xnox - was there a specific reason not to do this rebuild for Bionic after the openssl SRU?
[1]: https:/ /launchpad. net/ubuntu/ +source/ haproxy/ 1.8.13- 2build1