Skip to content

Fix use-after-free possibility in GetCRLInfo#10693

Open
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:crl-use-after-free
Open

Fix use-after-free possibility in GetCRLInfo#10693
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:crl-use-after-free

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Description

Requires CRL and WOLFSSL_SMALL_STACK

Fixes one of many issues in 21992

Testing

Added a unit test

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

Comment thread wolfssl/ssl.h
word32 nextDateMaxLen;
byte nextDateFormat;
byte crlNumberSet:1;
byte issuerHashData[SIGNER_DIGEST_SIZE];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added these buffers alongside the existing pointers rather than changing the pointers to arrays so that this change does not break the API/ABI

@padelsbach padelsbach marked this pull request as ready for review June 16, 2026 17:34
@github-actions

Copy link
Copy Markdown

retest this please

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot 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.

Fenrir Automated Review — PR #10693

Scan targets checked: wolfcrypt-rs-bugs, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

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.

3 participants