Uncontrolled memory mapping in Camera driver (cve-2013-2595)

Source: Internet
Author: User
Tags cve

/*

This article is prepared by Mo Gray Ash, reproduced please indicate the source.

Mo Ash Gray Email:[email protected]

*/


1 Vulnerability Description

The vulnerability arises mainly because the camera driver provides several interfaces for user-space calls. User space can use system call functions such as IOCTL or mmap to affect the camera driver. Hackers can easily use pre-constructed parameters to map physical memory to user space and elevate permissions.


2. Impact Equipment

Most of the Linux kernel android systems used before May 1, 2013


3.PoC

/* * This program is free software:you can redistribute it and/or modify * it under the terms of the GNU general public License as published by * The free software Foundation, either version 3 of the License, or * (at your option) any later Version. * * This program was distributed in the hope that it'll be useful, * but without any WARRANTY;  Without even the implied warranty of * merchantability or FITNESS for A particular PURPOSE. See the * GNU general public License for more details.  * * You should has received a copy of the GNU general public License * along. If not, see 
4. Bug Fixes



5. Summary

1. The exploit is in fact similar to root exploit on Exynos (cve-2012-6422), but the method of map physical memory is different.

2. Second, the patch of the vulnerability is also very peculiar, but simply deleted the relevant vulnerability code. Estimate is a random copy of the code template caused by the vulnerability, haha.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.