Bug 1397482
Summary: | Segfault in selfserv during session handshake when using SessionTicket extension and ECDHE-ECDSA ciphersuites [rhel-6] | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Frantisek Sumsal <fsumsal> |
Component: | nss | Assignee: | Daiki Ueno <dueno> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 6.8 | CC: | hkario, kengert, nmavrogi, nss-nspr-maint, qe-baseos-security, rrelyea, szidek |
Target Milestone: | rc | ||
Target Release: | 6.9 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1397410 | Environment: | |
Last Closed: | 2017-02-18 10:00:53 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: | |
Embargoed: | |||
Bug Depends On: | 1397410, 1426182, 1455876 | ||
Bug Blocks: | 1397012 |
Description
Frantisek Sumsal
2016-11-22 15:55:45 UTC
it looks like a bug in ssl_ext.c static unsigned char key_name[SESS_TICKET_KEY_NAME_LEN]; . . . . if (!ssl_GetSessionTicketKeysPKCS11(svrPrivKey, svrPubKey, -> ss->pkcs11PinArg, &key_name[SESS_TICKET_KEY_NAME_PREFIX_LEN], &session_ticket_enc_key_pkcs11, &session_ticket_mac_key_pkcs11)) . . . . . PORT_Memcpy(keyName, ticketKeyNameSuffix, SESS_TICKET_KEY_VAR_NAME_LEN); The code has been rewritten in 3.27.1 (which is the top of 6.9). Is this still a problem in 3.27? bob OK, yes, I found the same code in 3.27.1 with the same bug. bob Never mind SESS_TICKET_KEY_NAME_PREFIX_LEN + SESS_TICKET_KEY_VAR_NAME_LEN = SESS_TIKCET_KEY_NAME_LEN which is correct. We'd need a better stack traceback with the actual line number of the crash From upstream bug (with 3.27): Actual results: # cat client_err.log depth=0 CN = localhost verify return:1 139942008751992:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177: depth=0 CN = localhost verify return:1 139640958179192:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177: # cat server.log selfserv: HDX PR_Read returned error 0: Success selfserv: HDX PR_Read returned error -5925: The one-time function was previously called and failed. Its error code is no longer available Expected results: Handshake should not fail and selfserv should be able to handle following connections. |