CVE-2025-6297 Details
Description
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.
A denial-of-service vulnerability has been identified in the Debian package management tool 'dpkg-deb'. The issue arises because 'dpkg-deb' does not properly manage directory permissions when extracting control files into temporary directories. This flaw can lead to leftover temporary files after the cleanup process. The vulnerability is particularly concerning when 'dpkg-deb' is used repeatedly on malicious .deb packages or on files that compress well, and the extraction occurs in a directory where a non-root user cannot delete files. Such scenarios can cause disk quota exhaustion or fill up the disk, leading to a denial-of-service condition.
Users can update to the latest version of 'dpkg' where this vulnerability has been addressed. Instructions for updating 'dpkg' can be found on the Debian website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | CISA-ADP |
| CWE-732 | Incorrect Permission Assignment for Critical Resource | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| debian dpkg | < 1.22.21 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 8, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Aug 19, 2025 | Reanalysis | [email protected] |
| Aug 6, 2025 | Initial Analysis | [email protected] |
| Jul 1, 2025 | CVE Modified | CISA-ADP |
| Jul 1, 2025 | CVE Modified | [email protected] |
| Jul 1, 2025 | New CVE Received | [email protected] |