unsafe use of syslog(3)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vde2 (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
if ((pwd=getpwuid(
else
iov[1].
for (epn=0; (descr=
int len=iov[1].iov_len;
int descrlen=
}
if (logfilefd >= 0) {
time_t ntime=time(&ntime);
} else if (logfilefd != -1)
If the hostname or the username contains format string specifiers, such as %n, this may be a format string vulnerability.
The fix should be simple, replace the final line with:
syslog(LOG_INFO, "%s", msg);
Changed in vde2 (Ubuntu): | |
status: | New → Triaged |
information type: | Private Security → Public Security |
https:/ /sourceforge. net/tracker/ ?func=detail& aid=3603895& group_id= 95403&atid= 611248