Bug 1542817 (CVE-2018-6758)

Summary: CVE-2018-6758 uwsgi: Stack-based buffer overflow in core/utils.c:uwsgi_expand_path() can lead to crash and potential code execution
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: carl, kad, tadej.j
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-09 04:22:04 UTC Type: ---
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: 1542818, 1542819    
Bug Blocks:    

Description Sam Fowler 2018-02-07 04:49:13 UTC
The uwsgi_expand_path() function in core/utils.c in Unbit uWSGI through 2.0.15 has a stack-based buffer overflow via a large directory length. A remote attacker could exploit this to cause a crash or potential arbitrary code execution.


External References:

http://lists.unbit.it/pipermail/uwsgi/2018-February/008835.html


Upstream Fix:

https://github.com/unbit/uwsgi/commit/cb4636f7c0af2e97a4eef7a3cdcbd85a71247bfe

Comment 1 Sam Fowler 2018-02-07 04:49:44 UTC
Created uwsgi tracking bugs for this issue:

Affects: epel-all [bug 1542819]
Affects: fedora-all [bug 1542818]