Skip to content

fix(cve): CVE-2026-27456 - loopdev: add LOOPDEV_FL_NOFOLLOW to prevent symlink attacks - #21

Merged
Zeno-sole merged 3 commits into
masterfrom
fix-cve/CVE-2026-27456
Jul 22, 2026
Merged

fix(cve): CVE-2026-27456 - loopdev: add LOOPDEV_FL_NOFOLLOW to prevent symlink attacks#21
Zeno-sole merged 3 commits into
masterfrom
fix-cve/CVE-2026-27456

Conversation

@deepin-ci-robot

@deepin-ci-robot deepin-ci-robot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

CVE: CVE-2026-27456 (medium) - 循环设备上下文中的符号链接攻击漏洞,攻击者可通过替换备份文件为符号链接来读取任意根属主的文件
Upstream: util-linux/util-linux@7916466

Co-authored-by: hudeng [email protected]
Generated-By: qwen3.6-35b

Summary by Sourcery

Apply upstream fix for CVE-2026-27456 by adding a security patch to loop device handling to prevent symlink-based attacks.

Bug Fixes:

  • Mitigate CVE-2026-27456 by ensuring loop device operations do not follow symlinks, preventing unauthorized root-owned file reads.

Build:

  • Update Debian packaging to include the new CVE-2026-27456 patch in the changelog and patch series.
    CVE: CVE-2026-3184 (medium) - A flaw was found in util-linux. Improper hostname canonicalization in the login(1) utility, when invoked with the -h option, can modify the supplied remote hostname before setting PAM_RHOST. A remote attacker could exploit this by providing a specially crafted hostname, potentially bypassing host-based access controls.
    Upstream: util-linux/util-linux@8b29aeb

Co-authored-by: hudeng [email protected]
Generated-By: qwen3.6-35b
CVE: CVE-2026-13595 (medium) - libblkid: fix use-after-free in nested partition probing - The partitions list stores partitions in a contiguous array grown by reallocarray(). When the array is reallocated to a new address, all existing blkid_partition pointers become dangling.
Upstream: util-linux/util-linux@60ca861

Co-authored-by: hudeng [email protected]
Generated-By: qwen3.6-35b

…t symlink attacks

CVE: CVE-2026-27456 (medium) - 循环设备上下文中的符号链接攻击漏洞,攻击者可通过替换备份文件为符号链接来读取任意根属主的文件
Upstream: util-linux/util-linux@7916466

Co-authored-by: hudeng <[email protected]>
Generated-By: qwen3.6-35b
@sourcery-ai

sourcery-ai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a Debian patch for CVE-2026-27456 to harden loop device handling against symlink attacks, and wires it into the packaging via changelog and series updates.

File-Level Changes

Change Details Files
Introduce a CVE-2026-27456 security patch that adds LOOPDEV_FL_NOFOLLOW handling to prevent symlink-based attacks in loop device context.
  • Create a new patch file implementing upstream commit 79164668a4, adding LOOPDEV_FL_NOFOLLOW usage in loop device setup code.
  • Align Debian’s util-linux sources with the upstream security fix for CVE-2026-27456, ensuring loop backups cannot be replaced with symlinks to root-owned files.
debian/patches/CVE-2026-27456.patch
Integrate the new CVE patch into Debian packaging metadata.
  • Register the CVE-2026-27456 patch in debian/patches/series so it is applied during package build.
  • Add a corresponding entry in debian/changelog describing the security fix and referencing CVE-2026-27456 and the upstream commit.
debian/changelog
debian/patches/series

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@deepin-ci-robot
deepin-ci-robot requested a review from myml July 17, 2026 08:48
@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign liujianqiang-niu for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

TAG Bot

TAG: 2.40.4-3deepin12
EXISTED: no
DISTRIBUTION: unstable

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

deepin-ci-robot and others added 2 commits July 21, 2026 08:37
CVE: CVE-2026-3184 (medium) - A flaw was found in util-linux. Improper hostname canonicalization in the login(1) utility, when invoked with the -h option, can modify the supplied remote hostname before setting PAM_RHOST. A remote attacker could exploit this by providing a specially crafted hostname, potentially bypassing host-based access controls.
Upstream: util-linux/util-linux@8b29aeb

Co-authored-by: hudeng <[email protected]>
Generated-By: qwen3.6-35b
…tition probing

CVE: CVE-2026-13595 (medium) - libblkid: fix use-after-free in nested partition probing - The partitions list stores partitions in a contiguous array grown by reallocarray(). When the array is reallocated to a new address, all existing blkid_partition pointers become dangling.
Upstream: util-linux/util-linux@60ca861

Co-authored-by: hudeng <[email protected]>
Generated-By: qwen3.6-35b
@hudeng-go

Copy link
Copy Markdown
Contributor

/integrate

@github-actions

Copy link
Copy Markdown

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#4364
PrNumber: 4364
PrBranch: auto-integration-29896383703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants