32.0k views
3 votes
What is the nx bit and which form of the buffer overflow attack does it protect against?

1 Answer

6 votes
NX bit marks parts of memory as "no execute", so that even if it contains executable code, the CPU will not execute it. Some buffer overflow exploits place executable code in a buffer (and beyond), then attempt to redirect execution to this area to gain control over a process.

In windows this is called Data Execution Prevention.
User Vangheem
by
8.2k points