Apple macOS KTX Image DecodeRow Out-Of-Bounds Read Information Disclosure Vulnerability
The DecodeRow function in Apple macOS mishandles crafted KTX image data, causing a read past the end of an allocated buffer. A remote attacker could disclose sensitive information by getting a victim to open a malicious image or visit a malicious page, and could combine this with other flaws to execute code.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Apple macOS. 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 DecodeRow function does not properly validate the dimensions or data length in the KTX image before reading, leading to an out-of-bounds read.
Impact
An attacker could disclose sensitive information and, in conjunction with other vulnerabilities, execute arbitrary code in the context of the current process; user interaction is required.
What the attacker needed
Victim opens a malicious KTX image; or victim visits a malicious page
The fix
Apple issued an update to correct this 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.
A KTX image is a file format for storing texture data. The software that reads these images has a bug: when it processes a specially made file, it reads memory beyond the area it set aside for the image. That extra memory might contain private information, which the attacker could then see.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.