The Project Zero team at Google revealed that a commercial surveillance vendor was exploiting three zero-day security vulnerabilities in newer Samsung smartphone models to spy on people and steal user data.
The three Samsung phone vulnerabilities disclosed by Googleโs Threat Analysis Group (TAG) are CVE-2021-25337, CVE-2021-25369, and CVE-2021-25370.
When Google found exploit samples in the late 2020s, it immediately reported these vulnerabilities to Samsung, which have all been patched since by the company in its March 2021 release.
Further, the vulnerabilities, discovered in Samsungโs custom-built software of the devices, were all used together as part of an exploit chain to target Samsung phones running Android.
The chained vulnerabilities would allow the attacker to obtain kernel read and write privileges as the root user, which could eventually disclose personal data on the device.
In addition, the exploit chain targeted Samsung phones running kernel 4.14.113 with the Exynos SOC. According to Google, the models that were affected in the late 2020s were Samsungโs Galaxy S10, Galaxy A50, and Galaxy A51 and running kernel 4.14.113.
Samsung phones with Exynos SOC are primarily sold across Europe and Africa, which were likely where the targets of the surveillance were located. The exploit sample relies on both the Mali GPU driver and the DPU driver that are specific to the Exynos Samsung phones.
The three zero-day vulnerability issues that were discovered by Googleโs TAG team are:
- CVE-2021-25337 โ Arbitrary file read/write vulnerability via unprotected clipboard content provider: An improper access control in clipboard service in Samsung mobile devices allows untrusted applications to read or write certain local files.
- CVE-2021-25369 โ Potential kernel information exposure from sec_log: An improper access control vulnerability in sec_log file exposes sensitive kernel information to userspace.
- CVE-2021-25370 โ Memory corruption in Display Processing Unit (DPU) driver: An incorrect implementation handling file descriptor in dpu driver results in memory corruption leading to kernel panic.
The flaws were reportedly exploited by a malicious Android app, likely sideloaded, tricking users into installing from outside of Google Play Store. The malicious app allowed the attacker to escape the app sandbox and access the remaining of the device’s operating system. It, however, isn’t yet known what the final payload actually was.
โThe first vulnerability in this chain, the arbitrary file read and write, was the foundation of this chain, used four different times and used at least once in each step,โ Maddie Stone, a Google Project Zero security researcher, wrote in aย blog post describing the threat.
โThe Java components in Android devices donโt tend to be the most popular targets for security researchers despite it running at such a privileged level.โ
Stone further added, โAll three vulnerabilities in this chain were in the manufacturerโs custom components rather than in the AOSP platform or the Linux kernel. Itโs also interesting to note that 2 out of the 3 vulnerabilities were logic and design vulnerabilities rather than memory safety.โ
The above vulnerabilities were chained by the commercial surveillance vendor to compromise the Samsung phones.
While Google has not revealed the surveillance vendorโs name, the tech giant highlighted the similarities with other campaigns that targeted Apple and Android users in Italy and Kazakhstan, which has been linked to Italian company RCS Lab.
Stone noted that the advisories published by Samsung at that time did not mention that the vulnerabilities were being actively exploited, but it has since committed to begin disclosing when vulnerabilities are actively exploited, following in the footsteps of Apple and Google, who disclose vulnerabilities that are under attack in their security updates.
โLabeling when vulnerabilities are known to be exploited in-the-wild is important both for targeted users and for the security industry. When in-the-wild 0-days are not transparently disclosed, we are not able to use that information to further protect users, using patch analysis and variant analysis, to gain an understanding of what attackers already know,โย concludes the blog post.
โThe analysis of this exploit chain has provided us with new and important insights into how attackers are targeting Android devices. It highlights a need for more research into manufacturer specific components. It shows where we ought to do further variant analysis.โ