Skill 3.4.1

Memory protection and process isolation

Key Concepts

Operating systems give each process its own virtual address space, enforced by the memory management unit. Processors provide privilege levels, often described as protection rings: the kernel runs in the most privileged ring (ring 0) and applications in the least privileged ring. System calls are the controlled gateway between them.

Additional protections include data execution prevention (marking memory as non-executable), address space layout randomisation (ASLR) and stack canaries, which make exploiting memory corruption bugs harder. The reference monitor concept requires that every access be mediated, and its implementation, the security kernel, must be tamper-proof, always invoked and small enough to verify.