Skip to content
Memory corruption Advisory Advanced CVE-2023-23539

Apple DCERPC presentation result list out of bounds memory access

An out-of-bounds memory access vulnerability exists in the DCERPC library's processing of presentation result lists, where an attacker-controlled length field is used to calculate a pointer without bounds checks. A remote or local attacker can send a crafted packet to trigger a denial of service.

Dimitrios Tatsis Follow

Originally disclosed on Cisco Talos

Medium 5.9 View original

An out of bounds memory access vulnerability exists in the processing of packets containing presentation result lists in DCERPC library as used in Apple macOS 12.6.1. A specially-crafted network packet can lead to out of bounds memory access which can lead to denial of service.

Dimitrios Tatsis and 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 code calculates a pointer by adding an attacker-controlled length to a base pointer without verifying that the resulting pointer stays within the received packet buffer.

Impact

The vulnerability does not appear capable of achieving a write primitive but is capable of performing a Denial of Service attack if, for instance, `presp` points inside a guard page depending on the memory layout of the target.

What the attacker needed

Send crafted DCERPC packet; network access to RPC service

The fix

It was fixed by Apple on 2023-01-23.

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.

DCERPC is a protocol used for remote procedure calls, similar to how programs talk to each other over a network. The vulnerability is that when the library reads a certain field from a packet, it trusts a length value without checking if it stays within the packet, so it can read memory outside the packet. This can crash the service, causing a denial of 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 Dimitrios Tatsis

View all

1 more disclosed report, 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.