Title: GNU GNATS Syslog() Format String Vulnerability
Severity: HIGH
Description:
GNU GNATS is a freely available bug tracking system. It is available for a variety of Linux and Unix variant operating environments.
It is reported that GNU GNATS contains a format string vulnerability in its logging function.
GNATS has the ability to log to various files: stderr, syslog() or a file. The following code is found in gnats/misc.c, in the log_msg() function:
syslog (severity, buf);
The contents of buf is defined by either of the following lines of code:
asprintf (&buf, "%s: %s %s\n", program_name, message, message2);
asprintf (&buf, "%s: %s\n", program_name, message);
If an attacker devises a method of controlling the 'message', or 'message2' arguments to the logging function, they would be able to read or write arbitrary locations in memory. Denial of service, or Code execution could be possible.
GNU GNATS version 4.0 is reported vulnerable. Other versions may also be affected.
NOTE: It has been reported that this issue is not exploitable due the application never passing user-supplied data to the affected formatted printing function. This is not verified, however, if it the case this issue is not exploitable. This BID will be updated when more information becomes available.
Affected Products:
- Debian Linux 3.0.0
- Debian Linux 3.0.0 alpha
- Debian Linux 3.0.0 arm
- Debian Linux 3.0.0 hppa
- Debian Linux 3.0.0 ia-32
- Debian Linux 3.0.0 ia-64
- Debian Linux 3.0.0 m68k
- Debian Linux 3.0.0 mips
- Debian Linux 3.0.0 mipsel
- Debian Linux 3.0.0 ppc
- Debian Linux 3.0.0 s/390
- Debian Linux 3.0.0 sparc
- GNU GNATS 3.0.0 02
- GNU GNATS 3.113.0
- GNU GNATS 3.113.0 .1_6
- GNU GNATS 3.113.1
- GNU GNATS 3.14.0 b
- GNU GNATS 3.2.0
- GNU GNATS 3.999.0
- GNU GNATS 4.0.0
References:
- GNU: Gnats Homepage
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.