Bug 545439 (CVE-2009-4135)

Summary: CVE-2009-4135 coreutils: Unsafe temporary directory use in "distcheck" rule
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bressers, kreilly, meyering, ovasik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=ae034822c535fa5
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-26 07:40:31 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: 546692, 546705, 549869    
Bug Blocks:    

Description Jan Lieskovsky 2009-12-08 15:35:43 UTC
The "distcheck" Makefile rule in coreutils 5.2.1 through to 8.1
did use unsafe (predictable) temporary directory location for
performing own tasks. This might allow local attacker to conduct
symlink attacks under certain circumstances.

Upstream patch:
---------------
http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=ae034822c535fa5

Credit:
-------
Jim Meyering

CVE Request:
------------
http://www.openwall.com/lists/oss-security/2009/12/08/4

Comment 1 Jim Meyering 2009-12-08 15:40:18 UTC
Note that the offending rule is run as part of "make distcheck".

Comment 2 Jan Lieskovsky 2009-12-08 15:42:15 UTC
Thanks for the catch Jim, substituted "my-distcheck" for "distcheck".

Comment 4 Jan Lieskovsky 2009-12-09 14:50:12 UTC
This is CVE-2009-4135.

Comment 7 Fedora Update System 2009-12-11 19:07:56 UTC
coreutils-7.6-8.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/coreutils-7.6-8.fc12

Comment 8 Fedora Update System 2009-12-11 19:08:21 UTC
coreutils-7.2-5.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/coreutils-7.2-5.fc11

Comment 9 Josh Bressers 2009-12-15 21:16:42 UTC
The Red Hat Security Response Team has rated this issue as having low security impact, a future update may address this flaw.  More information regarding issue severity can be found here: http://www.redhat.com/security/updates/classification/

Comment 10 Fedora Update System 2009-12-18 04:24:13 UTC
coreutils-7.2-5.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2009-12-18 04:28:30 UTC
coreutils-7.6-8.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Tomas Hoger 2010-02-26 07:40:31 UTC
Closing this nextrelease as it was addressed in Fedora coreutils makefiles and will be fixed in Red Hat Enterprise Linux 6 too.

This flaw is in the distcheck rule, used by coreutils upstream developers to prepare and check distribution source tarballs.  It does not affect users using binary RPMs or rebuilding source RPMs (distcheck target is not used during the SRPM build).