CVE-2025-6297: dpkg-deb: Fix cleanup for control member with restricted directories
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-6297?
CVE-2025-6297 has a moderate severity rating due to its potential to expose temporary files in unsafe scenarios.
How do I fix CVE-2025-6297?
To fix CVE-2025-6297, ensure you update Debian dpkg to the latest version that addresses this vulnerability.
What software is affected by CVE-2025-6297?
CVE-2025-6297 primarily affects Debian dpkg, particularly versions with the issue present.
What type of vulnerability is CVE-2025-6297?
CVE-2025-6297 is a vulnerability related to improper sanitization of directory permissions when handling temporary files.
Can CVE-2025-6297 lead to data exposure?
Yes, CVE-2025-6297 can potentially lead to data exposure by leaving temporary files in unprotected directories.