[krbdev.mit.edu #9256] git commit

Greg Hudson via RT rt at krbdev.mit.edu
Mon Nov 9 12:01:26 EST 2026


<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9256 >


Fix leaks when decoding GSS buffers in libgssrpc

In xdr_rpc_gss_unwrap_data(), if xdr_rpc_gss_buf() fails, free the
value we tried to decode as it may contain partial results.  Also
avoid using gss_release_buffer() on buffers not allocated by GSS APIs.

In gssrpc__svcauth_gss(), avoid leaking partial results if
xdr_rpc_gss_cred() fails.

[ghudson at mit.edu: folded in gss_release_buffer->xdr_free fixes; moved
responsibility to callers of XDR decoders; rewrote commit message]

CVE-2026-112315:

The RPCSEC_GSS authentication routines in lib/rpc/authgss_prot.c in
MIT Kerberos 5 (aka krb5) 1.4 and later do not free partially decoded
buffers on failure, which allows remote attackers to cause a denial of
service (memory leak in kadmind) via crafted RPCSEC_GSS messages.

(cherry picked from commit cc82b42ce92e2d11be09f69e40795c3c061dd990)

https://github.com/krb5/krb5/commit/2a5a57fed898a59c415d06f95fc1187ef9b977e3
Author: Julien Rische <jrische at redhat.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 2a5a57fed898a59c415d06f95fc1187ef9b977e3
Branch: krb5-1.22
 src/lib/rpc/authgss_prot.c | 12 +++++++++---
 src/lib/rpc/svc_auth_gss.c |  6 +++---
 2 files changed, 12 insertions(+), 6 deletions(-)



More information about the krb5-bugs mailing list