vendor:
iOS
by:
Anonymous
8.8
CVSS
HIGH
Out-of-Bounds Read/Write
119
CWE
Product Name: iOS
Affected Version From: iOS 13
Affected Version To: iOS 13
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: iOS, macOS
2020
Shared Memory Issues in AGXCommandQueue
The IOAccelKernelCommand contains an 8-byte header consisting of a command type and size, followed by structured data specific to the type of command. When verifying that the size of the IOAccelKernelCommand has enough data for the specific command type, it appears that the check excludes the size of the 8-byte header, meaning that processSegmentKernelCommand() will parse up to 8 bytes of out-of-bounds data. This makes it possible to overwrite the first 1-8 bytes of the subsequent page of memory with timestamp data.
Mitigation:
Ensure that all size checks are performed correctly and that all data is within the bounds of the allocated memory.