Bug 1379630 (CVE-2016-7543)

Summary: CVE-2016-7543 bash: Specially crafted SHELLOPTS+PS4 variables allows command substitution
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: admiller, carnil, fhirtz, kdudka, mkyral, sardella, slawomir, svashisht
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: bash 4.4 Doc Type: If docs needed, set a value
Doc Text:
An arbitrary command injection flaw was found in the way bash processed the SHELLOPTS and PS4 environment variables. A local, authenticated attacker could use this flaw to exploit poorly written setuid programs to elevate their privileges under certain circumstances.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:59:08 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: 1379634, 1400793, 1426026    
Bug Blocks: 1379635, 1386080, 1415638    

Description Adam Mariš 2016-09-27 09:23:42 UTC
Shells running as root inherited PS4 from the environment, allowing PS4 expansion performing command substitution. Local attacker could gain arbitrary code execution via bogus setuid binaries using system()/popen() by specially crafting SHELLOPTS+PS4 environment variables.

Public announcement:

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

Comment 1 Adam Mariš 2016-09-27 09:24:44 UTC
Created bash tracking bugs for this issue:

Affects: fedora-all [bug 1379634]

Comment 4 Dhiru Kholia 2016-10-05 07:34:05 UTC
Upstream patch (for bash-4.3):

http://lists.gnu.org/archive/html/bug-bash/2016-10/msg00009.html

Comment 11 errata-xmlrpc 2017-03-21 11:14:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2017:0725 https://rhn.redhat.com/errata/RHSA-2017-0725.html

Comment 12 errata-xmlrpc 2017-08-01 20:33:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:1931 https://access.redhat.com/errata/RHSA-2017:1931