Bug 502174 (CVE-2009-1753)

Summary: CVE-2009-1753 Coccinelle: Insecure /tmp file use
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: rjones
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://packages.qa.debian.org/c/coccinelle/news/20090502T001704Z.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-21 23:05: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:
Attachments:
Description Flags
Patch extracted from Debian counterpart (coccinelle_0.1.7.deb-3.diff.gz ) none

Description Jan Lieskovsky 2009-05-22 10:44:27 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2009-1753 to
the following vulnerability:

Coccinelle 0.1.7 allows local users to overwrite arbitrary files via a
symlink attack on an unspecified "result file." 

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1753
http://www.openwall.com/lists/oss-security/2009/05/06/2
http://packages.qa.debian.org/c/coccinelle/news/20090502T001704Z.html
http://packages.debian.org/changelogs/pool/main/c/coccinelle/coccinelle_0.1.7.deb-3/changelog
http://www.securityfocus.com/bid/34848
http://secunia.com/advisories/35012

Comment 1 Jan Lieskovsky 2009-05-22 10:46:34 UTC
Created attachment 345076 [details]
Patch extracted from Debian counterpart (coccinelle_0.1.7.deb-3.diff.gz )

Url the coccinelle_0.1.7.deb-3.diff.gz was retrieved from:

http://mirror.aarnet.edu.au/debian/pool/main/c/coccinelle/

Comment 2 Richard W.M. Jones 2009-05-22 10:54:52 UTC
I'll push out an updated build now.

Comment 3 Richard W.M. Jones 2009-05-22 10:59:28 UTC
BTW, I think that patch is totally bogus.  I'll have a
chat with upstream & Debian devs about this.

Comment 4 Jan Lieskovsky 2009-05-22 11:19:08 UTC
Yeah, from quick look at the patch, looks like it only "comments out" the 
relevant part. Need to admit, don't understand the *.ml syntax :(.

Comment 5 Richard W.M. Jones 2009-05-22 11:24:44 UTC
I've chatted with a Debian developer, and we agree
that the patch is 'correct', in that it fixes the
vulnerability, by just chopping out that bit of
functionality.

So I'm going to go with the patch, and let upstream
come up with a real fix that includes the functionality
(saving intermediate files in /tmp in a safe way).

Comment 6 Fedora Update System 2009-05-22 12:05:31 UTC
coccinelle-0.1.8-1.fc11.3 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/coccinelle-0.1.8-1.fc11.3

Comment 7 Richard W.M. Jones 2009-05-22 12:09:11 UTC
I've requested that this gets pushed straight into
the F11 builds.

https://fedorahosted.org/rel-eng/ticket/1867

Comment 8 Fedora Update System 2009-06-16 02:44:45 UTC
coccinelle-0.1.8-1.fc10.3 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.