Bug 1389535 - Segmentation fault in SSL_renegotiate
Summary: Segmentation fault in SSL_renegotiate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: httpd
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: Jan Houska
URL:
Whiteboard:
: 1324519 (view as bug list)
Depends On:
Blocks: 1298243
TreeView+ depends on / blocked
 
Reported: 2016-10-27 20:08 UTC by Hung
Modified: 2020-07-16 08:58 UTC (History)
5 users (show)

Fixed In Version: httpd-2.4.6-49.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 21:36:44 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2175 0 normal SHIPPED_LIVE httpd bug fix update 2017-08-01 18:40:47 UTC

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


Note You need to log in before you can comment on or make changes to this bug.