FACTOID # 21: The United States has the most money, airports, radios and Internet Service Providers.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Exec Shield

Exec Shield is a security patch for the Linux kernel that adds an NX bit to x86 CPUs. It was developed by Ingo Molnar of Red Hat, and is used as a part of Fedora Core 1, 2, 3, 4 and 5. Computer security is a field of computer science concerned with the control of risks related to computer use. ... The Linux kernel is a Unix-like operating system kernel that was begun by Linus Torvalds in 1991 and subsequently developed with the assistance of developers worldwide. ... NX stands for No eXecute. ... x86 or 80x86 is the generic name of a microprocessor architecture first developed and manufactured by Intel. ... CPU redirects here. ... Ingó Molnár, currently employed by Red Hat, is a Hungarian Linux kernel hacker. ... Red Hat, Inc. ... Fedora Core is an RPM-based Linux distribution, developed by the community-supported Fedora Project, sponsored by Red Hat. ...


Exec Shield attempts to flag data memory as non-executable and program memory as non-writeable. This suppresses many security exploits, such as those stemming from buffer overflows and other techniques relying on overwriting data and inserting code into those structures. Exec Shield also supplies some address space layout randomization for the mmap() and heap base. An exploit is a common term in the computer security community to refer to a piece of software that takes advantage of a bug, glitch or vulnerability, leading to privilege escalation or denial of service on a computer system. ... In computer security and programming, a buffer overflow, or buffer overrun, is an anomalous condition where a process attempts to store data beyond the boundaries of a buffer. ... In computer science, Address space layout randomization (ASLR) is a process which entails arranging the positions of major data areas randomly in virtual address space. ... In computing, mmap() is a POSIX-compliant Unix system call that maps files or devices into memory. ...


The patch additionally increases the difficulty of inserting and executing "shell code" rendering most exploits useless. No application recompilation is necessary to fully utilize exec-shield, although some applications (mono, wine, xemacs) are not fully compatible.

Contents


Implementation

Exec Shield works on all x86 CPUs utilizing the Code Segment limit. Because of the way Exec Shield works, it is very lightweight; however, it won't fully protect arbitrary virtual memory layouts. If the CS limit is raised, for example by calling mprotect() to make higher memory executable, then the protections are lost below that limit. Ingo Molnar points this out in an e-mail conversation. Fortunately, most applications are fairly sane at this; the stack (the important part) at least winds up above any mapped libraries, so doesn't become executable except by explicit calls by the application. The memory pages of the virtual address space seen by the process, may reside non-contiguously in primary, or even secondary storage. ... Ingó Molnár, currently employed by Red Hat, is a Hungarian Linux kernel hacker. ...


As of August, 2004, Exec Shield does not attempt to enforce memory protections by restricting mprotect() on any architecture; although memory may not initially be executable, it may become executable later. Exec Shield will allow an application to mark memory pages as both writable and executable at the same time. 2004 (MMIV) was a leap year starting on Thursday of the Gregorian calendar. ... In Unix-like operating systems, mprotect() is a POSIX system call for controlling memory protections. ...


History

This covers Exec Shield's release history. Implementation of PT_GNU_STACK and PT_GNU_HEAP binary markings and the deprecation of PT_GNU_HEAP are not yet covered here, nor is information on Exec Shield's minimal ASLR.

  • May, 2003: Exec Shield first released

External links

See also

Free software Portal

  Results from FactBites:
 
PaX (http://pageexec.virtualave.net) (154 words)
nFor the most part, Exec Shield and W^X are similar (in that they both provide a subset of the features of PaX), so I will not give a point-by-point analysis.
nExec Shield cannot even guarantee that when a task is fully loaded in memory, that there do not exist memory regions that are both writable and executable, even if an application did not request such mappings.
nExec Shield recently discovered a bug (an off-by-one page), due to someone running paxtest on an Exec Shield machine, that resulted in a page of memory being writable and executable that was assumed otherwise.
Linux: Exec Shield Overflow Protection | KernelTrap (4299 words)
Ingo goes on to provide a lengthy and quite informative description of Exec Shield, beginning with a little background describing the problem that the patch works to fix.
From: Ingo Molnar To: linux-kernel mailing list Subject: [Announcement] "Exec Shield", new Linux security feature Date: Fri, 2 May 2003 12:37:23 -0400 (EDT) We are pleased to announce the first publically available source code release of a new kernel-based security feature called the "Exec Shield", for Linux/x86.
on the other hand Exec Shield tries to keep these file mappings in the 'ascii armor' area, that is, where the high byte of the address has a 0 in it, in the hope the ascii string based overflows will be hard to exploit this way.
  More results at FactBites »


 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m