Skip to content

fix(opensc): CVE-2025-13763, CVE-2025-49010, CVE-2025-66037, CVE-2025-66038, CVE-2025-66215#2

Merged
Zeno-sole merged 5 commits into
masterfrom
fix/CVE-2025-13763
Jun 11, 2026
Merged

fix(opensc): CVE-2025-13763, CVE-2025-49010, CVE-2025-66037, CVE-2025-66038, CVE-2025-66215#2
Zeno-sole merged 5 commits into
masterfrom
fix/CVE-2025-13763

Conversation

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

CVE Fixes for opensc

This PR fixes the following CVEs:

CVE Description Severity
CVE-2025-13763 Use of uninitialized variables in libopensc Medium
CVE-2025-49010 Stack-buffer-overflow write in GET RESPONSE High
CVE-2025-66037 Out-of-bounds heap read in X.509/SPKI handling Medium
CVE-2025-66038 sc_compacttlv_find_tag returning out-of-bounds pointers Medium
CVE-2025-66215 Stack-buffer-overflow write in card-oberthur High

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

deepin-ci-robot and others added 5 commits May 17, 2026 02:15
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>
@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign qaqland for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions

Copy link
Copy Markdown

TAG Bot

TAG: 0.25.1-1deepin5
EXISTED: no
DISTRIBUTION: unstable

@hudeng-go

Copy link
Copy Markdown
Contributor

/integrate

@github-actions

Copy link
Copy Markdown

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#4026
PrNumber: 4026
PrBranch: auto-integration-26008506163

@Zeno-sole Zeno-sole merged commit a364f9d into master Jun 11, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants