Skip to content
Memory corruption Advisory Advanced CVE-2020-11095

GHSL-2020-124: OOB read vulnerability in FreeRDP update_recv_primary_order - CVE-2020-11095

The FreeRDP function update_recv_primary_order uses an attacker-controlled orderType value as an index into a fixed-size array, causing an out-of-bounds read when the value exceeds 27. An attacker could potentially trigger this read by sending a crafted RDP message.

antonio-morales Follow

Originally disclosed on GitHub Security Lab

A global out-of-bounds (OOB) read vulnerability has been detected in updaterecvprimaryorder due to global array access with attacker-controlled index.

antonio-morales, on GitHub Security Lab

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 code fails to validate that the attacker-controlled orderType is within the bounds of the PRIMARY_DRAWING_ORDER_FIELD_BYTES array before using it as an index.

Impact

This issue may lead to Out-of-Bounds read.

What the attacker needed

Attacker can send crafted RDP messages

The fix

The bug was fixed and a patch released 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.

A program reads a number from incoming data and uses it to pick an item from a fixed list. If the number is too large, the program reads past the end of the list, which can crash it or leak memory contents.

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 antonio-morales

View all

45 more disclosed reports, best first.

More from GitHub Security Lab

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.