CVE-2009-1527

Linux Kernel < 2.6.30-rc4 - Privilege Escalation via PTRACE_ATTACH Race Condition

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2009-1527. PoCs published by s0m3b0dy.

AI-analyzed exploit summary This exploit leverages a ptrace_attach vulnerability (CVE-2009-1527) to inject shellcode into a SUID binary (gpasswd) for local privilege escalation. It writes a SUID root shell to /tmp/.exp and executes it.

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by s0m3b0dy · clocallinux
https://www.exploit-db.com/exploits/8673

This exploit leverages a ptrace_attach vulnerability (CVE-2009-1527) to inject shellcode into a SUID binary (gpasswd) for local privilege escalation. It writes a SUID root shell to /tmp/.exp and executes it.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux kernel 2.6.29rc1 (and possibly others)
No auth needed
Prerequisites: Local access to a vulnerable Linux system · Presence of a SUID binary like gpasswd
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (11)

Core 11
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/50293
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/503610/100/0/threaded
Broken Link vdb-entry x_refsource_osvdb
http://www.osvdb.org/54188
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/35120
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2009/05/04/2
Not Applicable vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2009/1236
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/34799
Broken Link x_refsource_confirm
http://wiki.rpath.com/Advisories:rPSA-2009-0084
Broken Link third-party-advisory x_refsource_secunia
http://secunia.com/advisories/34977

Scores

EPSS 0.0049
EPSS Percentile 38.2%

Details

CWE
CWE-362
Status published
Products (2)
linux/linux_kernel 2.6.30 (4 CPE variants)
linux/linux_kernel < 2.6.29
Published May 05, 2009
Tracked Since Feb 18, 2026