J-Security Center

Title: Multiple Vendor profil(2) Vulnerability

Severity: LOW

Description:

Some *BSD's use a profil(2) system call that dates back to "version 6" unix. This system call arranges for the kernel to sample the PC and increment an element of an array on every profile clock tick.

The security issue stems from the fact that profiling is not turned off when a process execve(2)'s another program image.

As the size and location of this array as well as the scale factor are under the program's control, it is possible to arrange for an arbitrary 16-bit program virtual address to be incremented on each profile clock tick.

Although unlikely, it is theoretically possible that an attacker with local access and knowledge of the addresses used by privileged programs could construct an exploit.

It may be that there are no candidate addresses that, when incremented, result in a security failure. However, as this can turn -1 into 0, and 0 into 1, and as security-related system calls and library functions often return either -1 or 0, this mechanism could turn system call returns of success into failure or failure into success if a program stores system call results into memory locations.

Affected Products:

  • NetBSD NetBSD 1.0.0
  • NetBSD NetBSD 1.1.0
  • NetBSD NetBSD 1.2.0
  • NetBSD NetBSD 1.2.1
  • NetBSD NetBSD 1.3.0
  • NetBSD NetBSD 1.3.1
  • NetBSD NetBSD 1.3.2
  • NetBSD NetBSD 1.3.3
  • NetBSD NetBSD 1.4.0 x86
  • OpenBSD OpenBSD 2.0.0
  • OpenBSD OpenBSD 2.1.0
  • OpenBSD OpenBSD 2.2.0
  • OpenBSD OpenBSD 2.3.0
  • OpenBSD OpenBSD 2.4.0
  • OpenBSD OpenBSD 2.5.0
  • Sun Solaris 2.1.0
  • Sun Solaris 2.2.0
  • Sun Solaris 2.3.0
  • Sun Solaris 2.4.0
  • Sun Solaris 2.4.0_x86
  • Sun Solaris 2.5.0
  • Sun Solaris 2.5.0_x86
  • Sun Solaris 2.5.1
  • Sun Solaris 2.6
  • Sun Solaris 2.6_x86
  • Sun Solaris 7.0
  • Sun Solaris 7.0_x86

References:

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.