登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
8
Star
0
Fork
28
src-openEuler
/
krb5
代码
Issues
3
Pull Requests
4
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
回合上游社区补丁,补丁数量:6
已完成
#IBVPPI
缺陷
peulerosci
创建于
2025-03-24 11:03
待合入补丁列表 1. **0a23b0cd9466e8a7c6fb82fce185be6e0834ce26** Fix krb5_ldap_list_policy() filtering loop The loop at the end of this function is intended to ignore ticket policy DNs that can't be converted to names. But it instead leaves a hole in the output list if that happens, effectively truncating the list and leaking any subsequent entries. Use the correct index for the output list. ticket: 9148 (new) 2. **aac785e5e050415f8b8cb29059d2f658f755e7e7** Fix type violation in libkrad remote.c uses casts to cover up a signature difference between iterator() and krad_packet_iter_cb. The difference is unimportant in typical platform ABIs, but calling the function this way is undefined behavior (C99 6.3.2.8). Fix iterator() to conform to krad_packet_iter_cb and remove the casts. 3. **3b57de1b68f31fa297d91e8b00bd91587d71fd02** Fix various small logic errors Correct five logic errors (all unlikely to manifest as user-visible bugs) found by static analysis. Reported by Valery Fedorenko. 4. **d09433aed821d40142b10dc5b4a0aa8110c5a09e** Prevent undefined shift in decode_krb5_flags() In the statement f |= bits[i] << (8 * (3 - i)), bits[i] is implicitly promoted from uint8_t to int according to the integer promotion rules (C99 6.3.1.1). If i is 0 and bits[i] >= 128, the result cannot be represented as an int and the behavior of the shift is undefined (C99 6.5.7). To ensure that the shift operation is defined, cast bits[i] to uint32_t. (f and the function output are int32_t, but the conversion of uint32_t to int32_t is implementation-defined when the value cannot be represented, not undefined. We check in configure.ac that the platform is two's complement.) (Discovered by OSS-Fuzz.) 5. **85c93922232300b0316546a2fc6dd93c7e2906cd** Fix LDAP module leak on authentication error In initialize_server(), unbind the server handle if authenticate() fails. [ghudson@mit.edu: rewrote commit message] ticket: 9153 (new) 6. **e50f46b210ddafe85cc917e2571516ade46bc65f** Fix minor logic errors In k5_externalize_auth_context(), serialize the correct field when remote_port is set. This is not a reachable bug because the function is only accessible via gss_export_sec_context(), and the GSS library does not set a remote port. In generic_gss_oid_to_str(), remove an inconsistently-applied test for a null minor_status. Also remove minor_status null checks from generic_gss_release_oid() and generic_gss_str_to_oid(), but add output initializations and pointer checks to the API functions in g_oid_ops.c in a similar manner to other GSSAPI functions. Remove gssint_copy_oid_set() and replace its one call with a call to generic_gss_copy_oid_set(). In the checksum functions, avoid crashing if the caller passes a null key and checksum type 0. An error will be returned instead when find_cksumtype() can't find the checksum type. (krb5_k_verify_checksum() already had this check.) In pkinit_open_session(), remove an unnecessary null check for ctx->p11_module_name, and add a check for p11name being null due to an asprintf() failure. In profile_add_node(), add a check for null ret_node in the duplicate subsection check. This is not a reachable bug because the function is currently never called with null ret_node and null value. In ksu's main(), check for krb5_cc_default_name() returning NULL (which only happens on allocation failure). Also clean up some vestiges left behind by commit 9ebae7cb434b9b177c0af85c67a6d6267f46bc68. In ksu's get_authorized_princ_names(), close login_fp if we fail to open k5users_path. In the KDC and kpropd write_pid_file(), avoid briefly leaking the file handle on write failure. Reported by Valery Fedorenko.
待合入补丁列表 1. **0a23b0cd9466e8a7c6fb82fce185be6e0834ce26** Fix krb5_ldap_list_policy() filtering loop The loop at the end of this function is intended to ignore ticket policy DNs that can't be converted to names. But it instead leaves a hole in the output list if that happens, effectively truncating the list and leaking any subsequent entries. Use the correct index for the output list. ticket: 9148 (new) 2. **aac785e5e050415f8b8cb29059d2f658f755e7e7** Fix type violation in libkrad remote.c uses casts to cover up a signature difference between iterator() and krad_packet_iter_cb. The difference is unimportant in typical platform ABIs, but calling the function this way is undefined behavior (C99 6.3.2.8). Fix iterator() to conform to krad_packet_iter_cb and remove the casts. 3. **3b57de1b68f31fa297d91e8b00bd91587d71fd02** Fix various small logic errors Correct five logic errors (all unlikely to manifest as user-visible bugs) found by static analysis. Reported by Valery Fedorenko. 4. **d09433aed821d40142b10dc5b4a0aa8110c5a09e** Prevent undefined shift in decode_krb5_flags() In the statement f |= bits[i] << (8 * (3 - i)), bits[i] is implicitly promoted from uint8_t to int according to the integer promotion rules (C99 6.3.1.1). If i is 0 and bits[i] >= 128, the result cannot be represented as an int and the behavior of the shift is undefined (C99 6.5.7). To ensure that the shift operation is defined, cast bits[i] to uint32_t. (f and the function output are int32_t, but the conversion of uint32_t to int32_t is implementation-defined when the value cannot be represented, not undefined. We check in configure.ac that the platform is two's complement.) (Discovered by OSS-Fuzz.) 5. **85c93922232300b0316546a2fc6dd93c7e2906cd** Fix LDAP module leak on authentication error In initialize_server(), unbind the server handle if authenticate() fails. [ghudson@mit.edu: rewrote commit message] ticket: 9153 (new) 6. **e50f46b210ddafe85cc917e2571516ade46bc65f** Fix minor logic errors In k5_externalize_auth_context(), serialize the correct field when remote_port is set. This is not a reachable bug because the function is only accessible via gss_export_sec_context(), and the GSS library does not set a remote port. In generic_gss_oid_to_str(), remove an inconsistently-applied test for a null minor_status. Also remove minor_status null checks from generic_gss_release_oid() and generic_gss_str_to_oid(), but add output initializations and pointer checks to the API functions in g_oid_ops.c in a similar manner to other GSSAPI functions. Remove gssint_copy_oid_set() and replace its one call with a call to generic_gss_copy_oid_set(). In the checksum functions, avoid crashing if the caller passes a null key and checksum type 0. An error will be returned instead when find_cksumtype() can't find the checksum type. (krb5_k_verify_checksum() already had this check.) In pkinit_open_session(), remove an unnecessary null check for ctx->p11_module_name, and add a check for p11name being null due to an asprintf() failure. In profile_add_node(), add a check for null ret_node in the duplicate subsection check. This is not a reachable bug because the function is currently never called with null ret_node and null value. In ksu's main(), check for krb5_cc_default_name() returning NULL (which only happens on allocation failure). Also clean up some vestiges left behind by commit 9ebae7cb434b9b177c0af85c67a6d6267f46bc68. In ksu's get_authorized_princ_names(), close login_fp if we fail to open k5users_path. In the KDC and kpropd write_pid_file(), avoid briefly leaking the file handle on write failure. Reported by Valery Fedorenko.
评论 (
6
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
Xu Raoqing
xuraoqing
负责人
协作者
+负责人
+协作者
标签
sig/Base-service
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (33)
标签 (35)
master
openEuler-22.03-LTS-SP4
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-25.09
openEuler-25.03
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP3
openEuler-22.03-LTS-SP1
openEuler-24.09
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS
openEuler-22.03-LTS-Next
openEuler-20.03-LTS-SP3
openEuler-20.03-LTS-SP1
openEuler-23.09
openEuler-23.03
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-Next
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP1
Multi-Version_OpenStack-Antelope_openEuler-24.03-LTS-SP2
openEuler-22.09
openEuler-20.03-LTS-Next
openEuler-20.03-LTS-SP2
openEuler-21.03
openEuler-21.09
openEuler-20.03-LTS
openEuler-20.09
openEuler1.0
openEuler1.0-base
openEuler-25.09-release
openEuler-22.03-LTS-SP3-update-20250905
openEuler-20.03-LTS-SP4-update-20250905
openEuler-22.03-LTS-SP4-update-20250905
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-update-20250214
openEuler-24.03-LTS-SP1-update-20250214
openEuler-22.03-LTS-SP4-update-20250214
openEuler-22.03-LTS-SP3-update-20250214
openEuler-20.03-LTS-SP4-update-20250214
openEuler-24.03-LTS-SP1-release
openEuler-24.03-LTS-update-20241115
openEuler-22.03-LTS-SP4-update-before-20241025
openEuler-22.03-LTS-SP4-before-20241025
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200928
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/krb5.git
git@gitee.com:src-openeuler/krb5.git
src-openeuler
krb5
krb5
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册