LWN.net Logo

Address space randomization in 2.6

Address space randomization in 2.6

Posted Mar 17, 2005 12:59 UTC (Thu) by farnz (subscriber, #17727)
In reply to: Address space randomization in 2.6 by aarchiba
Parent article: Address space randomization in 2.6

Yes, the program needs to be fixed; however, in the gap between black hats discovering a security hole, and white hats fixing it, I'd rather have something which makes exploiting it harder, than hope that the black hats don't come and get me.

Randomization causes exploitable buggy code to go from permanently exploitable to crashes on most of the attempts. If (say) Apache on Debian Woody has an exploitable hole, without randomization, the black hat determines the exploit on his local machine (crashing Apache several times into the bargain), then he can exploit all vunerable machines on the Internet without risk of being caught.

With randomization, most attempts to work out the address space on the remote machine cause Apache to crash; a good admin notices his servers crashing, and investigates why. Bear in mind that the average exploit involves inducing the program to run code it shouldn't; if the location in memory of that code is random, your chances of actually running valid code have dropped.


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.