CVE-2025-6297: dpkg-deb: Fix cleanup for control member with restricted directories

Published Jul 1, 2025
·
Updated

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

2 affected components
Debian Dpkg
Debian Dpkg<1.22.21

Event History

Jul 1, 2025
CVE Published
via MITRE·04:16 PM
Data Sourced
via MITRE·04:16 PM
Description
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

What software is affected by CVE-2025-6297?

CVE-2025-6297 primarily affects Debian dpkg, particularly versions with the issue present.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203