CVEfocus › CVE database › CVE-2025-6297

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

CVSS 8.2 HighEPSS 0.6% (higher than 44% of CVEs)Published 2025-07-01Updated 2026-07-08Assigner: debian

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.

CWE-400CWE-732

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

6Fixed
4Fix pending

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10dpkgFixed1.22.21ubuntu1UBUNTU-CVE-2025-6297
Ubuntu 24.04dpkgFixed1.22.6ubuntu6.5UBUNTU-CVE-2025-6297
Ubuntu 22.04dpkgFixed1.21.1ubuntu2.6UBUNTU-CVE-2025-6297
Ubuntu 20.04dpkgFix pendingUBUNTU-CVE-2025-6297
Ubuntu 18.04dpkgFix pendingUBUNTU-CVE-2025-6297
Ubuntu 16.04dpkgFix pendingUBUNTU-CVE-2025-6297
Ubuntu 14.04dpkgFix pendingUBUNTU-CVE-2025-6297
Debian 14dpkgFixed1.22.21DEBIAN-CVE-2025-6297
Debian 13dpkgFixed1.22.21DEBIAN-CVE-2025-6297
Debian 12dpkgFixed1.21.23DEBIAN-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.

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.