Skip to content
Info disclosure Advisory Advanced

Apple DCERPC allocation hint uninitialized memory disclosure vulnerability

The DCERPC library in macOS fails to initialise the allocation hint field when sending a fault response to a malformed request, causing four bytes of uninitialised heap memory to be included in the packet. An attacker could potentially leak sensitive data from memory, though the report only demonstrates the disclosure of a known debug pattern.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

An information disclosure vulnerability exists in the call fault reporting functionality of DCERPC library as used in Apple macOS 12.6.1 that can lead to use of uninitialized memory. A specially-crafted network packet can cause parts of uninitialized memory to be disclosed.

Aleksandar Nikolic, on Cisco Talos

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 allocation hint field in the call reply structure is not initialised for certain malformed requests, and the code that builds the fault packet copies it without checking.

Impact

An attacker could potentially leak sensitive data from uninitialised heap memory, though the report only demonstrates the disclosure of a known debug pattern and notes that with memory layout control otherwise sensitive data could possibly be leaked.

What the attacker needed

Authenticated remote access or local user access; ability to send crafted RPC requests

The fix

Apple fixed this vulnerability internally.

How it was found

  1. Send a correct BIND request for an available RPC service.
  2. Send a call request that sets the first-fragment flag but not the last-fragment flag.
  3. Observe the fault response containing uninitialised bytes in the allocation hint field.

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.

When a program sends data over the network, it sometimes includes extra fields that are supposed to be filled in. Here, a field called the allocation hint was left uninitialised, so whatever happened to be in memory at that spot got sent out. That could accidentally reveal private information from the program's memory.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Aleksandar Nikolic

View all

147 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.