Open
fix CVE-2026-10275: pkcs11-tool buffer overflow in test_kpgen_certwrite #141
VenlandAdd on Oct 8
fix CVE-2026-10275: pkcs11-tool buffer overflow in test_kpgen_certwrite #141
Open
Merge blocked
Oct 8 Associated issue: CVE-2023-40660,CVE-2026-10275
Oct 8 Set licihua,dillon_chen,overweight,zhujianwei001,xujing99,shenyangyang as approver
Oct 8 Set licihua,dillon_chen,overweight,zhujianwei001,xujing99,shenyangyang as approver
Oct 8 Added label: sig/Base-service
openeuler-ci-bot
Oct 8 Comments:
Oct 8 Comments:
Welcome To openEuler Community
Hey @Venland , 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 .


69 messages are collapsed here。 See more
Oct 8 Removed label: ci_processing
openeuler-bot
Oct 8 Comments:
Oct 8 Comments:
| Check Name | Build Result | 详情 | Build Details | |
|---|---|---|---|---|
| check_binary_file | ✅SUCCESS | #122 | ||
| check_lfsconfig | ☑EXCLUDE | |||
| check_package_yaml_file | ✅SUCCESS | |||
| check_repo_in_maintain | ✅SUCCESS | |||
| check_consistency | ✅SUCCESS | |||
| check_spec_file | ✅SUCCESS | |||
| x86_64 | check_build | ✅SUCCESS | #122 | |
| check_install | ✅SUCCESS | |||
| check_license | ✅SUCCESS | |||
| aarch64 | check_build | ✅SUCCESS | #122 | |
| check_install | ✅SUCCESS | |||
| check_license | ✅SUCCESS | |||


Oct 8 Added label: ci_successful
openeuler-bot
Oct 8 Comments:
Oct 8 Comments:
如下为接口变更检查结果,目标分支为openEuler-20.03-LTS-SP4,请PR提交者check差异信息
| Arch Name | Check Items | Rpm Name | Check Result | Build Details |
|---|---|---|---|---|
| compare_package(x86_64) | add_rpms | ✅SUCCESS | #122 | |
| delete_rpms | ✅SUCCESS | |||
| rpm_abi | ✅SUCCESS | |||
| rpm_cmd | ✅SUCCESS | |||
| rpm_config | ✅SUCCESS | |||
| rpm_files | ✅SUCCESS | |||
| rpm_lib | ✅SUCCESS | |||
| rpm_provides | ✅SUCCESS | |||
| rpm_requires | ✅SUCCESS | |||
| compare_package(aarch64) | add_rpms | ✅SUCCESS | #122 | |
| delete_rpms | ✅SUCCESS | |||
| rpm_abi | ✅SUCCESS | |||
| rpm_cmd | ✅SUCCESS | |||
| rpm_config | ✅SUCCESS | |||
| rpm_files | ✅SUCCESS | |||
| rpm_lib | ✅SUCCESS | |||
| rpm_provides | ✅SUCCESS | |||
| rpm_requires | ✅SUCCESS | |||
| rpm_symbol | ✅SUCCESS |


openeuler-bot
Oct 8 Comments:
Oct 8 Comments:
当前PR是否有AI参与:
[x] 是
__1. Agent平台信息: Hermes Agent (CLI)
__2. 模型信息: GPT-5.2 (ozo)
__3. Prompt摘要: 分析 src-openeuler/opensc issue #54 (CVE-2026-10275, pkcs11-tool test_kpgen_certwrite 缓冲区溢出),backport 上游修复 commit 814f745b3b6d100295f65f1935edd33d520d33ab 到本分支,逐分支核对源码、验证补丁应用、EulerMaker 私有工程编译验证通过后提交本 PR。
关联issue: https://atomgit.com/src-openeuler/opensc/issues/54
修复内容
Backport upstream commit 814f745b3b6d100295f65f1935edd33d520d33ab
(https://github.com/OpenSC/OpenSC/commit/814f745b3b6d100295f65f1935edd33d520d33ab, PR https://github.com/OpenSC/OpenSC/pull/3684):
在 pkcs11-tool.c 的 test_kpgen_certwrite 中,对拷贝进 opt_object_id(100字节) 的 CKA_ID 增加长度检查,防止缓冲区溢出。
适配说明
本分支(0.20.0)无 PKCS 11 URI 解析代码,上游补丁的 URI hunk 不适用;且本分支 getID() 直接写入 opt_object_id_len(与新版 (size_t)i 形态不同),长度检查按本地代码上下文适配(防护逻辑与上游一致)。
验证结论
变更