Red Hat Bugzilla – Bug 126521
OpenSSH GSSAPI Patch fix for wrongly size integers
Last modified: 2007-11-30 17:10:45 EST
Description of problem:
The gssapi patch for OpenSSH had three instances of a call to
buffer_get_string() that used the length_ptr parameter, but passed in
pointers to 64bit integers, though buffer_get_string() used it as a
pointer to a 32bit integer. The result is length being incorrectly set.
The attached patch fixes this by using a local temporary u_int for use
in the calls to buffer_get_string which is then used to assign the
correct values to the 64bit integers.
Version-Release number of selected component (if applicable):
Created attachment 101338 [details]
Fix for buffer_get_string() calls with 64bit integer pointers
This also affects RHEL 3.
In particular, it becomes impossible to log in to a machine with
openssh-server-3.6.1p2-33.30.1.gss (same as RHEL 3 latest openssh, but
with 'gss' in the name to have gssapi patch applied) when
GSSAPIAuthentication is possible (i.e. server & client have kerberos
ticket/keytab, and GSSAPIAuthentication=yes in configs).
I have filed the RHEL 3 bug as bug #130693, as I believe FC1 may no
longer be under development.
FC1 is unsupported.