CVE-2021-0510: Heap Buffer Overflow in CryptoPlugin.cpp
Summary
CVE-2021-0510: In decrypt_1_2 of CryptoPlugin.cpp, there is a possible out of bounds write due to an integer overflow. Affects platform/hardware/interfaces across 4 version ranges.
>= 8.1:0, < 8.1:2021-06-01
>= 9:0, < 9:2021-06-01
>= 10:0, < 10:2021-06-01
>= 11:0, < 11:2021-06-01
Fixed in 8.1:2021-06-01. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The package under scrutiny is 'platform/hardware/interfaces' in the Android ecosystem. This package provides interfaces for hardware components in the Android platform. It is responsible for handling various functionalities related to hardware integration, including DRM (Digital Rights Management) for media playback. The vulnerability affects the 'CryptoPlugin.cpp' file in the 'clearkey' plugin of the MediaDRM component.
Vulnerability Detail
The vulnerability exists in the 'decrypt_1_2' function of 'CryptoPlugin.cpp'. It is caused by an integer overflow, leading to a possible out-of-bounds write. An attacker can exploit this vulnerability to escalate their privileges locally without requiring additional execution privileges. The vulnerability does not require user interaction for exploitation.
How To Fix
Minimum fixed version
8.1:2021-06-01
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
No specific workaround has been provided for this vulnerability.
Conclusion
In conclusion, the 'CryptoPlugin.cpp' file in the 'clearkey' plugin of the 'platform/hardware/interfaces' package in the Android ecosystem is vulnerable to a heap buffer overflow. This vulnerability can be exploited to escalate privileges locally without requiring additional execution privileges. It is recommended to update the package to the fixed version released on June 1, 2021, or any subsequent version. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for platform/hardware/interfaces →
FAQ
The vulnerability allows for local privilege escalation, potentially enabling an attacker to gain elevated privileges on the affected system.
No, user interaction is not required for exploitation of this vulnerability.
The vulnerability was introduced in version 8.1 and affects all subsequent versions up to version 11.
No known exploit for this vulnerability has been reported at the time of this report.
There is no evidence of active exploitation of this vulnerability at the time of this report.
Related vulnerabilities
Recent vulnerabilities recorded for platform/hardware/interfaces.