Other Articles

Servers – Enable NX Protection

Support > Fixing Checks > Server

05 March, 2026

This check ensures that XD/NX (No-Execute) protection is enabled on the system. The NX bit is a CPU-level security feature that marks certain areas of memory as non-executable. When enabled, the processor prevents execution of code from memory regions intended only for data storage.

Enabling NX protection helps mitigate buffer overflow attacks by preventing malicious code from executing in non-executable memory regions.

Check Details

  • Resource: Server
  • Check: Enable NX Protection
  • Risk: If NX/XD protection is not enabled, attackers may exploit buffer overflow vulnerabilities to execute malicious code in memory regions intended for data storage.

Remediation Steps

  1. Determine whether the system is running a 32-bit or 64-bit operating system. NX protection is enabled by default on most modern 64-bit systems.
  2. For 32-bit systems, install a kernel with PAE (Physical Address Extension) support.

    apt-get install linux-image-generic-pae
    
  3. If required, configure the system bootloader so that the system loads the kernel that supports PAE.

    update-grub
    
  4. Reboot the system so that the updated kernel and NX/XD protection can take effect.

    reboot
    
  5. If NX/XD protection is still not active, verify that NX or XD support is enabled in the system BIOS/UEFI firmware settings.

Warning: Ensure that the system hardware supports the NX/XD bit and PAE before enabling this feature. Enabling NX protection on unsupported hardware may prevent the system from booting.

Note: Most modern 64-bit processors already support NX protection and require no additional configuration.