dpkg-deb: Fix cleanup for control member with restricted directories
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-400.
Summary
It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is documented as being a safe operation even on untrusted data. This may result in leaving temporary files behind on cleanup. Given automated and repeated execution of dpkg-deb commands on adversarial .deb packages or with well compressible files, placed inside a directory with permissions not allowing removal by a non-root user, this can end up in a DoS scenario due to causing disk quota exhaustion or disk full conditions.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Debian | dpkg | before ed6bbd445dd8800308c67236ba35d08004c98e82 | ed6bbd445dd8800308c67236ba35d08004c98e82 | Patch available | CNA |
- dpkg VendorDebian Affected before ed6bbd445dd8800308c67236ba35d08004c98e82 Fixed in ed6bbd445dd8800308c67236ba35d08004c98e82 Patch available CNA
Remediation
- Fix · CNA dpkg (Debian) Fixed in ed6bbd445dd8800308c67236ba35d08004c98e82
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-6297
- 2026-10-03 Alias added: GHSA-w56q-6jw5-h5xf
References
More Debian Dpkg vulnerabilities
- TI-2017-05855 dpkg-source in dpkg 1.3.0 through 1.18.23 is able to use a non-GNU patch program and does… CVSS 3.0CRITICAL 9.8
- TI-2022-01534 directory traversal for in-place extracts with untrusted v2 and v3 source packages with debian.tar CVSS 3.1CRITICAL 9.8
- TI-2015-00801 Off-by-one error in the extracthalf function in dpkg-deb/extract.c in the dpkg-deb… CVSS 2.0HIGH 7.5
- TI-2026-01867 Infinite loop in Debian dpkg CVSS 3.1HIGH 7.5
- TI-2014-07084 Multiple format string vulnerabilities in the parse_error_msg function in parsehelp.c in… CVSS 2.0MEDIUM 6.8
- TI-2010-01621 Directory traversal vulnerability in dpkg-source in dpkg before 1.14.31 and 1.15.x allows… CVSS 2.0MEDIUM 6.8
Sources
- CVE-2025-6297 · CVE Program
- CVE-2025-6297 · NVD
- FIRST EPSS
- GHSA-w56q-6jw5-h5xf · GitHub Advisory Database · CC BY 4.0
- CVE-2025-6297 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences