Bug 180723 - CVE-2006-0576 Arbitrary code execution via OProfile
Summary: CVE-2006-0576 Arbitrary code execution via OProfile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: oprofile
Version: 4.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: William Cohen
QA Contact:
URL:
Whiteboard: impact=low,reported=20060207,source=c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-09 20:56 UTC by Josh Bressers
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-20 20:01:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Josh Bressers 2006-02-09 20:56:10 UTC
Arbitrary code execution via OProfile

A bug has been discovered in OProfile's opcontrol command.  By setting
PATH to point at certain malicious scripts, it is possible to execute
arbitrary commands as root.

We don't ship opcontrol setuid, but if a user has the ability to run
opcontrol via sudo, this issue can be leveraged.

It should be noted that untrusted users should not be given sudo
access, which seriously mitigates the potential damage this issue can
cause.

http://marc.theaimsgroup.com/?l=bugtraq&m=113935237519964&w=2


This issue also affects RHEL3

Comment 1 William Cohen 2006-02-10 15:15:30 UTC
There was some discussion on the oprofile mailing list to fix this. The
resulting patch from the upstream oprofile has been backported to the RHEL4
oprofile. Should be in oprofile 0.8.1-22.

Comment 2 Josh Bressers 2006-03-01 19:53:22 UTC
Don't forget to patch this in RHEL3 as well as RHEL4.

Comment 3 William Cohen 2006-03-01 20:08:18 UTC
This patch was checked into RHEL-3 repository. Just need to submit to the build
system.


Comment 4 Josh Bressers 2006-09-20 20:01:49 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2006-0355.html


Note You need to log in before you can comment on or make changes to this bug.