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.
History

Tue, 01 Jul 2025 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-732
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 01 Jul 2025 17:30:00 +0000

Type Values Removed Values Added
Description It was discovered that dpkg 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, which may lead to leave 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 with a DoS scenario due to causing disk quota exhaustion or disk full conditions. 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.

Tue, 01 Jul 2025 16:30:00 +0000

Type Values Removed Values Added
Description It was discovered that dpkg 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, which may lead to leave 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 with a DoS scenario due to causing disk quota exhaustion or disk full conditions.
Title dpkg-deb: Fix cleanup for control member with restricted directories
References

cve-icon MITRE

Status: PUBLISHED

Assigner: debian

Published: 2025-07-01T16:16:54.624Z

Updated: 2025-07-01T17:30:37.332Z

Reserved: 2025-06-19T07:40:18.350Z

Link: CVE-2025-6297

cve-icon Vulnrichment

Updated: 2025-07-01T17:30:09.853Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-07-01T17:15:30.177

Modified: 2025-07-03T15:14:12.767

Link: CVE-2025-6297

cve-icon Redhat

No data.