Package: fakeroot
Version: 1.20.2-1
Severity: normal

Dear Maintainer,

I noticed fakeroot-tcp binds a tcp socket to INADDR_ANY.  This seems worrying, 
even if we don't know about specific  vulnerabilities.  I haven't disclosed 
this observation elsewhere.

Triage: I'm not sure how predictable the port number is.  Many invocations of 
fakeroot will be short-lived.  So you would need to catch the right port at the 
right time.  The Debian fakeroot package uses fakeroot-sysv by default.

However I believe Debian is also acting as upstream, and other distributions 
(Fedora) do default to fakeroot-tcp.  Also fakeroot-tcp is necessary for 
multi-threaded programs (see the README).  fakeroot is sometimes used in 
package building...

I hope there aren't any major build servers compromised by this :(.

Fix: replace htonl(INADDR_ANY) in fakerootd.c with htonl(INADDR_LOOPBACK).  Not 
tested, but libfakeroot already connects to INADDR_LOOPBACK.  I'm not aware of 
anything else this would break.

Thanks to you all
Alan

-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 3.16.0-4-kirkwood
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fakeroot depends on:
iu  libc6        2.19-18+deb8u2
ii  libfakeroot  1.20.2-1

fakeroot recommends no packages.

fakeroot suggests no packages.

-- no debconf information

Reply via email to