Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1389535

Summary: Segmentation fault in SSL_renegotiate
Product: Red Hat Enterprise Linux 7 Reporter: Hung <hpham>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: Jan Houska <jhouska>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: cww, isenfeld, jorton, luhliari, mfrodl
Target Milestone: rcKeywords: OtherQA
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: httpd-2.4.6-49.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 21:36:44 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:    
Bug Blocks: 1298243    

Description Hung 2016-10-27 20:08:49 UTC
Description of problem:
httpd is segfaulting on mod_ssl


(gdb) t a a bt

Thread 1 (Thread 0x7fb3f7515840 (LWP 8026)):
#0  0x00007fb3f92b4c60 in ?? ()
#1  0x00007fb3eaeb90d3 in ssl_hook_Access (r=0x7fb3f92a1c98) at ssl_engine_kernel.c:782
#2  0x00007fb3f7569b40 in ap_run_access_checker (r=r@entry=0x7fb3f92a1c98) at request.c:87
#3  0x00007fb3f756c5c6 in ap_process_request_internal (r=r@entry=0x7fb3f92a1c98) at request.c:265
#4  0x00007fb3f7587680 in ap_internal_redirect (new_uri=<optimized out>, r=<optimized out>) at http_request.c:646
#5  0x00007fb3f7587b14 in ap_process_async_request (r=r@entry=0x7fb3f92b1920) at http_request.c:350
#6  0x00007fb3f7587ea4 in ap_process_request (r=r@entry=0x7fb3f92b1920) at http_request.c:363
#7  0x00007fb3f75847f2 in ap_process_http_sync_connection (c=0x7fb3f9292220) at http_core.c:190
#8  ap_process_http_connection (c=0x7fb3f9292220) at http_core.c:231
#9  0x00007fb3f757c890 in ap_run_process_connection (c=c@entry=0x7fb3f9292220) at connection.c:41
#10 0x00007fb3f757cc78 in ap_process_connection (c=c@entry=0x7fb3f9292220, csd=<optimized out>) at connection.c:202
#11 0x00007fb3ecf4d80f in child_main (child_num_arg=child_num_arg@entry=0) at prefork.c:707
#12 0x00007fb3ecf4da55 in make_child (s=0x7fb3f8f57340, slot=0) at prefork.c:810
#13 0x00007fb3ecf4e6ee in perform_idle_server_maintenance (p=<optimized out>) at prefork.c:912
#14 prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at prefork.c:1100
#15 0x00007fb3f75595be in ap_run_mpm (pconf=pconf@entry=0x7fb3f8f2e158, plog=0x7fb3f8f5b378, s=0x7fb3f8f57340) at mpm_common.c:96
#16 0x00007fb3f7552b46 in main (argc=2, argv=0x7ffdb10315f8) at main.c:777


~~~~~~~~~~/usr/src/debug/httpd-2.4.6/modules/ssl/ssl_engine_kernel.c  ~~~~~


            /* Toggle the renegotiation state to allow the new
             * handshake to proceed. */
            sslconn->reneg_state = RENEG_ALLOW;

            SSL_renegotiate(ssl);           <---------------line 782
            SSL_do_handshake(ssl);

            if (SSL_get_state(ssl) != SSL_ST_OK) {
                ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(02225)
                              "Re-negotiation request failed");
                ssl_log_ssl_error(SSLLOG_MARK, APLOG_ERR, r->server);

                r->connection->keepalive = AP_CONN_CLOSE;
                return HTTP_FORBIDDEN;
            }

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




Version-Release number of selected component (if applicable):

mod_ssl-2.4.6-40.el7_2.4.x86_64


How reproducible:
Sometimes

Steps to Reproduce:

Unsure


Additional info:

Look like this upstream bug is a match and will need to be backported: 

https://bz.apache.org/bugzilla/show_bug.cgi?id=57334

Comment 5 Luboš Uhliarik 2017-03-10 10:38:12 UTC
*** Bug 1324519 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2017-08-01 21:36:44 UTC
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, 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/RHBA-2017:2175