portage-ng / portage / net-libs / libtirpc / 1.3.6
portage-ng glsa
2 advisories reference net-libs/libtirpc · none place version 1.3.6 in a vulnerable range
▸ GLSA 202210-33 Libtirpc: Denial of Service this version unaffected normal remote 2022-10-31

A vulnerability has been discovered in Libtirpc which could result in denial of service.

Announced
2022-10-31
Revised
2022-10-31
Access
remote
Bugs
#859634
Advisory
https://security.gentoo.org/glsa/202210-33

Affected packages

PackageArchVulnerableUnaffected
net-libs/libtirpc*< 1.3.2>= 1.3.2

Background

Libtirpc is a port of Sun's Transport-Independent RPC library to Linux.

Description

Currently svc_run does not handle poll timeout and rendezvous_request does not handle EMFILE error returned from accept(2 as it used to. These two missing functionality were removed by commit b2c9430f46c4. The effect of not handling poll timeout allows idle TCP conections to remain ESTABLISHED indefinitely. When the number of connections reaches the limit of the open file descriptors (ulimit -n) then accept(2) fails with EMFILE. Since there is no handling of EMFILE error this causes svc_run() to get in a tight loop calling accept(2). This resulting in the RPC service of svc_run is being down, it's no longer able to service any requests. Due to a lack of handling of certain error cases, connections to Libtirpc could remain ESTABLISHED indefinitely.

Impact

Denial of service can be achieved via establishing enough connections to Libtirpc to reach the limit of open file descriptors for the process.

Workaround

There is no known workaround at this time.

Resolution

All Libtirpc users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-libs/libtirpc-1.3.2"

References

▸ GLSA 201706-07 Libtirpc and RPCBind: Denial of Service this version unaffected normal remote 2017-06-06

A vulnerability has been found in Libtirpc and RPCBind which may allow a remote attacker to cause a Denial of Service condition.

Announced
2017-06-06
Revised
2017-06-06 (revision 2)
Access
remote
Bugs
#617472
Advisory
https://security.gentoo.org/glsa/201706-07

Affected packages

PackageArchVulnerableUnaffected
net-libs/libtirpc*< 1.0.1-r1>= 1.0.1-r1
net-nds/rpcbind*< 0.2.4-r1>= 0.2.4-r1

Background

The RPCBind utility is a server that converts RPC program numbers into universal addresses.

Libtirpc is a port of Suns Transport-Independent RPC library to Linux.

Description

It was found that due to the way RPCBind uses libtirpc (libntirpc), a memory leak can occur when parsing specially crafted XDR messages.

Impact

A remote attacker could send thousands of messages to RPCBind, possibly resulting in a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All RPCBind users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-nds/rpcbind-0.2.4-r1"

All Libtirpc users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-libs/libtirpc-1.0.1-r1"

References