Skip to content
OpenAdvisories
High · 8.2 CVE-2025-6297 EUVD-2025-19670GHSA-w56q-6jw5-h5xf

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

Published Jul 1, 2025 · Updated Jul 8, 2026 · Assigned by debian

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.

Affected products

VendorProductAffectedFixed
Debian dpkg < ed6bbd445dd8800308c67236ba35d08004c98e82 ed6bbd445dd8800308c67236ba35d08004c98e82

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 dpkg 1.22.21 —
Debian 13 dpkg 1.22.21 —
Debian 12 dpkg 1.21.23 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 dpkg 1.22.21ubuntu1 —
Ubuntu 24.04 LTS dpkg 1.22.6ubuntu6.5 USN-7768-1
Ubuntu 22.04 LTS dpkg 1.21.1ubuntu2.6 USN-7768-1
Ubuntu 20.04 LTS dpkg No fix yet —
Ubuntu 18.04 LTS dpkg No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS dpkg No fix yet —
Ubuntu Pro 14.04 LTS dpkg No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 dpkg +1 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1
SLES 15 SP6 dpkg +1 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.1 update-alternatives 1.22.0-slfo.1.1_2.1 SUSE-SU-2025:20670-1
SLE Micro 6.0 update-alternatives 1.22.0-2.1 SUSE-SU-2025:20562-1
SLE Micro 5.5 update-alternatives 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1
SLE Micro 5.4 update-alternatives 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1
SLE Micro 5.3 update-alternatives 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1
SLE Micro 5.2 update-alternatives 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1
SLE Micro 5.1 update-alternatives 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed dpkg 1.22.21-1.1 openSUSE-SU-2025:15314-1
openSUSE Leap 15.6 dpkg +1 1.19.0.4-150000.4.7.1 SUSE-SU-2025:02734-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) dpkg No fix yet —

Advisories 6

References