Android vulnerabilities
6 real-world CVEs in Android. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2021-0920medium 6.42021
AF_UNIX MSG_PEEK garbage-collection race
A MSG_PEEK receive could duplicate SCM_RIGHTS file references without synchronizing with AF_UNIX garbage collection, allowing GC to free a message buffer that the peeking receiver still used.
- CVE-2020-0022high 8.82020
BlueFrag: Android Bluetooth reassembly length underflow
An overlong continuation fragment can make a truncated packet length smaller than its header offset, so subtraction becomes a huge copy length.
- CVE-2019-2215high 7.82019
Bad Binder: freed binder thread still on an epoll waitlist
A device thread hands its wait queue to epoll, then a thread-exit path frees the thread without removing that registration, so epoll cleanup later dereferences freed kernel memory.
- CVE-2017-13156high 7.82017
Janus: Android APK signature bypass by dual interpretation
A file can remain a valid JAR-v1-signed APK to the verifier while a prepended DEX body makes the runtime execute different bytes.
- CVE-2017-0781high 8.82017
BlueBorne: Android BNEP pending-packet heap overflow
The Android BNEP parser allocates only the remaining payload length but copies that payload after an unallocated header-sized offset, placing the entire copy beyond the heap object.
- CVE-2015-1538critical 10.02015
Stagefright: libstagefright sample-table entry-count integer overflow
A media sample-table atom carries a 32-bit entry count; a nearby size check and the array allocation both multiply that count by the entry size, so a huge count wraps 32-bit arithmetic and a tiny buffer is allocated, then filled far past its end.