Description
Race condition in the ptrace_attach function in kernel/ptrace.c in the Linux kernel before 2.6.30-rc4 allows local users to gain privileges via a PTRACE_ATTACH ptrace call during an exec system call that is launching a setuid application, related to locking an incorrect cred_exec_mutex object.
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
- Linux Kernel 2.6.x (Gentoo 2.6.29rc1) - 'ptrace_attach' Local Privilege Escalation EDB-8673 · local · May 13, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- linux-kernel-ptraceattach-code-execution(50293) vdb-entry
- 20090516 rPSA-2009-0084-1 kernel mailing-list
- 54188 vdb-entry
- http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.30-rc4
- 35120 third-party-advisory
- [oss-security] 20090504 CVE request: kernel: ptrace_attach: fix the usage of ->cred_exec_mutex mailing-list
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=cad81bc2529ab8c62b6fdc83a1c0c7f4a87209eb
- ADV-2009-1236 vdb-entry
- 34799 vdb-entry
- http://wiki.rpath.com/Advisories:rPSA-2009-0084
- 34977 third-party-advisory