Menu

#52 Bug in Msyslog v1.09a, module im_linux

open
Alejo S
5
2003-11-04
2003-11-04
Kim Batay
No

Msyslog v1.09a, Linux 2.4.22 with Grsecurity patch 1.9.12.

In the module im_linux, the function ksym_init() reads the kernel
symbols in a buffer with length 128. This is a bad idea:

# egrep -c '^.{128}' /proc/ksyms
3

Not checking whether fgets() has actually read the entire line
is an even worse idea. As a result, kernel messages are not
logged.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB