dpkg: It was discovered that dpkg-deb does not properly sanitize directorypermissions when extracting a control member into...
CVE-2025-6297 is fixed in 4 products on 1 platform, first by dpkg 1.21.1ubuntu2.6, released July 1, 2025. It is not reported as exploited. Patch Radar priority: High.
It was discovered that dpkg-deb does not properly sanitize directorypermissions when extracting a control member into a temporary directory,which isdocumented as being a safe operation even on untrusted data. This mayresult in leaving temporary files behind on cleanup. Given automated andrepeated execution of dpkg-deb commands onadversarial .deb packages or with well compressible files, placedinside a directory with permissions not allowing removal by a non-rootuser, this can end up in a DoS scenario due to causing disk quotaexhaustion or disk full conditions.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| dpkg · Debian 12.15 (bookworm) | 1.21.23 | DEBIAN-CVE-2025-6297 | Jul 1, 2025 |
| dpkg · Debian 13.5 (trixie) | 1.22.21 | DEBIAN-CVE-2025-6297 | Jul 1, 2025 |
| dpkg · Debian 14 | 1.22.21 | DEBIAN-CVE-2025-6297 | Jul 1, 2025 |
| dpkg · Ubuntu 22.04.1 LTS (jammy) | 1.21.1ubuntu2.6 | dpkg 1.21.1ubuntu2.6 | Jul 1, 2025 |
| dpkg · Ubuntu 24.04.5 LTS (noble) | 1.22.6ubuntu6.5 | dpkg 1.22.6ubuntu6.5 | Jul 1, 2025 |
| dpkg · Ubuntu 25.04 (plucky) | 1.22.18ubuntu2.2 | dpkg 1.22.18ubuntu2.2 | Jan 16, 2026 |
| dpkg · Ubuntu 25.10 (questing) | 1.22.21ubuntu1 | dpkg 1.22.21ubuntu1 | Jul 1, 2025 |
| dpkg · opensuse-leap 15.6 | 1.19.0.4-150000.4.7.1 | SUSE-SU-2025:02734-1 | Aug 8, 2025 |
| dpkg · sles 15.6 | 1.19.0.4-150000.4.7.1 | SUSE-SU-2025:02734-1 | Aug 8, 2025 |
| dpkg · sles 15.7 | 1.19.0.4-150000.4.7.1 | SUSE-SU-2025:02734-1 | Aug 8, 2025 |
| dselect · Ubuntu 22.04.1 LTS (jammy) | 1.21.1ubuntu2.6 | dselect 1.21.1ubuntu2.6 | Jul 1, 2025 |
| dselect · Ubuntu 24.04.5 LTS (noble) | 1.22.6ubuntu6.5 | dselect 1.22.6ubuntu6.5 | Jul 1, 2025 |
| dselect · Ubuntu 25.04 (plucky) | 1.22.18ubuntu2.2 | dselect 1.22.18ubuntu2.2 | Jan 16, 2026 |
| dselect · Ubuntu 25.10 (questing) | 1.22.21ubuntu1 | dselect 1.22.21ubuntu1 | Jul 1, 2025 |
| libdpkg-perl · Ubuntu 22.04.1 LTS (jammy) | 1.21.1ubuntu2.6 | libdpkg-perl 1.21.1ubuntu2.6 | Jul 1, 2025 |
| libdpkg-perl · Ubuntu 24.04.5 LTS (noble) | 1.22.6ubuntu6.5 | libdpkg-perl 1.22.6ubuntu6.5 | Jul 1, 2025 |
| libdpkg-perl · Ubuntu 25.04 (plucky) | 1.22.18ubuntu2.2 | libdpkg-perl 1.22.18ubuntu2.2 | Jan 16, 2026 |
| libdpkg-perl · Ubuntu 25.10 (questing) | 1.22.21ubuntu1 | libdpkg-perl 1.22.21ubuntu1 | Jul 1, 2025 |
| update-alternatives · opensuse-leap 15.6 | 1.19.0.4-150000.4.7.1 | SUSE-SU-2025:02734-1 | Aug 8, 2025 |
| update-alternatives · sles 15.6 | 1.19.0.4-150000.4.7.1 | SUSE-SU-2025:02734-1 | Aug 8, 2025 |
| update-alternatives · sles 15.7 | 1.19.0.4-150000.4.7.1 | SUSE-SU-2025:02734-1 | Aug 8, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.