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

Apple macOS SMB server signature verification information disclosure vulnerability

The macOS SMB server fails to validate the NextCommand field in compound SMB2/SMB3 packets, leading to an integer overflow during signature verification. An attacker can exploit this to cause out-of-bounds memory reads, potentially bypassing signature checks, disclosing information, or crashing the server.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 7.1 View original

An information disclosure vulnerability exists in the SMB Server Apple macOS 11.1. A specially crafted SMB packet can trigger an integer overflow, leading to information disclosure, cryptographic check bypass and denial of service.

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

The SMB server does not validate the NextCommand field before using it as a length in HMAC calculations, leading to integer overflow and out-of-bounds memory access.

Impact

An attacker could potentially bypass signature verification, disclose information, or cause a denial of service; man-in-the-middle attacks may also be possible.

What the attacker needed

Network access to SMB service; SMB2 or SMB3 dialect negotiated

The fix

The vulnerability was fixed by the vendor.

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.

SMB is a protocol for sharing files and printers on a network. When packets are combined, the server uses a length field to verify signatures, but it doesn't check if the length is valid. This can cause the server to read memory outside the packet, which might leak data or crash the service.

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 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.

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.