Bug 1189958

Summary: Stack smashing while using a lot of connections
Product: [Fedora] Fedora EPEL Reporter: joe
Component: fcgiAssignee: Till Maas <opensource>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: carnil, cweyl, i, kdreyer, opensource
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fcgi-2.4.0-26.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-14 02:51:51 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: 1190294    

Description joe 2015-02-06 00:38:12 UTC
A stack-smashing bug for fcgi was reported to Ubuntu and subsequently patched in both Ubuntu and Debian.

According to the bug report, if more than 1024 connections are received, a segfault can occur.

A patch is provided with the bug reports:

https://bugs.launchpad.net/ubuntu/+source/libfcgi/+bug/933417

and the report at debian:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681591

Comment 1 Fedora Update System 2015-02-06 13:02:02 UTC
fcgi-2.4.0-26.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/fcgi-2.4.0-26.fc21

Comment 2 Fedora Update System 2015-02-06 13:02:08 UTC
fcgi-2.4.0-26.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/fcgi-2.4.0-26.fc20

Comment 3 Fedora Update System 2015-02-06 13:02:13 UTC
fcgi-2.4.0-12.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/fcgi-2.4.0-12.el6

Comment 4 Fedora Update System 2015-02-06 13:02:20 UTC
fcgi-2.4.0-13.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/fcgi-2.4.0-13.el5

Comment 5 Fedora Update System 2015-02-06 13:02:26 UTC
fcgi-2.4.0-25.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/fcgi-2.4.0-25.el7

Comment 6 Fedora Update System 2015-02-06 20:47:03 UTC
Package fcgi-2.4.0-25.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing fcgi-2.4.0-25.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-0650/fcgi-2.4.0-25.el7
then log in and leave karma (feedback).

Comment 7 joe 2015-02-06 21:52:46 UTC
I have a PoC that reproduces the segfault on CentOS 7 and I have confirmed that after upgrading to fcgi-2.4.0-25.el7, the segfault stops.

Not sure if it's the best idea to post the PoC here, so please contact me directly and I will be happy to provide details.

Comment 8 Christopher Meng 2015-02-07 07:57:36 UTC
(In reply to joe from comment #7)
> I have a PoC that reproduces the segfault on CentOS 7 and I have confirmed
> that after upgrading to fcgi-2.4.0-25.el7, the segfault stops.
> 
> Not sure if it's the best idea to post the PoC here, so please contact me
> directly and I will be happy to provide details.

Please cc me if Till needs it, or send me directly.

Comment 9 Fedora Update System 2015-02-14 02:51:51 UTC
fcgi-2.4.0-25.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-02-15 20:40:24 UTC
fcgi-2.4.0-12.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-02-15 20:40:33 UTC
fcgi-2.4.0-13.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2015-04-30 11:46:42 UTC
fcgi-2.4.0-26.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-04-30 11:48:23 UTC
fcgi-2.4.0-26.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.