[krbdev.mit.edu #9234] git commit

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


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


Prevent read overruns in GSSRPC svcauth_unix

In gssrpc__svcauth_unix(), msg->rm_call.cb_cred.oa_length is only
validated after msg->rm_call.cb_cred.oa_base is parsed, admitting read
overruns if the message is undersized.  Replace the retrospective
validation with checks before parsing and after each interior length
is read.  Reported by Cem Onat Karagun.

(cherry picked from commit 964fca13050673c620b3ec0b6fb77af1257eacd5)

https://github.com/krb5/krb5/commit/aca0f70145be03d9eb6acf47be8dece3005846b1
Author: Greg Hudson <ghudson at mit.edu>
Commit: aca0f70145be03d9eb6acf47be8dece3005846b1
Branch: krb5-1.22
 src/lib/rpc/svc_auth_unix.c | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)



More information about the krb5-bugs mailing list