J-Security Center

Title: FreeBSD AIO Library Cross Process Memory Write Vulnerability

Severity: HIGH

Description:

aio.h is a library implementing the POSIX standard for asynchronous I/O. Support for AIO may be enabled in FreeBSD by compiling the kernel with the VFS_AIO option. This option is not enabled in the default kernel configuration.

Under some circumstances, pending reads from an input socket may persist through a call to execve. Eventually the read will continue, and write to the memory space of the new process.

A malicious local user may take advantage of this vulnerability. A program may be constructed to set up asynchronous I/O calls, and then call execve on a suid binary. Once the suid process is started, data read from the initial AIO calls may write to arbitrary locations within the memory space of the suid process. This could immediately lead to the execution of arbitrary code as the root user.

Affected Products:

  • FreeBSD FreeBSD 4.4.0

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.