Balabit syslog-ng Incomplete Priority String Remote DoS Vulnerability
syslog-ng is a replacement for syslogd on Unix systems. Due to a fault in the log message parsing function, it can be remotely terminated via a SIGSEGV by causing a certain string to be included in a log message.
Each log message has a priority label, in the format <n> where n is the priority rating. The message parsing function uses a variable named "left" to store the number of characters remaining in the message. If the priority label does not have the trailing '>' this value gets set to -1 due to a bug. Therefore, when the program checks to see if it is at the end of the message by evaluating whether left=0, it does not register as being at the end of the message.
In versions 1.4.7 and 1.4.8, the software replaces all \r and \n characters with spaces, and this replacement process will under the above conditions cause the program to attempt to write to unaccessible memory, causing a segmentation fault. So for example, including the string <6 terminated with a newline into any logged input will crash syslog-ng.
Versions prior to 1.4.7 can also be exploited in a similar manner, however more precise details are not currently available.