J-Security Center

Title: Linux libc's mktemp() Vulnerability

Severity: MODERATE

Description:

Linux libc5.4.33's mktemp() function can generate only 62 unique temporary file names per process. It requires that six X's be used in the template but only one of them is really used. The rest are the process id.

This can use used as a denial of service by creating all possible temporary files a process could use before it gets to open them and possibly in symbolic link attacks by having prior knowledge of the files the process will attempt to open.

Affected Products:

  • GNU glibc 2.0.0
  • Linux libc 5.4.33

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.