登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
10
Star
3
Fork
22
src-openEuler
/
libselinux
关闭
代码
Issues
2
Pull Requests
1
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
回合上游社区补丁,补丁数量:10
已完成
#IBSZ63
缺陷
peulerosci
创建于
2025-03-13 09:49
<p>回合如下10个补丁:</p><p></p><p></p><table ><tr><td colSpan="1" rowSpan="1">软件包</td><td colSpan="1" rowSpan="1">CommitId</td><td colSpan="1" rowSpan="1">描述</td><td colSpan="1" rowSpan="1">分析人</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:libselinux</td><td colSpan="1" rowSpan="1">6e2f7033406aeccc1fb93e580be8120f113520a6</td><td colSpan="1" rowSpan="1">libselinux: avoid logs in get_ordered_context_list without policyIf no policy has been loaded yet and thus the current context is stillkernel avoid logging failures in get_ordered_context_list, like:<br/>get_ordered_context_list: error in processing configuration file /etc/selinux/debian/contexts/users/rootget_ordered_context_list: error in processing configuration file /etc/selinux/debian/contexts/default_contexts<br/>Move the context parsing from get_context_user failure and not logged.<br/><br/>The command line option -d is not supported, drop from usage message.<br/><br/>In case the specfiles have very long paths or there are too many abortinstead of writing past the stack buffer.<br/><br/>In case the init function for a selabel backend fails, free the possiblealready allocated data:<br/>Direct leak of 16 byte#1 0x7233764baa65 in selabel_media_init /home/christian/Coding/workspaces/selinux/libselinux/src/label_media.c:226:30#2 0x7233764ac1fe in selabel_open /home/christian/Coding/workspaces/selinux/libselinux/src/label.c:227:6#3 0x5e7e2bf3ebfc in main /home/christian/Coding/workspaces/selinux/libselinux/utils/selabel_digest.c:125:8#4 0x7233761856c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16<br/>SUMMARY: AddressSanitizer: 16 byte.<br/><br/>In case scandir finds no entries still free the returned result toavoid leaking it.<br/>Also do not override errno in case of a failure.<br/>Reported.by: Cppcheck<br/><br/>Since commit 5876aca0 the close handler of label backends must support partial initializedstate, e.g. ->data being NULL. Thus checks for NULL were added, but intwo cases the pointers in question were already dereferenced before.<br/>Reorder the dereference after the NULL-checks.<br/><br/>Fixes segfault in selabel_open:<br/>$ sestatusSELinux status: disabled<br/>$ cat /etc/selinux/configcat: /etc/selinux/config: No such file or directory<br/>$ matchpathcon /abc[1] 907999 segmentation fault matchpathcon /abc<br/><br/>Fixes:Error: RESOURCE_LEAK {<br/><br/>Free the allocated line if it fails to parse via process_line for theX or media database.<br/>Also declare the line_buf parameter of process_line const, so it ismore obvious it is not modified or free'd.<br/><br/>In selinux_restorecon_set_sehandle before setting the new one.<br/><br/><br/><br/></td></tr></table><p></p> **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1
<p>回合如下10个补丁:</p><p></p><p></p><table ><tr><td colSpan="1" rowSpan="1">软件包</td><td colSpan="1" rowSpan="1">CommitId</td><td colSpan="1" rowSpan="1">描述</td><td colSpan="1" rowSpan="1">分析人</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:libselinux</td><td colSpan="1" rowSpan="1">6e2f7033406aeccc1fb93e580be8120f113520a6</td><td colSpan="1" rowSpan="1">libselinux: avoid logs in get_ordered_context_list without policyIf no policy has been loaded yet and thus the current context is stillkernel avoid logging failures in get_ordered_context_list, like:<br/>get_ordered_context_list: error in processing configuration file /etc/selinux/debian/contexts/users/rootget_ordered_context_list: error in processing configuration file /etc/selinux/debian/contexts/default_contexts<br/>Move the context parsing from get_context_user failure and not logged.<br/><br/>The command line option -d is not supported, drop from usage message.<br/><br/>In case the specfiles have very long paths or there are too many abortinstead of writing past the stack buffer.<br/><br/>In case the init function for a selabel backend fails, free the possiblealready allocated data:<br/>Direct leak of 16 byte#1 0x7233764baa65 in selabel_media_init /home/christian/Coding/workspaces/selinux/libselinux/src/label_media.c:226:30#2 0x7233764ac1fe in selabel_open /home/christian/Coding/workspaces/selinux/libselinux/src/label.c:227:6#3 0x5e7e2bf3ebfc in main /home/christian/Coding/workspaces/selinux/libselinux/utils/selabel_digest.c:125:8#4 0x7233761856c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16<br/>SUMMARY: AddressSanitizer: 16 byte.<br/><br/>In case scandir finds no entries still free the returned result toavoid leaking it.<br/>Also do not override errno in case of a failure.<br/>Reported.by: Cppcheck<br/><br/>Since commit 5876aca0 the close handler of label backends must support partial initializedstate, e.g. ->data being NULL. Thus checks for NULL were added, but intwo cases the pointers in question were already dereferenced before.<br/>Reorder the dereference after the NULL-checks.<br/><br/>Fixes segfault in selabel_open:<br/>$ sestatusSELinux status: disabled<br/>$ cat /etc/selinux/configcat: /etc/selinux/config: No such file or directory<br/>$ matchpathcon /abc[1] 907999 segmentation fault matchpathcon /abc<br/><br/>Fixes:Error: RESOURCE_LEAK {<br/><br/>Free the allocated line if it fails to parse via process_line for theX or media database.<br/>Also declare the line_buf parameter of process_line const, so it ismore obvious it is not modified or free'd.<br/><br/>In selinux_restorecon_set_sehandle before setting the new one.<br/><br/><br/><br/></td></tr></table><p></p> **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1
评论 (
3
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
luhuaxin
HuaxinLuGitee
负责人
协作者
+负责人
+协作者
标签
sig/sig-security-fac
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
1
https://gitee.com/src-openeuler/libselinux.git
git@gitee.com:src-openeuler/libselinux.git
src-openeuler
libselinux
libselinux
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册