REDHAT-BUG-2576161: Medium severity libtirpc libtirpc vulnerability

Published Nov 19, 2026
·
Updated

A flaw was found in libtirpc. The SunRPC UDP/datagram server transport (svcdgrecv / svcudpcreate) reuses a single XDR decode stream sized to the allocated receive buffer. On each datagram, the receive path resets the stream position and calls xdrcallmsg, but it does not rebind the decode bound (xhandy) to the actual received length rlen. Because the XDR memory backend uses xhandy as the remaining length, a shorter request can be decoded together with stale bytes left by a prior datagram. Florian Weimer reproduced this with tst-udp-stale: a full request leaves argument bytes at the tail of the buffer after a shorter reply is encoded; a follow-up truncated AUTHNONE call with no arguments then has svcgetargs consume those leftover bytes and echo them back. A correctly bounded decoder would fail with GARBAGEARGS. This is a logical datagram-boundary violation, not a read past the allocated buffer. The same inherited SunRPC pattern exists in glibc sunrpc/svcudp.c (legacy ABI compatibility; glibc is expected to assign a separate CVE) and in other copies such as krb5 GSSRPC. CVE-2026-104357 is assigned to the libtirpc implementation. Reported by Aisle Research against glibc; Red Hat confirmed the bug is present in libtirpc. Related tracking: OSIM-77274 / RHEL-217046 (glibc report), PSIRTSUPT-22635 (coordination).

Affected Software

1 affected component
libtirpc libtirpc

Event History

Nov 19, 2026
Data Sourced
via Red Hat·03:01 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

SunRPC services using libtirpc's UDP/datagram server transport are exposed, specifically the svc_dg_recv or svcudp_create receive path. The issue concerns UDP/datagram handling rather than the allocated receive buffer size.

2

What does an attacker need to do to trigger the flaw?

An attacker needs to send datagrams to the affected UDP RPC service in a sequence that leaves data in the shared receive buffer and then submits a shorter or truncated request. The later request can have stale bytes from the earlier datagram decoded as its arguments.

3

What is the practical effect of successful exploitation?

A request that should fail due to missing or truncated arguments can instead be processed using stale argument bytes from a prior datagram. The documented reproduction caused svc_getargs to consume and echo leftover bytes; a correctly bounded decoder would return GARBAGE_ARGS.

4

How can this be validated?

The issue was reproduced with tst-udp-stale, using a full request followed by a truncated AUTH_NONE call with no arguments. Observing the follow-up call consume or echo data left from the prior request indicates the decoder is not bounded to the received datagram length.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203