NX bit
The NX bit (no-execute bit) is a processor feature that separates areas of a virtual address space (the memory layout a program uses) into sections for storing data or program instructions.[src] An operating system supporting the NX bit can mark certain areas of the virtual address space as non-executable, preventing the processor from running any code stored there.[src] This technique, known as executable-space protection or Write XOR Execute, protects computers from malicious software that attempts to insert harmful code into another program’s data storage area and execute it, such as in a buffer overflow attack.[src] The term "NX bit" was introduced by Advanced Micro Devices (AMD) as a marketing term.[src] Intel markets this feature as the XD bit (execute disable), while the MIPS architecture refers to it as the XI bit (execute inhibit).[src] In the ARM architecture, introduced in ARMv6, it is known as XN (execute never).[src] The term NX bit is often used broadly to describe similar executable-space protection technologies in other processors.[src]
The NX bit (no-execute bit) is a processor feature that separates areas of a virtual address space (the memory layout a program uses) into sections for storing data or program instructions.[src] An operating system supporting the NX bit can mark certain areas of the virtual address space as non-executable, preventing the processor from running any code stored there.[src] This technique, known as executable-space protection or Write XOR Execute, protects computers from malicious software that attempts to insert harmful code into another program’s data storage area and execute it, such as in a buffer overflow attack.[src] The term "NX bit" was introduced by Advanced Micro Devices (AMD) as a marketing term.[src] Intel markets this feature as the XD bit (execute disable), while the MIPS architecture refers to it as the XI bit (execute inhibit).[src] In the ARM architecture, introduced in ARMv6, it is known as XN (execute never).[src] The term NX bit is often used broadly to describe similar executable-space protection technologies in other processors.[src] ==Architecture support== ===ARM=== In ARMv6, a new page table entry format was introduced; it includes an "execute never" bit.[src] For ARMv8-A, VMSAv8-64 block and page descriptors, and VMSAv8-32 long-descriptor block and page descriptors, for stage 1 translations have "execute never" bits for both privileged and unprivileged modes, and block and page descriptors for stage 2 translations have a single "execute never" bit (two bits due to ARMv8.2-TTS2UXN feature); VMSAv8-32 short-descriptor translation table descriptors at level 1 have "execute never" bits for both privileged and unprivileged mode and at level 2 have a single "execute never" bit.[src] ===Alpha=== As of the Fourth Edition of the Alpha Architecture manual, DEC (now HP) Alpha has a Fault on Execute bit in page table entries with the OpenVMS, Tru64 UNIX, and Alpha Linux PALcode.[src] ===SPARC=== The SPARC Reference MMU for Sun SPARC version 8 has permission values of Read Only, Read/Write, Read/Execute, and Read/Write/Execute in page table entries, although not all SPARC processors have a SPARC Reference MMU.[src] A SPARC version 9 MMU may provide, but is not required to provide, any combination of read/write/execute permissions.[src] A Translation Table Entry in a Translation Storage Buffer in Oracle SPARC Architecture 2011, Draft D1.0.0 has separate Executable and Writable bits.[src] ===PowerPC/Power ISA=== Page table entries for IBM PowerPC's hashed page tables have a no-execute page bit.[src] Page table entries for radix-tree page tables in the Power ISA have separate permission bits granting read/write and execute access.[src] ===PA-RISC=== Translation lookaside buffer (TLB) entries and page table entries in PA-RISC 1.1 and PA-RISC 2.0 support read-only, read/write, read/execute, and read/write/execute pages.[src] ===Itanium=== TLB entries in Itanium support read-only, read/write, read/execute, and read/write/execute pages.[src] ===z/Architecture=== As of the twelfth edition of the z/Architecture Principles of Operation, z/Architecture processors may support the Instruction-Execution Protection facility, which adds a bit in page table entries that controls whether instructions from a given region, segment, or page can be executed.[src] ==See also== Executable-space protection W^X ==References== ==External links== AMD, Intel put antivirus tech into chips Microsoft Interviewed on Trustworthy Computing and NX LKML NX Announcement Changes to Functionality in Microsoft Windows XP Service Pack 2 Part 3: Memory Protection Technologies Microsoft Security Developer Center: Windows XP SP 2: Execution Protection[src]
26 sentences · 26 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"NX bit." encyclopegia.org, 2026, https://encyclopegia.org/wiki/nx-bit. Accessed 03 December 2026.
Chicago
"NX bit." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/nx-bit.
APA
encyclopegia.org. (2026). NX bit. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/nx-bit
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON