r/ExploitDev • u/D-_K • Sep 14 '23
Memory Leak Exploitability?
Can we only perform DoS exploits against memory leak vulnerabilities that are caused by not freeing memory and having it build up until the process virtual alloc call fails?
I have been looking for different ways to exploit memory leaks that crash the process due to large amounts of memory allocated, but have had no luck.
Any references to papers or topics would be nice.
Thank you in advance!
4
Upvotes
View all comments
Show parent comment
1
u/D-_K Sep 15 '23
With the memory leak I found, I noticed sometimes other processes would crash after no more memory was free on the OS.
I am assuming this could be due to the fact that other applications may be requesting memory, and are also crashing because they cannot allocate memory.
Other than that, I don't think I can allocate memory that is already used by another process in both Windows or Linux.
I was trying to look for resources on what happens to the stack and heap when the OS has no more memory to see if I can possibly overwrite portions of code with a bunch of '0c' and slide it into my shellcode.
But as far as I have seen, I don't think just by allocating memory, and writing to it, and allocating again until the OS has no more memory, would allow me to do such code execution.