Open
libcap: reject negative capability index in IAB vector accessors #110
Lei-ChenAdd on 15 days ago
libcap: reject negative capability index in IAB vector accessors #110
Open
Merge blocked
15 days ago Associated issue: libcap: cap_iab_get_vector/set_vector 未校验负值 bit 导致堆越界读写(待 backport 上游 35e8ea4)
15 days ago Associated issue: libcap: cap_iab_get_vector/set_vector 未校验负值 bit 导致堆越界读写(待 backport 上游 35e8ea4)
15 days ago Set robertosassu,zhujianwei001,mailofzxf as approver
15 days ago Added label: sig/sig-security-facility
openeuler-ci-bot
15 days ago Comments:
15 days ago Comments:
Welcome To openEuler Community
Hey @hello-leichen , 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: sig-security-facility ,
and any of the maintainers: @mailofzxf, @robertosassu, @zhujianwei001 ,
and any of the committers: @qq_28851361 .


47 messages are collapsed here。 See more
6 days ago Removed label: ci_processing
openeuler-bot
6 days ago Comments:
6 days ago Comments:
| Check Name | Build Result | 详情 | Build Details | |
|---|---|---|---|---|
| check_binary_file | ✅SUCCESS | #38 | ||
| 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 | #38 | |
| check_install | ✅SUCCESS | |||
| check_license | ✅SUCCESS | |||
| aarch64 | check_build | ✅SUCCESS | #38 | |
| check_install | ✅SUCCESS | |||
| check_license | ✅SUCCESS | |||


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


openeuler-bot
6 days ago Comments:
6 days ago Comments:
当前PR是否有AI参与:
[] 否
[x] 是
__1. Agent平台信息: opencode v2.2.2
__2. 模型信息: DeepSeek-V4.1-Flash
__3. Prompt摘要: 按上游 commit 回移 libcap IAB 向量负索引越界修复
参考:openEuler社区《生成式AI工具使用与开源贡献政策》
PR功能描述 / 为什么需要这个合入:
cap_iab_get_vector()/set_vector() 只检查 bit >= cap_max_bits(),未拒绝负数。负的 cap_value_t 经算术右移后变成巨大无符号索引,越界读写 iab->i[]/a[]/nb[]。补上 bit < 0 检查。
补丁:
该PR关联的issue
fixes #44
希望检视人员了解:
PoC:set_vector(CAP_IAB_INH, -32) 基线段错误,修复后返回 -1/EINVAL。补丁 -F0 无 offset;libcap/progs 构建通过。