CVE-2025-6297dpkg-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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | dpkg | Fixed | 1.22.21ubuntu1 | UBUNTU-CVE-2025-6297 |
| Ubuntu 24.04 | dpkg | Fixed | 1.22.6ubuntu6.5 | UBUNTU-CVE-2025-6297 |
| Ubuntu 22.04 | dpkg | Fixed | 1.21.1ubuntu2.6 | UBUNTU-CVE-2025-6297 |
| Ubuntu 20.04 | dpkg | Fix pending | UBUNTU-CVE-2025-6297 | |
| Ubuntu 18.04 | dpkg | Fix pending | UBUNTU-CVE-2025-6297 | |
| Ubuntu 16.04 | dpkg | Fix pending | UBUNTU-CVE-2025-6297 | |
| Ubuntu 14.04 | dpkg | Fix pending | UBUNTU-CVE-2025-6297 | |
| Debian 14 | dpkg | Fixed | 1.22.21 | DEBIAN-CVE-2025-6297 |
| Debian 13 | dpkg | Fixed | 1.22.21 | DEBIAN-CVE-2025-6297 |
| Debian 12 | dpkg | Fixed | 1.21.23 | DEBIAN-CVE-2025-6297 |
What the vendor says
As published in the CVE record by debian, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Debian dpkg: affected: before ed6bbd445dd8800308c67236ba35d08004c98e82
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.