vendor:
Android
by:
Google
7.8
CVSS
HIGH
Privilege Escalation
264
CWE
Product Name: Android
Affected Version From: Android 4.14
Affected Version To: Android 8.1.0
Patch Exists: YES
Related CWE: N/A
CPE: o:google:android
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Android
2018
Android sdcardfs Vulnerability
Android used to use a FUSE filesystem to emulate external storage, but nowadays an in-kernel filesystem called 'sdcardfs' is used instead. In sdcardfs_create() and sdcardfs_mkdir(), the following code is used to temporarily override the umask while calling into the lower filesystem: 'temporarily change umask for lower fs write', however, this is wrong and the umask should be restored before calling into the lower filesystem.
Mitigation:
Restore the umask before calling into the lower filesystem.