SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information

Report a Vulnerability

 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

Vulnerability Note VU#176888

Linux kernel contains race condition via ptrace/procfs/execve

Overview

Unprivileged local users can use the ptrace function to take advantage of a privileged program, while that program is performing a privileged operation, to gain privileged access.

I. Description

Ptrace is a function, which is often used for debugging, that allows one process to attach to another and monitor or modify its execution state and memory. This vulnerability exploits a race condition that allows an attacker to use ptrace, or similar function (procfs), to attach to and, thus, modify a running setuid process. This enables the attacker to execute arbitratry code with elevated (root) privilege. Linux kernel version 2.2.18 or before are vulnerable to this flaw. Any Linux product that is dependent on this kernel is, therefore, vulnerable.

II. Impact

Unprivileged local users can gain privileged (root) access.

III. Solution

Upgrade the Linux kernel to version 2.2.19 or later. The release notes for Linux 2.2.19 at http://www.linux.org.uk/VERSION/relnotes.2219.html describe the security fix. For users of specific Linux vendors, use the vendor-specific upgrades for convenience and consistency.

Systems Affected

VendorStatusDate NotifiedDate Updated
CalderaVulnerable20-May-2002
ConectivaVulnerable20-May-2002
DebianVulnerable20-May-2002
ImmunixVulnerable20-May-2002
MandrakeSoftVulnerable20-May-2002
NetBSDVulnerable20-May-2002
Progency Linux SystemsVulnerable20-May-2002
Red HatVulnerable20-May-2002
SlackwareUnknown20-May-2002
SuSEVulnerable20-May-2002
TrustixVulnerable20-May-2002

References

https://www.kb.cert.org/vuls/id/698640
http://www.linux.org.uk/VERSION/relnotes.2219.html
http://www.securityfocus.com/archive/1/171708
http://www.ciac.org/ciac/bulletins/l-076.shtml

Credit

Thanks to Wojciech Purczynski for discovering this vulnerability.

This document was written by Andrew P. Moore.

Other Information

Date Public:2001-03-26
Date First Published:2001-07-18
Date Last Updated:2002-05-20
CERT Advisory: 
CVE-ID(s):CVE-2001-0317
NVD-ID(s):CVE-2001-0317
US-CERT Technical Alerts: 
Severity Metric:25.99
Document Revision:29

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Copyright 2001 Carnegie Mellon University
Disclaimers and copyright information
Get a PDF Reader