Professional Webmasters Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

FreeBSD <= 6.1 Local Root Vulnerability

Go down

FreeBSD <= 6.1 Local Root Vulnerability Empty FreeBSD <= 6.1 Local Root Vulnerability

Post  andry Fri Oct 29, 2010 7:02 am

FreeBSD <= 6.1 suffers from classical check/use race condition on SMP
systems in kevent() syscall, leading to kernel mode NULL pointer
dereference. It can be triggered by spawning two threads:
1st thread looping on open() and close() syscalls, and the 2nd thread
looping on kevent(), trying to add possibly invalid filedescriptor.

The bug was fixed in 6.1-STABLE, just before release of 6.2-RELEASE, but
was not recognized as security vulnerability.

The following code exploits this vulnerability to run root shell:

http://www.frasunek.com/kqueue.txt
andry
andry
Moderator
Moderator

Posts : 467
Join date : 2010-05-07

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum