Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519496 (CVE-2012-3541) - net-nds/rpcbind: -h fails to control access to rpcbind
Summary: net-nds/rpcbind: -h fails to control access to rpcbind
Alias: CVE-2012-3541
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B4 [upstream]
Depends on:
Reported: 2014-08-09 12:17 UTC by Agostino Sarubbo
Modified: 2015-04-28 01:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2014-08-09 12:17:41 UTC
From ${URL} :

rpcbind offers a "-h" option that binds rpcbind to a specific IP address. If 
the "-h" option is not used then rpcbind will attach to INADDR_ANY 
( for ipv4, ::: for ipv6).

When "rpcbind -h" is specified rpcbind still attaches to all IP 

# rpcbind -h
# ps xauww | grep rpcbind
root 24618 0.0 0.0 19172   848 ? Ss 00:19 0:00 rpcbind -h

# netstat -vatn | grep 111
tcp 0 0* LISTEN      
tcp 0 0 :::111        :::*      LISTEN      

However if you check using nmap:

# nmap -sU -p 111

Starting Nmap 5.51 ( ) at 2012-08-28 00:19 MDT
Nmap scan report for
Host is up (0.00045s latency).
111/udp closed rpcbind
MAC Address: 00:00:45:67:89:AB (Cadmus Computer Systems)

Nmap done: 1 IP address (1 host up) scanned in 0.39 seconds

So this is good right? Except if you run rpcinfo:

[root@fw00 ~]# rpcinfo
   program version netid     address                service    owner
    100000    4    tcp6      ::.0.111               portmapper superuser
    100000    3    tcp6      ::.0.111               portmapper superuser
    100000    4    udp6      ::1.0.111              portmapper superuser
    100000    3    udp6      ::1.0.111              portmapper superuser
    100000    4    tcp          portmapper superuser
    100000    3    tcp          portmapper superuser
    100000    2    tcp          portmapper superuser
    100000    4    udp        portmapper superuser
    100000    3    udp        portmapper superuser
    100000    2    udp        portmapper superuser
    100000    4    local     /var/run/rpcbind.sock  portmapper superuser
    100000    3    local     /var/run/rpcbind.sock  portmapper superuser

@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 SpanKY gentoo-dev 2015-04-28 01:40:51 UTC
see discussion in the redhat bug.  they've labeled this NOTABUG.