# The code that wasn't there: Reading memory on an Android device by accident

DevFeed: [The code that wasn't there: Reading memory on an Android device by accident](<https://devfeed.tech/articles/the-code-that-wasn-t-there-reading-memory-on-an-android-device-by-accident-68085.md>)

Original publisher: [Read original article](<https://github.blog/security/vulnerability-research/the-code-that-wasnt-there-reading-memory-on-an-android-device-by-accident/>)

Author: Man Yue Mo

Published: 2023-02-23T17:00:00Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Android Security](<https://devfeed.tech/topics/android-security.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Nitro Isolation Engine](<https://devfeed.tech/topics/nitro-isolation-engine.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [cpu-cache](<https://devfeed.tech/tags/cpu-cache.md>), [cve](<https://devfeed.tech/tags/cve.md>), [github-security-lab](<https://devfeed.tech/tags/github-security-lab.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [memory](<https://devfeed.tech/tags/memory.md>), [qualcomm](<https://devfeed.tech/tags/qualcomm.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerability-research](<https://devfeed.tech/tags/vulnerability-research.md>)

## AI overview

The article examines CVE-2022-25664, a Qualcomm Adreno GPU vulnerability that allows a malicious Android app to leak stale user-space and kernel memory. It explains how an unsynchronized CPU cache and physical memory view enables the leak, how kernel memory disclosures can produce a KASLR bypass, and that the issue was publicly disclosed and patched in 2022.

## Source excerpt

CVE-2022-25664, a vulnerability in the Qualcomm Adreno GPU, can be used to leak large amounts of information to a malicious Android application. Learn more about how the vulnerability can be used to leak information in both the user space and kernel space level of pages, and how the GitHub Security Lab used the kernel space information leak to construct a KASLR bypass.