Skip to content

fix(python-filelock): CVE-2025-68146, CVE-2026-22701#3

Merged
Zeno-sole merged 2 commits intomasterfrom
fix/CVE-2025-68146-multi
May 7, 2026
Merged

fix(python-filelock): CVE-2025-68146, CVE-2026-22701#3
Zeno-sole merged 2 commits intomasterfrom
fix/CVE-2025-68146-multi

Conversation

@deepin-ci-robot
Copy link
Copy Markdown
Contributor

CVE 修复

CVE ID: CVE-2025-68146, CVE-2026-22701

漏洞描述: TOCTOU symlink vulnerability in filelock package

  • CVE-2025-68146: TOCTOU symlink vulnerability in UnixFileLock and WindowsFileLock
  • CVE-2026-22701: TOCTOU symlink vulnerability in SoftFileLock

修复方案: Backport upstream security patches

  • UnixFileLock: Add O_NOFOLLOW flag to prevent symlink attacks
  • WindowsFileLock: Add reparse point detection to prevent symlink/junction attacks
  • SoftFileLock: Add conditional O_NOFOLLOW flag to prevent symlink attacks

受影响版本: < 3.20.1 (CVE-2025-68146), < 3.20.3 (CVE-2026-22701)

当前版本: 3.12.4

验证状态: ✅ quilt 验证通过


Fix-Approach: backport
Upstream: tox-dev/filelock@4724d7f
Upstream: tox-dev/filelock@255ed06
Generated by: glm-5.1
Co-Authored-By: hudeng hudeng@deepin.org

Generated by AI

deepin-ci-robot and others added 2 commits May 7, 2026 19:15
Fix TOCTOU symlink vulnerability in UnixFileLock and WindowsFileLock.

- Unix: Add O_NOFOLLOW flag to prevent symlink attacks
- Windows: Add reparse point detection to prevent symlink/junction attacks

Upstream: tox-dev/filelock@4724d7f
Generated-By: glm-5.1
Co-Authored-By: hudeng <hudeng@deepin.org>
Fix TOCTOU symlink vulnerability in SoftFileLock.

- Add conditional O_NOFOLLOW flag to prevent symlink attacks
- Gracefully degrade on platforms without O_NOFOLLOW support

Upstream: tox-dev/filelock@255ed06
Generated-By: glm-5.1
Co-Authored-By: hudeng <hudeng@deepin.org>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

TAG Bot

TAG: 3.12.4-1deepin2
EXISTED: no
DISTRIBUTION: unstable

@deepin-ci-robot deepin-ci-robot requested review from justforlxz and myml May 7, 2026 11:19
@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 zccrs 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

@hudeng-go
Copy link
Copy Markdown
Contributor

/integrate

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

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

@Zeno-sole Zeno-sole merged commit dcd3a27 into master May 7, 2026
7 of 9 checks passed
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