PoC code for CVE-2019-14040# CVE-2019-14040
Proof-of-concept code for CVE-2019-14040
More details about the vulnerability are available [in the blog post](https://blog.zimperium.com/multiple-kernel-vulnerabilities-affecting-all-qualcomm-devices).
If you have any questions, you are welcome to DM me on Twitter ([@tamir_zb](https://twitter.com/tamir_zb)).
## Build & Run
In order to build, run Android NDK's `ndk-build`.
In order to run the PoC, run the binary using the following command:
LD_PRELOAD=libQSEEComAPI.so ./qseecom_uaf
Make sure to run it from a context where `/dev/qseecom` is accessible.
## Result
Running this on a Pixel 3 running Android 9 causes the kernel to panic. In
theory this PoC should work on other Android devices and versions without any
modifications but I have not tested it.
[4.0K] /data/pocs/769b19408b031530674817a5b7fb51aa06f48fc1
├── [4.0K] jni
│ ├── [ 263] Android.mk
│ ├── [6.3K] ion.h
│ ├── [6.0K] msm_ion.h
│ ├── [ 10K] QSEEComAPI.h
│ ├── [ 11K] qseecom.h
│ └── [5.9K] qseecom_uaf.c
├── [ 34K] LICENSE
└── [ 793] README.md
1 directory, 8 files