Description
utils/opcontrol in OProfile 0.9.6 and earlier might allow local users to conduct eval injection attacks and gain privileges via shell metacharacters in the -e argument.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | oprofile | 0.9.6-1.1+squeeze1 | DSA-2254-2, DSA-2254-1 |
| Debian 5.0 | oprofile | 0.9.3-2+lenny1 | DSA-2254-2, DSA-2254-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- OProfile 0.9.6 - 'opcontrol' Utility 'set_event()' Local Privilege Escalation EDB-35681 · local · Apr 29, 2011 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- DSA-2254-1 oprofile - command injection Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-2254-2 oprofile - command injection Debian Security (DSA / DLA) · Mar 9, 2026
References
- [oss-security] 20110429 CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- [oss-security] 20110430 Re: CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- [oss-security] 20110510 Re: Re: CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- https://bugzilla.redhat.com/show_bug.cgi?id=700883
- [oss-security] 20110511 Re: Re: CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- 45205 third-party-advisory
- [oss-security] 20110502 Re: CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- 47652 vdb-entry
- 44790 third-party-advisory
- [oss-security] 20110503 Re: CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- [oss-security] 20110510 Re: Re: CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- USN-1166-1 vendor-advisory
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624212
- [oss-security] 20110430 Re: CVE Request -- oprofile -- Local privilege escalation via crafted opcontrol event parameter when authorized by sudo mailing-list
- DSA-2254 vendor-advisory