CVE-2025-6297 dpkg-deb: Fix cleanup for control member with restricted directories
Attackers can cause disk exhaustion and denial of service by exploiting improper cleanup of temporary files during dpkg-deb extraction of malicious packages.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-6297?
CVE-2025-6297 is a high-severity denial of service vulnerability in Debian dpkg, published on 1 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-6297?
It affects 1 product.
Linux distribution packages (14)
update-alternatives SUSE:Linux Enterprise Micro 5.1 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives SUSE:Linux Enterprise Micro 5.2 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives SUSE:Linux Enterprise Micro 5.3 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives SUSE:Linux Enterprise Micro 5.4 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives SUSE:Linux Enterprise Micro 5.5 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 1.19.0.4-150000.4.7.1 |
dpkg SUSE:Linux Enterprise Module for Development Tools 15 SP6 | All versions | 1.19.0.4-150000.4.7.1 |
dpkg SUSE:Linux Enterprise Module for Development Tools 15 SP7 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives SUSE:Linux Micro 6.0 | All versions | 1.22.0-2.1 |
update-alternatives SUSE:Linux Micro 6.1 | All versions | 1.22.0-slfo.1.1_2.1 |
dpkg openSUSE:Leap 15.6 | All versions | 1.19.0.4-150000.4.7.1 |
update-alternatives openSUSE:Leap 15.6 | All versions | 1.19.0.4-150000.4.7.1 |
dpkg openSUSE:Tumbleweed | All versions | 1.22.21-1.1 |
Products include Debian Dpkg.
How do I fix CVE-2025-6297?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-6297 being exploited?
There is no known exploitation of CVE-2025-6297 in the wild and no public exploit code.
Other vulnerabilities in Debian dpkg
Sources
Also known as AZL-64641, CLSA-2025-1760024944, CLSA-2025-1764321086, DEBIAN-CVE-2025-6297, ECHO-9dc0-d8d0-3783, GHSA-w56q-6jw5-h5xf and 7 more.