nuttx/drivers/crypto/pnt/pnt_se05x_api: Minor Overflow in Secure Element#19230
Open
catalinv-ncc wants to merge 1 commit into
Open
nuttx/drivers/crypto/pnt/pnt_se05x_api: Minor Overflow in Secure Element#19230catalinv-ncc wants to merge 1 commit into
catalinv-ncc wants to merge 1 commit into
Conversation
Driver May Cause a DoS Invalid data is passed to the NXP Plug & Trust Nano Package used by the NuttX secure element driver. If the NXP code is not handling the malformed data, a corruption can occur. Alternatively, if the attacker is able to point create_signature_args->algorithm in memory at an address that is not accessible, a crash can occur. Applicable to: * `signature_algorithm_mapping[create_signature_args->algorithm]` * `signature_algorithm_mapping[verify_signature_args->algorithm]` Signed-off-by: Catalin Visinescu <catalin_visinescu@yahoo.com>
1 task
Contributor
Author
|
I have observed the coding style errors, but these are not related to the changes I've made. The lines where I modified the code are not listed as problematic. Not sure what is the process for this. Please advise, thanks. |
Contributor
|
@catalinv-ncc I think those style error are from original crypto API, you don't need to fix them. They were kept to way to simplify the compatibility. If you prefer you can create a separated PR adding these symbols to g_white_content_list[] this way this PR will pass without these CI errors. |
acassis
approved these changes
Jun 27, 2026
Contributor
|
Can you please follow the PR template? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Driver May Cause a DoS
Invalid data is passed to the NXP Plug & Trust Nano Package used
by the NuttX secure element driver. If the NXP code is not handling
the malformed data, a corruption can occur. Alternatively, if the
attacker is able to point create_signature_args->algorithm in
memory at an address that is not accessible, a crash can occur.
Applicable to:
signature_algorithm_mapping[create_signature_args->algorithm]signature_algorithm_mapping[verify_signature_args->algorithm]Tested locally, builds fine.