Closed
iSulad发现几个问题 #137
zhengxiaoxiaoAdd on  2 days agoClosed at  2 days ago
zhengxiaoxiao
2 days ago Create
  1. iSulad 恶意镜像 Config.Volumes 与父路径 symlink 导致宿主敏感目录 copy-up 泄露
    如果攻击者能让受害者或平台运行其构造的恶意镜像,就可以让 iSulad daemon 在创建容器时把宿主敏感目录复制到匿名卷中,随后容器可读取该副本。
  2. iSulad 组件的内存泄漏问题
    用户使用 --volumes-from 创建容器时,iSulad 通过 parse_volumes_from() -> mount_points_to_defs_mnts() 将源容器的挂载点转换为 defs_mount 数组。该函数只转换 volume 和 bind 类型,tmpfs 等类型通过 continue 跳过。
    假设源容器的 mount_points 为 [tmpfs(/tmp), tmpfs(/run), bind(/mnt/hostname)],执行流程如下:

迭代 i 类型 行为 mnts_len mnts[i] 检查 结果
0 0 tmpfs continue 跳过 0 — —
1 1 tmpfs continue 跳过 0 — —
2 2 bind 分配成功→写入mnts[0] 0 检查mnts[2]=NULL → 误判失败 跳转到out,mnts_len仍为0
在迭代2中,mount_point_to_defs_mnt() 成功分配内存并写入 mnts[0],但错误的 NULL 检查 mnts[i](即 mnts[2])访问了未初始化的位置(calloc 零初始化为 NULL),被误判为分配失败。函数跳转到 out 标签时 mnts_len 仍为 0。
3. iSulad show_shim_errlog 格式化字符串注入
4. 路径遍历问题

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
2 days ago Assign jingxiaolu、zhengxiaoxiaoGitee、Yekelu、haomintsai、chantsztung as responsible person
openeuler-ci-botopeneuler-ci-botCollaborators
2 days ago Added label: sig/iSulad
openeuler-ci-bot
openeuler-ci-botCollaborators
2 days ago Comments:

Welcome To openEuler Community

Hey @zhengxiaoxiaoGitee , 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: iSulad ,
and any of the maintainers: @Yekelu, @chantsztung, @haomintsai, @jingxiaolu ,

likedislike
Zzhengxiaoxiao
2 days ago Associated pull request
Zzhengxiaoxiao
2 days ago Associated pull request
Zzhengxiaoxiao
2 days ago Associated pull request
Zzhengxiaoxiao
2 days ago Associated pull request
Zzhengxiaoxiao
2 days ago Associated pull request
Zzhengxiaoxiao
2 days ago Associated pull request
Zzhengxiaoxiao
2 days ago Associated pull request
openeuler-ci-botopeneuler-ci-botCollaborators
2 days ago Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
2 days ago changed custom state from 待办的 to 已完成