fix(util-linux): CVE-2026-27456, CVE-2026-3184 - #19
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds two Debian patch files and wires them into the package build to fix two upstream-reported security issues in util-linux: a TOCTOU/symlink attack vector in mount loop device handling and a PAM_RHOST bypass in login, by backporting the corresponding upstream commits. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
TAG Bot TAG: 2.40.4-3deepin15 |
|
/integrate |
|
AutoIntegrationPr Bot |
|
TAG Bot New tag: 2.40.4-3deepin12 |
|
TAG Bot New tag: 2.40.4-3deepin14 |
…wing on detached tree [CVE-202 CVE: CVE-2026-78409 (high) - X-mount.subdir 选项在 Linux 6.15 及更高版本上使用分离树快速路径,并将配置的子目录传递给 open_tree(),使用 AT_SYMLINK_NOFOLLOW 标志。但该标志不会阻止中间符号链接遍历或保持解析在新挂载的文件系统内。具有 fstab 授权的 X-mount.subdir 条目的本地非特权用户可以附加主机路径到预期的安装点。 Upstream: util-linux/util-linux@ce4e181aa Co-authored-by: hudeng <hudeng@deepin.org> Generated-By: qwen3.6-35b
…er join to prevent authority l CVE: CVE-2026-78408 (high) - nsenter --join-cgroup 选项以 root 身份打开目标的 cgroup.procs 文件,并在后续的命名空间更改、凭据更改和 execve() 调用期间保持该文件描述符处于打开状态。由于内核使用原始打开时的凭据检查后续的 cgroup 迁移,因此在攻击者控制的目标中运行的程序可以继承 root 的移动主机进程到 cgroups 的能力。在特权操作员对目标使用 --join-cgroup 后,非特权用户可以迁移和终止无关的 root 进程。 Upstream: util-linux/util-linux@afe067c979b9ba2cbe856f7c6411210120ea62aa,https://github.com/util-linux/util-linux/commit/003c622428f09fc6544ed06b533d278dc14f88e0 Co-authored-by: hudeng <hudeng@deepin.org> Generated-By: qwen3.6-35b
…or restricted users [CVE-2026- CVE: CVE-2026-78410 (high) - 受限绑定挂载从 fstab 获取源路径,但在特权挂载操作前未锁定该源路径。本地非特权用户可以通过替换 fstab 授权的绑定源路径或其可写祖先目录为符号链接,将特权挂载操作重定向到任意目录。当与 X-mount.owner/group/mode 结合使用时,挂载后的钩子会对绑定源 inode 应用 root 权限的 chown/chmod,从而在未经 fstab 授权的路径上获得所有权/权限修改能力。 Upstream: util-linux/util-linux@9fcb98bf0 Co-authored-by: hudeng <hudeng@deepin.org> Generated-By: qwen3.6-35b
…ter failed mount helper [CVE-2 CVE: CVE-2026-76642 (high) - libmount: skip post-mount hooks after failed mount helper Upstream: util-linux/util-linux@1d14676 Co-authored-by: hudeng <hudeng@deepin.org> Generated-By: qwen3.6-35b
554c932 to
0a3bd4a
Compare
The openat2 hardening patches (CVE-2026-78409/78410) use struct open_how and RESOLVE_* flags from <linux/openat2.h>, but configure.ac never checked for that header, so HAVE_LINUX_OPENAT2_H was never defined while SYS_openat2 was available - the build failed with 'variable how has initializer but incomplete type' in lib/fileutils.c. Add a debian patch that: - asks configure for linux/openat2.h - includes it from mount-api-utils.h and provides RESOLVE_* fallbacks - corrects the RESOLVE_NO_SYMLINKS fallback value (0x02 is RESOLVE_NO_MAGICLINKS; RESOLVE_NO_SYMLINKS is 0x04) - declares mnt_context_target_fd_required() in mountP.h
CVE 修复
CVE-2026-27456 (low)
Add LOOPDEV_FL_NOFOLLOW to prevent symlink attacks in mount.
CVE-2026-3184 (medium)
Use original FQDN for PAM_RHOST in login.
Changes
Generated-By: glm-5.1
Co-Authored-By: hudeng hudeng@deepin.org
Summary by Sourcery
Apply util-linux security fixes to protect mount and login against symlink and remote-host identity bypass vulnerabilities.
Bug Fixes:
Chores: