W^X
W^X (write xor execute, pronounced W xor X) is a security policy in operating systems and software frameworks.[src] It implements executable-space protection by ensuring every memory page (a fixed-size block in a program’s virtual address space, the memory layout it uses) is either writable or executable, but not both.[src] Without such protection, a program can write (as data "W") CPU instructions in an area of memory intended for data and then run (as executable "X"; or read-execute "RX") those instructions.[src] This can be dangerous if the writer of the memory is malicious.[src] The terminology was first introduced in 2003 for Unix-like systems, but is today also used by some multi-platform systems (such as .NET ).[src] Other operating systems have adopted similar policies under different names (e.g., DEP in Windows).[src] On Unix-like operating system kernels, like the Linux kernel or XNU, or those used as components in larger operating systems like FreeBSD, OpenBSD, Solaris, and the UNIX System Services of Z/OS, W^X is controlled via the mprotect system call.[src] It is relatively simple on processor architectures supporting fine-grained page permissions, such as SPARC, x86-64, PA-RISC, Alpha, and ARM.[src] The term W^X has also been applied to file system write/execute permissions to mitigate file write vulnerabilities (as with in memory) and attacker persistence.…[src]
W^X (write xor execute, pronounced W xor X) is a security policy in operating systems and software frameworks.[src] It implements executable-space protection by ensuring every memory page (a fixed-size block in a program’s virtual address space, the memory layout it uses) is either writable or executable, but not both.[src] Without such protection, a program can write (as data "W") CPU instructions in an area of memory intended for data and then run (as executable "X"; or read-execute "RX") those instructions.[src] This can be dangerous if the writer of the memory is malicious.[src] The terminology was first introduced in 2003 for Unix-like systems, but is today also used by some multi-platform systems (such as .NET ).[src] Other operating systems have adopted similar policies under different names (e.g., DEP in Windows).[src] On Unix-like operating system kernels, like the Linux kernel or XNU, or those used as components in larger operating systems like FreeBSD, OpenBSD, Solaris, and the UNIX System Services of Z/OS, W^X is controlled via the mprotect system call.[src] It is relatively simple on processor architectures supporting fine-grained page permissions, such as SPARC, x86-64, PA-RISC, Alpha, and ARM.[src] The term W^X has also been applied to file system write/execute permissions to mitigate file write vulnerabilities (as with in memory) and attacker persistence.[src] Enforcing restrictions on file permissions can also close gaps in W^X enforcement caused by memory mapped files.[src] Outright forbidding the usage of arbitrary native code can also mitigate kernel and CPU vulnerabilities not exposed via the existing code on the computer.[src] A less intrusive approach is to lock a file for the duration of any mapping into executable memory, which suffices to prevent post-inspection bypasses.[src]
21 sentences · 21 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"W^X." encyclopegia.org, 2026, https://encyclopegia.org/wiki/w-x. Accessed 06 December 2026.
Chicago
"W^X." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/w-x.
APA
encyclopegia.org. (2026). W^X. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/w-x
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON