Bug 2558775 (CVE-2026-115207) - CVE-2026-115207 patch: Filename validation bypass in reversal fallback allows file creation outside the working directory
Summary: CVE-2026-115207 patch: Filename validation bypass in reversal fallback allows...
Keywords:
Status: NEW
Alias: CVE-2026-115207
Deadline: 2026-10-22
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2558782
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-22 07:27 UTC by OSIDB Bzimport
Modified: 2026-10-22 08:03 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-22 07:27:09 UTC
A flaw was found in GNU patch. The reversal fallback in intuit_diff_type() in src/pch.c selects a filename from the patch headers without applying the name_is_valid() check that normally rejects absolute paths. A crafted unified diff that appears to delete a nonexistent file, with an absolute filename in both headers and an epoch timestamp for the new file, can trigger automatic reversal when applied with patch -p0 -t. The unvalidated absolute filename reaches the filesystem operations, allowing attacker-controlled file creation outside the working directory with the permissions of the account running patch. Exploitation requires a user or workflow to apply the crafted patch; it does not bypass operating-system filesystem permissions.


Note You need to log in before you can comment on or make changes to this bug.