BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000673 [uClibc] Security minor always 01-30-06 19:20 02-03-06 18:21
Reporter rfelker View Status public  
Assigned To uClibc
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000673: race condition in opendir
Description Due to a race condition, a malicious user can cause opendir to hang indefinitely by replacing a directory with [a symbolic link to] a fifo or other strange device. This could be used as DoS against system processes that traverse the directory tree. The race condition is between the call to stat() (using the file's name) and open (again using the name). Switching to nonblocking open followed by fstat might fix the problem. The safest solution is to use the Linux-specific O_DIRECTORY option to open to cause it to fail on nondirectories.
Additional Information
Attached Files

- Relationships

- Notes
(0001033)
vapier
02-03-06 18:21

updated opendir() to use O_DIRECTORY thus no need for the stat logic

also added a nonblocking flag as well
 

- Issue History
Date Modified Username Field Change
01-30-06 19:20 rfelker New Issue
01-30-06 19:20 rfelker Status new => assigned
01-30-06 19:20 rfelker Assigned To  => uClibc
02-03-06 18:21 vapier Note Added: 0001033
02-03-06 18:21 vapier Status assigned => closed
02-03-06 18:21 vapier Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker