The vulnerability, CVE-2026-42508, is an authentication bypass flaw in the golang.org/x/crypto/ssh/knownhosts package. The root cause is an incomplete revocation check within the isRevoked function. When presented with an SSH certificate (ssh.Certificate), the function would check if the certificate itself was in the list of revoked keys, but it failed to also check if the Certificate Authority (CA) key that signed the certificate (SignatureKey) was revoked.
The patch, found in commit 2325ea8d134592d43353d2142856c14950939c33, rectifies this by adding a recursive call to isRevoked on the cert.SignatureKey. This ensures that the entire certificate chain of trust is validated against the revocation list.
The primary vulnerable function is the unexported isRevoked method, where the faulty logic resided. However, the exported IsRevoked method is the public API that calls this vulnerable function. Therefore, both functions would likely appear in a stack trace during exploitation. A security engineer should monitor calls to golang.org/x/crypto/ssh/knownhosts.(*HostKeyDB).IsRevoked as a potential indicator of compromise.