search menu icon-carat-right cmu-wordmark

CERT Coordination Center

ptrace contains vulnerability allowing for local root compromise

Vulnerability Note VU#628849

Original Release Date: 2004-04-16 | Last Revised: 2004-04-30

Overview

A vulnerability in the Linux 2.2 and 2.4 distributions of ptrace() may permit a local attacker to gain elevated privileges.

Description

The Linux 2.2 and 2.4 kernels contained a flaw in ptrace(). This vulnerability may permit a local user to have the kernel spawn a child process. From the man page:

The ptrace system call provides a means by which a parent process may observe and control the execution of another process, and examine and change its core image and registers. It is primarily used to implement breakpoint debugging and system call tracing.


If the kernel is built with modules and kernel module loader enabled and /proc/sys/kernel/modprobe contains the path to a valid executable and ptrace() calls are not blocked, then a local user may be able to exploit this vulnerability to gain root privileges to the system.

The CERT/CC has seen active exploitation of this vulnerability.

Impact

A local user can exploit this vulnerability to gain elevated privileges, typically root.

Solution

This vulnerability has been resolved in Linux 2.2.25 and 2.4.21. Various vendors have also released advisories and updates. Please see the your vendor's advisory for more details.

Vendor Information

628849
 

View all 11 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

Thanks to Andrzej Szombierski for reporting this vulnerability.

This document was written by Jason A Rafail and is based on information provided by Andrzej Szombierski.

Other Information

CVE IDs: CVE-2003-0127
Severity Metric: 14.25
Date Public: 2003-03-17
Date First Published: 2004-04-16
Date Last Updated: 2004-04-30 18:44 UTC
Document Revision: 9

Sponsored by CISA.