vendor:
by:
Google Security Research
7.5
CVSS
HIGH
Buffer Overflow
119
CWE
Product Name:
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested: Windows, Linux, Mac
Overflow in ui::PlatformCursor WebCursor::GetPlatformCursor method
There is an overflow in the ui::PlatformCursor WebCursor::GetPlatformCursor method. The issue is in the x11 implementation, but it appears to affect other platform-specific implementations as well. The buffer is allocated based on the width and height of the custom_size_, but the memcpy is performed using the size of the custom_data_. This can lead to a buffer overflow.
Mitigation:
The issue can be fixed by changing the check in WebCursor::Deserialize to prevent the issue in all platform-specific implementations.