Skip to content
Memory corruption Advisory Advanced CVE-2021-30742

(0Day) Apple macOS AudioToolboxCore LOAS File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

A crafted LOAS audio file can make the GetFramesPerPacket function in Apple's AudioToolboxCore read past the end of an allocated data structure. An attacker could use this to disclose sensitive information, and could combine it with other flaws to run code in the current process.

Mickey Jin Follow

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.

Mickey Jin of Trend Micro Mobile Security Research Team, on the Zero Day Initiative

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 GetFramesPerPacket function does not validate a length or offset from the LOAS file before reading, so it reads past the end of the allocated buffer.

Impact

A remote attacker could disclose sensitive information, and could chain this with other vulnerabilities to execute arbitrary code in the context of the current process; the target must visit a malicious page or open a malicious file.

What the attacker needed

Victim opens a malicious LOAS file; or victim visits a malicious page

The fix

The vendor indicated the issue had been addressed, but the advisory was published without a patch, and the only suggested mitigation is to restrict interaction with the application.

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.

Some programs read audio files by following lengths and offsets stored inside the file. If those numbers are not checked, the program can read memory beyond the buffer it set aside, and that extra memory may contain private data. Here a malformed audio file makes the parser read too far, which can leak information and may help an attacker do more.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Mickey Jin

View all

18 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.