Summary: | openssl listens on IPv4 "any" socket only not on IPv6 | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Hubert Kario <hkario> | |
Component: | openssl | Assignee: | Daiki Ueno <dueno> | |
Status: | CLOSED ERRATA | QA Contact: | Ivan Nikolchev <inikolch> | |
Severity: | low | Docs Contact: | ||
Priority: | low | |||
Version: | 8.4 | CC: | ashankar, bnater, codonell, dj, dueno, fweimer, inikolch, mleitner, mnewsome, pfrankli, sahana, sipoyare | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | 8.0 | |||
Hardware: | All | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | openssl-1.1.1k-1.el8 | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1976845 (view as bug list) | Environment: | ||
Last Closed: | 2021-11-09 19:44:31 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Bug Depends On: | ||||
Bug Blocks: | 1976845 |
Description
Hubert Kario
2020-12-15 18:00:45 UTC
Would you please share your /etc/nsswitch.conf file? Is the system host name listed in /etc/hosts or resolvable over DNS? Thanks. I assume the expected behavior occurs under Red Hat Enterprise Linux 8.3.0. Actual reproducer commands: openssl req -nodes -x509 -new -out server.pem -keyout server.key -days 365 -subj "/C=XX/ST=mystate/L=mytown/O=myorganisation/OU=myou/CN=myname/emailAddress=myemail/" openssl s_server -www -key server.key -cert server.pem ^Z ss -ptna | grep openssl My test system does not have any link-local IPv6 addresses, so the glibc behavior is as documented. OpenSSL uses AI_PASSIVE | AI_ADDRCONFIG. ah, so the problem is that openssl is asking from wrong address and the host configuration exposed it thanks for debugging it, I'm switching the bug to openssl then bz1908334 is a sister bug for gnutls (same issue, also caused by AI_ADDRCONFIG application). (In reply to Florian Weimer from comment #3) > My test system does not have any link-local IPv6 addresses, so the glibc > behavior is as documented. OpenSSL uses AI_PASSIVE | AI_ADDRCONFIG. Can you please share more details on the networking for this system? Which interfaces it has, how are they configured? (In reply to Hubert Kario from comment #7) > they don't have IPv6 addresses on public interface, not even link-local > addresses That much I understood. IPv6 public addresses AFAIK are assigned by IT and the systems will fetch it with dhcpv6. But link-local addresses can be auto-generated and doesn't depend on anything, so we may have two problems at hand here then. So it would be helpful if you could describe how the network is configured on these systems. Is it using networkmanager? Is it, somehow, disabling ipv6 maybe (say, via net.ipv6.conf.all.disable_ipv6)? (In reply to Hubert Kario from comment #0) > Actual results: > LISTEN 0 128 0.0.0.0:4433 0.0.0.0:* > users:(("openssl",pid=7325,fd=3)) > > Expected results: > LISTEN 0 128 *:4433 *:* > users:(("openssl",pid=846593,fd=3)) For this, it shouldn't matter specifics of cabled interfaces, as you can have ipv6 enabled only on loopback and it should be enough. Can you please share the output of 'ip addr list' ? I don't know how they are configured, I didn't do anything special, just asked beaker for s390x machine. Clone my task if you want to see what environment you end up with. Beniamino asked for a NetworkManager bug regarding the underlying issue, so I filed 1909213. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: openssl security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:4424 |