http://bugs.debian.org/502680
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4552
https://bugzilla.redhat.com/show_bug.cgi?id=458676
nfs-utils 1.0.9, and possibly other versions before 1.1.3, invokes the
host_ctl function with the wrong order of arguments, which causes TCP
Wrappers to ignore netgroups and allows remote attackers to bypass
intended access restrictions.
--- nfs-utils-1.1.2/support/misc/tcpwrapper.c 2008-03-15 02:46:29.000000000 +1100
+++ nfs-utils-1.1.2/support/misc/tcpwrapper.c 2008-10-19 13:58:12.000000000 +1100
@@ -125,12 +125,12 @@ struct sockaddr_in *addr;
return 0;
/* Check the official name first. */
- if (hosts_ctl(daemon, "", hp->h_name, ""))
+ if (hosts_ctl(daemon, hp->h_name, "", ""))
return 1;
/* Check aliases. */
for (sp = hp->h_aliases; *sp ; sp++) {
- if (hosts_ctl(daemon, "", *sp, ""))
+ if (hosts_ctl(daemon, *sp, "", ""))
return 1;
}