Vulnerability Note VU#702452

Qualcomm Android OS kernel privilege escalation and denial of service vulnerabilites

Original Release date: 07 Dec 2012 | Last revised: 14 Aug 2014

Overview

Android OS kernels running on certain Qualcomm devices contain multiple vulnerabilities which could allow an attacker to cause privilege escalation or Denial of Service (DoS).

Description

The Qualcomm Innovation Center, Inc. advisory states:

Summary:
A locally installed application can cause privilege escalation or Denial of Service (DoS) by passing a specially crafted input to diagchar_ioctl call of Diagnostics (DIAG) kernel mode driver for Android. The involved CVE IDs are CVE-2012-4220 (untrusted pointer dereference), CVE-2012-4221 (integer overflow). A patch which can be applied to Gingerbread, Ice Cream Sandwich and Jelly Bean source is made available from the location below.

A locally installed application can cause DoS by passing a specially crafted input to kgsl_ioctl call of Graphics KGSL kernel mode driver for Android. The involved CVE ID is CVE-2012-4222 (null pointer dereference). A patch which can be applied to Gingerbread, Ice Cream Sandwich and Jelly Bean source is made available from the location below.

Affected version:
All Android releases from CAF prior to November 15, 2012 using Linux kernel from the following heads: msm-3.4, msm-3.0, jb_*, ics_*, gingerbread_*


Note: Permission changes in ICS and Jelly Bean that restrict /dev/diag access to qcom_diag group mitigate CVE-2012-4220 and CVE-2012-4221.

Impact

By convincing a user to install a specially crafted android application, a remote attacker may be able to cause a privilege escalation or Denial of Service (DoS) allowing them to gain control of the affected device.

Solution

Update

The vendor states that these vulnerabilities have been addressed in PATCH_17010_jweEF843feG. Users are advised to apply the patch to affected devices. Fix for CVE-2012-4220 and CVE-2012-4221 in msm-3.4 can be found here. Fix for CVE-2012-4222 in msm-3.4 can be found here.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
QUALCOMM IncorporatedAffected01 Nov 201230 Nov 2012
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base 6.6 AV:L/AC:M/Au:S/C:C/I:C/A:C
Temporal 5.2 E:POC/RL:OF/RC:C
Environmental 3.9 CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

Credit

Thanks to giantpune@gmail.com for reporting this vulnerability.

This document was written by Michael Orlando.

Other Information

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.