The vulnerability exists in the golang.org/x/crypto/ssh package, specifically within the CertChecker implementation. The CheckHostKey and Authenticate methods of CertChecker were missing crucial validation. These methods are designed to use the IsHostAuthority and IsUserAuthority callbacks, respectively, to validate certificates. However, the code did not handle cases where a developer using the library failed to provide these callbacks. Consequently, if an SSH client presented a certificate, the server would attempt to call a nil function pointer, leading to a panic and a denial of service. The patch rectifies this by adding checks at the beginning of both methods to ensure the callbacks are configured, returning an error if they are not, thus preventing the panic.