[PATCH v4] Don't allow attackers to inject arbitrary data into stack through LD_DEBUG

Florian Weimer fweimer@redhat.com
Thu Aug 13 17:54:00 GMT 2015


On 08/10/2015 08:04 PM, Alex Dowad wrote:
> C programs which use uninitialized stack variables can be exploited if an attacker
> can control the contents of memory where the buggy function's stack frame lands.
> If the buggy function is called very early in the program's execution, that memory
> might still hold values written by ld.so, so manipulation of ld.so is one way to
> carry out such an exploit.

Could you write a test case for this in some way?  I wonder what else
ends up on the stack.

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list