Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-39623 PoC — Google Android 缓冲区错误漏洞

Source
Associated Vulnerability
Title:Google Android 缓冲区错误漏洞 (CVE-2021-39623)
Description:In doRead of SimpleDecodingSource.cpp, there is a possible out of bounds write due to an incorrect bounds check. This could lead to remote escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-10 Android-11 Android-12 Android-9Android ID: A-194105348
Readme
# CVE-2021-39623

Forcedentry state of the art exploit (as I read) used by NSO made it big. Libstagefright (Media Framework on Android) with OOB write on the heap (with Scudo) which can possibly own your Mobile by playing an audio file, didn't. Note: Not sure if you can do RCE with it. Leave it to experts :P

Media Framework is sandboxed as I know. So you can read/write media, make lateral movements on the mobile.


Some players are not using SimpleDecodingSource

Used stagefright utlity on LineageOS, player on Andoird 11


Here is the crash/stractrace:

Andoird 11 
![image](https://user-images.githubusercontent.com/20355405/148828359-59aed243-0c0b-4067-adee-f100937603dc.png)

LineageOS 18.1

![image](https://user-images.githubusercontent.com/20355405/148826657-a3f78600-7b98-492f-840d-b636ae898a29.png)


Will upload the reproducer later on.

### Update 1

Here is the reporoducer file. GitHub limits uploads to 25 Mb and the file is 50 Mb.

https://drive.google.com/file/d/1Obg0tzDz7gcwoEffj1RWPEAR2az4J7an/view?usp=sharing

Maybe later will release generating code. But above should let you verify it and also adjust the paylods (your might need to correct CRCs)

Exploitability

Hmmm seems like you can overwrite only 4 bytes past allocated HEAP, but it crashes .... 

Don't have now rooted phone with debugger. Maybe will check later.



File Snapshot

[4.0K] /data/pocs/51f95dd026e16177613fcf58eb05c2379bf549be └── [1.3K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →