CVE-2025-6297 dpkg-deb: Fix cleanup for control member with restricted directories
HighCVSS 8.2
EPSS 0.48%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
6 packages: 6 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/dpkg | < 1.22.21; < ed6bbd445dd8800308c67236ba35d08004c98e82 | 1.22.21, ed6bbd445dd8800308c67236ba35d08004c98e82 | Fixed |
| debian/dpkg(Debian 12) | < 1.21.23; = 1.21.22 | 1.21.23 | Fixed |
| debian/dpkg(Debian 13) | < 1.22.21 | 1.22.21 | Fixed |
| debian/dpkg(Debian 14) | < 1.22.21 | 1.22.21 | Fixed |
| ubuntu/dpkg(Ubuntu 22.04) | < 1.21.1ubuntu2.6 | 1.21.1ubuntu2.6 | Fixed |
| ubuntu/dpkg(Ubuntu 24.04) | < 1.22.6ubuntu6.5 | 1.22.6ubuntu6.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/dpkg(Debian:12) | < 1.21.23 | 1.21.23 |
| debian/dpkg(Debian:12) | = 1.21.22 | No fix listed |
| debian/dpkg(Debian:13) | < 1.22.21 | 1.22.21 |
| debian/dpkg(Debian:14) | < 1.22.21 | 1.22.21 |
| debian/dpkg | < ed6bbd445dd8800308c67236ba35d08004c98e82 | ed6bbd445dd8800308c67236ba35d08004c98e82 |
| ubuntu/dpkg(Ubuntu:22.04) | < 1.21.1ubuntu2.6 | 1.21.1ubuntu2.6 |
| ubuntu/dpkg(Ubuntu:24.04) | < 1.22.6ubuntu6.5 | 1.22.6ubuntu6.5 |
| debian/dpkg | < 1.22.21 | 1.22.21 |
References
- Debian Security Tracker CVE-2025-6297 vendor-advisory
- git.dpkg.org patch
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7768-1 vendor-advisory
- www.cve.org