Skip to content
Info disclosure Advisory Advanced CVE-2021-30722

Apple macOS SMB server create file request uninitialized memory disclosure

The macOS SMB server did not initialise a reply buffer used for CREATE_REQUEST processing, so uninitialised heap memory could be sent back to a client. An attacker could leak sensitive data and pointer fragments that may help defeat ASLR.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

A use of uninitialized data vulnerability exists in the SMB Server Apple macOS 11.2. A specially crafted SMB packet can cause uninitialized data to end up in server reply which can leak sensitive information.

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

Impact

An attacker could leak user and machine specific data and heap or code pointer fragments, which could help determine heap and image bases and defeat ASLR to aid further exploitation.

What the attacker needed

Network access to SMB service; valid credentials (PR:L)

The fix

The vendor patched the vulnerability, likely by initialising the output buffer before use.

How it was found

  1. Craft an SMB2 CREATE_REQUEST packet containing many SMB2_CREATE_CONTEXT structures of type MxAc.
  2. Send the packet to the vulnerable SMB server.
  3. Receive the server reply and extract the uninitialised bytes from each CREATE_CONTEXT response.

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 reserves memory for a reply, it should clear it first. Here the server sent back whatever was left in that memory from earlier use, which could include private data or memory addresses. An attacker who can talk to the file-sharing service could read those leftovers.

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.