fix CVE-2026-103531 #143
Open
jiayuzheAdd on 8 days ago
jiayuzhe
jiayuzhe
8 days ago

关联 issue

Fixes #55

当前PR是否有AI参与:

[] 否

[x] 是

__1. Agent平台信息: ZCode 3.18.2
__2. 模型信息: DeepSeek-V4.1-Flash
__3. Prompt摘要: 回合 OpenSC 上游 setcos FCI 缓冲区溢出修复到 0.23.0,更新 spec 与 changelog 并验证构建

希望检视人员了解:

代码由AI辅助编写,已人工逐行核对逻辑、校验功能正确性,确保与预期一致。


问题/特性描述

CVE-2026-103531:setcos_construct_fci_44() 把 type_attr/sec_attr/prop_attr 直接 memcpy 进固定大小的栈缓冲 buf,无长度校验,构造的卡片属性可造成栈溢出。上游补三处长度检查。

上游来源

https://github.com/OpenSC/OpenSC/commit/ad730304052937c32b4eb489a06835ac6123632c

修复类型

回合说明

直接使用上游补丁,未做修改。

基于 opensc 0.23.0 回合(含 32 个历史补丁),补丁 fuzz=0 干净合入。
ABI:模块内部静态函数实现,无导出符号变化。
验证:本地 rpmbuild -bp 与 rpmbuild -bc 均 rc=0。

likedislike
Merge blocked
jiayuzhejiayuzhe
8 days ago Created pull request, commit 6debd1f7
jiayuzhejiayuzhe
8 days ago Associated issue: CVE-2026-103531
openeuler-ci-botopeneuler-ci-botCollaborators
8 days ago Set licihua,dillon_chen,overweight,zhujianwei001,xujing99,shenyangyang as approver
openeuler-ci-botopeneuler-ci-botCollaborators
8 days ago Added label: sig/Base-service
openeuler-ci-bot
openeuler-ci-botCollaborators
8 days ago Comments:

Welcome To openEuler Community

Hey @M3Captain , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: Base-service ,
and any of the maintainers: @dillon_chen, @licihua, @overweight, @shenyangyang, @xujing99, @zhujianwei001 ,
and any of the committers: @andy-lau, @dillon_chen .

likedislike
61 messages are collapsed here。 See more
openeuler-ci-botopeneuler-ci-botCollaborators
8 days ago Added label: ai-compliance-failed
openeuler-ci-bot
openeuler-ci-botCollaborators
8 days ago Comments:

AI Declaration Check Failed

@M3Captain, the PR description is missing the AI tool usage declaration. Please add the AI tool and model used. Details: AI Coding Assistants. ⚠️

likedislike
jiayuzhejiayuzhe
8 days ago Modify description of pull request
openeuler-ci-botopeneuler-ci-botCollaborators
8 days ago Removed label: ai-compliance-failed
openeuler-ci-botopeneuler-ci-botCollaborators
8 days ago Added label: ai-compliance-successful