libhevc HEVC Video Decoder Out-Of-Bounds Read Information Disclosure Vulnerability
The libhevc HEVC decoder on Android fails to properly validate user-supplied data when parsing SEI payloads, causing a read past the end of an allocated buffer. A remote attacker could disclose sensitive information and, by combining this with other vulnerabilities, potentially execute arbitrary code in the context of the current process.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Google Android. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the SEI payload parser trusts length or size fields from the input without checking them against the actual buffer bounds, leading to an out-of-bounds read.
Impact
A remote attacker could disclose sensitive information and, in conjunction with other vulnerabilities, could execute arbitrary code in the context of the current process; user interaction is required.
What the attacker needed
Victim visits a malicious page; or opens a malicious file
The fix
The vendor issued an update to correct the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
HEVC is a video compression format, and SEI payloads are small pieces of extra data embedded in a video stream. The decoder did not check that the data it was reading stayed inside the memory it had reserved, so it could read past the end of that buffer. That can leak information from memory and, if chained with another bug, may let an attacker run their own code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.