Skip to content

userauth: protect against NULL abstract libssh2_sign_sk() - #2291

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:ua-null-abstract
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:ua-null-abstract

Conversation

@vszakats

@vszakats vszakats commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Bug: #2290 (comment)
Follow-up to ed439a2 #698

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request hardens the public FIDO2 signing helper libssh2_sign_sk() against NULL-pointer misuse by validating the abstract parameter before dereferencing it, addressing the reported NULL-dereference bug.

Changes:

  • Add parameter validation for abstract / *abstract in libssh2_sign_sk().
  • Delay initialization of sk_info until after validating inputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats closed this in 42a448f Jul 14, 2026
@vszakats
vszakats deleted the ua-null-abstract branch July 14, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants