fix(opensc): CVE-2025-13763, CVE-2025-49010, CVE-2025-66037, CVE-2025-66038, CVE-2025-66215#2
Merged
Merged
Conversation
Fix use of uninitialized variables in libopensc that may lead to information disclosure or application crash. Backport upstream fixes for pkcs15-sc-hsm, card-piv, card-cardos, card-cac, profile, and card-gids. Upstream: GHSA-2v44-fq35-98vv Generated-By: glm-5.1 Co-Authored-By: hudeng <hudeng@deepin.org>
Fix stack-buffer-overflow write in GET RESPONSE. The do-while loop in apdu.c requires the output data to be set in any case, otherwise non-existent data may be copied to the output data. Backport upstream fix for iso7816.c and card-nqApplet.c. Upstream: GHSA-q5cf-5wmx-9wh4 Upstream-Commit: OpenSC/OpenSC@953986f Generated-By: glm-5.1 Co-Authored-By: hudeng <hudeng@deepin.org>
Fix out-of-bounds heap read in X.509/SPKI handling path. sc_pkcs15_pubkey_from_spki_fields() allocates a zero-length buffer and then reads one byte past the end of that allocation. Backport upstream fix for pkcs15-pubkey.c. Upstream: GHSA-m58q-rmjm-mmfx Upstream-Commit: OpenSC/OpenSC@65fc211 Generated-By: glm-5.1 Co-Authored-By: hudeng <hudeng@deepin.org>
Fix sc_compacttlv_find_tag returning out-of-bounds pointers. sc_compacttlv_find_tag does not verify that the claimed value length fits within the remaining buffer, which can lead to downstream memory corruption. Backport upstream fix for sc.c. Upstream: GHSA-72x5-fwjx-2459 Upstream-Commit: OpenSC/OpenSC@a20b91a Generated-By: glm-5.1 Co-Authored-By: hudeng <hudeng@deepin.org>
Fix stack-buffer-overflow write in card-oberthur. Use MIN macro for bounds checking and SC_MAX_APDU_RESP_SIZE constant instead of hardcoded 256. Backport upstream fix for card-oberthur.c. Upstream: GHSA-q5fc-cw56-hwp2 Upstream-Commit: OpenSC/OpenSC@a4bbf8a Upstream-Commit: OpenSC/OpenSC@56bc5e9 Generated-By: glm-5.1 Co-Authored-By: hudeng <hudeng@deepin.org>
Contributor
Author
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
TAG Bot TAG: 0.25.1-1deepin5 |
Contributor
|
/integrate |
|
AutoIntegrationPr Bot |
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.
CVE Fixes for opensc
This PR fixes the following CVEs:
Strategy: patch
Each CVE is fixed by a backported upstream patch applied via quilt.
One commit per CVE, only modifying
debian/directory.Generated-By: glm-5.1
Co-Authored-By: hudeng hudeng@deepin.org