[krbdev.mit.edu #9256] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Mon Nov 9 11:57:50 EST 2026


Mon Nov 09 11:57:50 2026: Request 9256 was acted upon.
 Transaction: Ticket created by ghudson at mit.edu
       Queue: krb5
     Subject: git commit
       Owner: ghudson at mit.edu
  Requestors: 
      Status: new
 Ticket <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.

https://github.com/krb5/krb5/commit/cc82b42ce92e2d11be09f69e40795c3c061dd990
Author: Julien Rische <jrische at redhat.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: cc82b42ce92e2d11be09f69e40795c3c061dd990
Branch: master
 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