Skip to content

Fix bad memory access on C_FindObjects#90

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
LinuxJedi:find-crash
Jun 12, 2025
Merged

Fix bad memory access on C_FindObjects#90
dgarske merged 1 commit into
wolfSSL:masterfrom
LinuxJedi:find-crash

Conversation

@LinuxJedi

@LinuxJedi LinuxJedi commented Jun 11, 2025

Copy link
Copy Markdown
Member

With the right search parameters, C_FindObjects would think that a certificate object was a key and trying to extract attributes from that key would cause bad memory access.

Test tries to get CKA_MODULUS from a certificate to trigger this.

ZD 19905

Comment thread tests/pkcs11test.c Outdated
Comment thread src/internal.c Outdated
With the right search parameters, C_FindObjects would think that a
certificate object was a key and trying to extract attributes from that
key would cause bad memory access.

Test tries to get `CKA_MODULUS` from a certificate to trigger this.

ZD 19905
@LinuxJedi LinuxJedi requested a review from dgarske June 12, 2025 05:57
@LinuxJedi LinuxJedi removed their assignment Jun 12, 2025
@dgarske dgarske merged commit 1bbcd50 into wolfSSL:master Jun 12, 2025
18 checks passed
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