Bug 1369108 (CVE-2016-6830, CVE-2016-6831)

Summary: CVE-2016-6830 CVE-2016-6831 chicken: Buffer overflow and a memory leak in the POSIX unit's procedures process-execute and process-spawn
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: relrod
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: 2016-08-24 10:21:46 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: 1369109, 1369110    
Bug Blocks:    

Description Andrej Nemec 2016-08-22 13:48:16 UTC
A buffer overflow error was found in the POSIX unit's procedures
process-execute and process-spawn.  The code allocated a buffer
of size ARG_MAX for the argument array, and ENV_MAX for the
environment array, then copied the strings from the input lists
into that buffer *without* checking the length of the lists.

On modern Linuxen, ARG_MAX and ENV_MAX are both undefined, which
exacerbated the problem: CHICKEN would fall back to 256 for ARG_MAX
and 1024 for ENV_MAX when these were undefined.

Additionally, a memory leak existed in this code, which would be
triggered when an error is raised during argument and environment
processing (e.g., if one of the arguments wasn't a string).

References:

http://seclists.org/oss-sec/2016/q3/276

Comment 1 Andrej Nemec 2016-08-22 13:48:48 UTC
Created chicken tracking bugs for this issue:

Affects: fedora-all [bug 1369109]
Affects: epel-all [bug 1369110]

Comment 2 Rick Elrod 2016-08-24 10:21:46 UTC
Fix is in testing.