GHSL-2020-128: OOB read vulnerability in FreeRDP RLEDECOMPRESS - CVE-2020-4033
The RLEDECOMPRESS function in FreeRDP performs an out-of-bounds read because the pointer pbSrc can be advanced past the end of the buffer without a bounds check. An attacker could potentially trigger this by supplying a crafted input that causes the pointer to exceed the buffer, leading to a read outside the allocated memory.
Originally disclosed on GitHub Security Lab
An out-of-bounds (OOB) read vulnerability has been detected in RLEDECOMPRESS due to an incorrect range checking in pbSrc.
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 loop condition `pbSrc < pbEnd` is not re-checked after advancing `pbSrc` by `advance`, so `pbSrc` can exceed `pbEnd` before the next read.
Impact
This issue may lead to Out-of-Bounds read.
What the attacker needed
Crafted input to RLEDECOMPRESS
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.
This report describes a bug in a remote desktop program called FreeRDP. The program reads data from a buffer, but it doesn't always check if it has reached the end before reading more. That means it can accidentally read memory that it shouldn't, which could crash the program or leak information.
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.