Bug 712762 (CVE-2011-2473)

Summary: CVE-2011-2473 oprofile: do_dump_data function symlink attack via opd_pipe
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: wcohen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-29 10:41:55 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: 701504, 701505, 701506, 701507, 701508    
Bug Blocks: 711681    

Description Huzaifa S. Sidhpurwala 2011-06-13 03:59:00 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2011-2473 to
the following vulnerability:

Name: CVE-2011-2473
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2473
Assigned: 20110609
Reference: URL:http://openwall.com/lists/oss-security/2011/05/03/1
Reference: URL:http://openwall.com/lists/oss-security/2011/05/10/6
Reference: URL:http://openwall.com/lists/oss-security/2011/05/10/7
Reference: URL:http://openwall.com/lists/oss-security/2011/05/11/1
Reference: CONFIRM:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624212
Reference: DEBIAN:DSA-2254
Reference: URL:http://www.debian.org/security/2011/dsa-2254

The do_dump_data function in utils/opcontrol in OProfile 0.9.6 and
earlier might allow local users to create or overwrite arbitrary files
via a crafted --session-dir argument in conjunction with a symlink
attack on the opd_pipe file, a different vulnerability than
CVE-2011-1760.

Comment 2 Tomas Hoger 2011-06-15 09:45:02 UTC
The fix that was committed upstream is:
http://oprofile.git.sourceforge.net/git/gitweb.cgi?p=oprofile/oprofile;a=commitdiff;h=718de99bbea1e912cea175522fb1b86c72db8de9

It should be noted that this fix does not completely address this issue.  There's still a race condition, which may allow attacker to replace pipe file with a symlink after the opd_pipe type was checked.

Comment 5 Huzaifa S. Sidhpurwala 2011-07-29 10:36:35 UTC
Statement:

Red Hat currently does not plan to address this issue. For details refer to:
https://bugzilla.redhat.com/show_bug.cgi?id=700883#c18