已开启
fix CVE-2026-10275: pkcs11-tool buffer overflow in test_kpgen_certwrite #137
fix CVE-2026-10275: pkcs11-tool buffer overflow in test_kpgen_certwrite #137
已开启
Venland创建于 10月8日
Venland
Venland
10月8日

当前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.23.0)无 PKCS 11 URI 解析代码,上游补丁的 URI hunk 不适用,仅保留 test_kpgen_certwrite 处的修复 hunk(上游原代码,补丁以分支补丁应用后的源码为基准生成)。

验证结论

  • 补丁在分支补丁应用后的源码树上干净应用,结果树与验证修复树 diff -r 逐字节一致
  • git am 成功
  • EulerMaker 私有工程 x86_64 全量构建通过(rpmbuild Exit status 0,产物 opensc-0.23.0-12)

变更

  • 新增 backport-CVE-2026-10275.patch
  • opensc.spec: Patch32 声明 + Release 11→12 + changelog
likedislike
合并受阻
VenlandVenland
10月8日 创建了 pull request,commit 40dc4888
VenlandVenland
10月8日 关联了issue:CVE-2023-40660,CVE-2026-10275
openeuler-ci-botopeneuler-ci-bot成员
10月8日 将licihua,dillon_chen,overweight,zhujianwei001,xujing99,shenyangyang设为审查人
openeuler-ci-botopeneuler-ci-bot成员
10月8日 添加了label:sig/Base-service
openeuler-ci-bot
openeuler-ci-bot成员
10月8日 评论:

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 .

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
10月8日 评论:

当前仓库存在以下 保护分支 :

Protected Branch Version Release
master 0.27.1 1
openEuler-26.09 0.27.1 1
openEuler-24.03-LTS-SP1 0.23.0 11
openEuler-24.03-LTS-SP3 0.23.0 11
openEuler-24.03-LTS-SP4 0.23.0 11
openEuler-24.03-LTS-Next 0.23.0 11
openEuler-26.09-DevStation 0.27.1 1
openEuler-22.03-LTS-SP4 0.21.0 11
openEuler-20.03-LTS-SP4 0.20.0 15
openEuler1.0-base 0.20.0 1
openEuler1.0 0.20.0 1

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
openeuler-ci-botopeneuler-ci-bot成员
10月8日 添加了label:ai-co-authored
openeuler-ci-botopeneuler-ci-bot成员
10月8日 添加了label:openeuler-cla/yes
openeuler-ci-botopeneuler-ci-bot成员
10月8日 添加了label:ai-includes-code
openeuler-ci-botopeneuler-ci-bot成员
10月8日 添加了label:ai-compliance-failed
openeuler-ci-bot
openeuler-ci-bot成员
10月8日 评论:

AI Declaration Check Failed

@Venland, AI declaration is not compliant. AI tool: Hermes Agent (CLI)

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
VenlandVenland
10月8日 修改了pull request 的描述
VenlandVenland
10月8日 修改了pull request 的描述
openeuler-ci-botopeneuler-ci-bot成员
10月8日 删除了label:ai-compliance-failed
openeuler-ci-botopeneuler-ci-bot成员
10月8日 添加了label:ai-compliance-successful
openeuler-ci-bot
openeuler-ci-bot成员
10月8日 评论:

AI Declaration Check Failed

@Venland, AI declaration is not compliant. AI tool: Hermes Agent

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
10月8日 评论:

AI Declaration Check Failed

@Venland, AI declaration is not compliant. AI tool: Hermes Agent (CLI)

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
openeuler-bot
openeuler-bot成员
10月8日 评论:

门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/src-openeuler/trigger/opensc/105

likedislike
openeuler-botopeneuler-bot成员
10月8日 添加了label:ci_processing
openeuler-bot
openeuler-bot成员
10月8日 评论:

x86_64架构构建及构建后检查:multiarch/src-openeuler/x86-64/opensc/105

likedislike
openeuler-bot
openeuler-bot成员
10月8日 评论:

aarch64架构构建及构建后检查:multiarch/src-openeuler/aarch64/opensc/105

likedislike
openeuler-botopeneuler-bot成员
10月8日 删除了label:ci_processing
openeuler-bot
openeuler-bot成员
10月8日 评论:
Check Name Build Result 详情 Build Details
check_binary_file ✅SUCCESS #105
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 #105
check_install ✅SUCCESS
check_license ✅SUCCESS
aarch64 check_build ✅SUCCESS #105
check_install ✅SUCCESS
check_license ✅SUCCESS
likedislike
openeuler-botopeneuler-bot成员
10月8日 添加了label:ci_successful
openeuler-bot
openeuler-bot成员
10月8日 评论:

如下为接口变更检查结果,目标分支为openEuler-24.03-LTS-SP1,请PR提交者check差异信息

Arch Name Check Items Rpm Name Check Result Build Details
compare_package(x86_64) add_rpms ✅SUCCESS #105
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
compare_package(aarch64) add_rpms ✅SUCCESS #105
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
likedislike
openeuler-bot
openeuler-bot成员
10月8日 评论:
likedislike
VenlandVenland
10月8日 预合并成功(commit_id: 1ff94cee22c312bad7c4730de41ee8771220f282)
VenlandVenland
10月8日 强制推送  1 个提交:5de65c96-fix CVE-2026-10275: pkcs11-tool buffer overflow in test_kpgen_certwrite
VenlandVenland
10月8日 预合并成功(commit_id: 53aca1083c7e4b5ea6c8758c4ce81af4b2b56fe7)
openeuler-ci-botopeneuler-ci-bot成员
10月8日 删除了label:ci_successful
openeuler-ci-bot
openeuler-ci-bot成员
10月8日 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci_successful.

likedislike
openeuler-ci-botopeneuler-ci-bot成员
10月8日 删除了label:openeuler-cla/yes
openeuler-ci-botopeneuler-ci-bot成员
10月8日 添加了label:openeuler-cla/yes
openeuler-ci-bot
openeuler-ci-bot成员
10月8日 评论:

CLA Signature Pass

Venland, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
VenlandVenland
10月8日 修改了pull request 的描述
openeuler-bot
openeuler-bot成员
10月8日 评论:

门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/src-openeuler/trigger/opensc/120

likedislike
openeuler-botopeneuler-bot成员
10月8日 添加了label:ci_processing
openeuler-bot
openeuler-bot成员
10月8日 评论:

x86_64架构构建及构建后检查:multiarch/src-openeuler/x86-64/opensc/120

likedislike
openeuler-bot
openeuler-bot成员
10月8日 评论:

aarch64架构构建及构建后检查:multiarch/src-openeuler/aarch64/opensc/120

likedislike
openeuler-botopeneuler-bot成员
10月8日 删除了label:ci_processing
openeuler-bot
openeuler-bot成员
10月8日 评论:
Check Name Build Result 详情 Build Details
check_binary_file ✅SUCCESS #120
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 #120
check_install ✅SUCCESS
check_license ✅SUCCESS
aarch64 check_build ✅SUCCESS #120
check_install ✅SUCCESS
check_license ✅SUCCESS
likedislike
openeuler-botopeneuler-bot成员
10月8日 添加了label:ci_successful
openeuler-bot
openeuler-bot成员
10月8日 评论:

如下为接口变更检查结果,目标分支为openEuler-24.03-LTS-SP1,请PR提交者check差异信息

Arch Name Check Items Rpm Name Check Result Build Details
compare_package(x86_64) add_rpms ✅SUCCESS #120
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
compare_package(aarch64) add_rpms ✅SUCCESS #120
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
likedislike
openeuler-bot
openeuler-bot成员
10月8日 评论:
likedislike