FreeBSD FStatFS Syscall Race Condition Vulnerability
BID:4040
Info
FreeBSD FStatFS Syscall Race Condition Vulnerability
| Bugtraq ID: | 4040 |
| Class: | Race Condition Error |
| CVE: | |
| Remote: | No |
| Local: | Yes |
| Published: | Feb 06 2002 12:00AM |
| Updated: | Feb 06 2002 12:00AM |
| Credit: | This vulnerability was discovered by Stefan Esser <[email protected]>. |
| Vulnerable: |
FreeBSD FreeBSD 4.5 FreeBSD FreeBSD 4.4 FreeBSD FreeBSD 4.3 FreeBSD FreeBSD 4.2 FreeBSD FreeBSD 4.1.1 FreeBSD FreeBSD 4.1 |
| Not Vulnerable: | |
Discussion
FreeBSD FStatFS Syscall Race Condition Vulnerability
FreeBSD is a freely available, open source variant of the UNIX Operating System. It is distributed and maintained by the FreeBSD Project.
A problem in the fstatfs syscall could result in a kernel panic due to a race condition. Between the time the fstatfs system call and the access of the file, it is possible to remove the file. Removing the file would cause the file descriptor allocated to become invalid. This could result in the system becoming unstable, and potentially crashing.
FreeBSD is a freely available, open source variant of the UNIX Operating System. It is distributed and maintained by the FreeBSD Project.
A problem in the fstatfs syscall could result in a kernel panic due to a race condition. Between the time the fstatfs system call and the access of the file, it is possible to remove the file. Removing the file would cause the file descriptor allocated to become invalid. This could result in the system becoming unstable, and potentially crashing.
Exploit / POC
FreeBSD FStatFS Syscall Race Condition Vulnerability
Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
Solution / Fix
FreeBSD FStatFS Syscall Race Condition Vulnerability
Solution:
A patch is available:
FreeBSD FreeBSD 4.1
FreeBSD FreeBSD 4.1.1
FreeBSD FreeBSD 4.2
FreeBSD FreeBSD 4.3
FreeBSD FreeBSD 4.4
FreeBSD FreeBSD 4.5
Solution:
A patch is available:
FreeBSD FreeBSD 4.1
-
FreeBSD fstatfs.patch
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-02:09/fstatfs.patch
FreeBSD FreeBSD 4.1.1
-
FreeBSD fstatfs.patch
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-02:09/fstatfs.patch
FreeBSD FreeBSD 4.2
-
FreeBSD fstatfs.patch
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-02:09/fstatfs.patch
FreeBSD FreeBSD 4.3
-
FreeBSD fstatfs.patch
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-02:09/fstatfs.patch
FreeBSD FreeBSD 4.4
-
FreeBSD fstatfs.patch
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-02:09/fstatfs.patch
FreeBSD FreeBSD 4.5
-
FreeBSD fstatfs.patch
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-02:09/fstatfs.patch
References
FreeBSD FStatFS Syscall Race Condition Vulnerability
References:
References: