{"id":"UBUNTU-CVE-2025-6297","details":"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.","modified":"2026-04-22T16:08:20.375647Z","published":"2025-07-01T17:15:00Z","related":["USN-7768-1"],"upstream":["CVE-2025-6297"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-6297"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-6297"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7768-1"}],"affected":[{"package":{"name":"dpkg","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.17.5ubuntu5.8+esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.12ubuntu1","1.17.1ubuntu1","1.17.5ubuntu1","1.17.5ubuntu2","1.17.5ubuntu3","1.17.5ubuntu4","1.17.5ubuntu5","1.17.5ubuntu5.1","1.17.5ubuntu5.2","1.17.5ubuntu5.3","1.17.5ubuntu5.4","1.17.5ubuntu5.5","1.17.5ubuntu5.6","1.17.5ubuntu5.7","1.17.5ubuntu5.8","1.17.5ubuntu5.8+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.17.5ubuntu5.8+esm1","binary_name":"dpkg"},{"binary_version":"1.17.5ubuntu5.8+esm1","binary_name":"dselect"},{"binary_name":"libdpkg-perl","binary_version":"1.17.5ubuntu5.8+esm1"}],"priority_reason":"Only leaves temp files around when manually extracting a deb file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6297.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.18.4ubuntu1.7+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.18.2ubuntu5","1.18.3ubuntu1","1.18.4ubuntu1","1.18.4ubuntu1.1","1.18.4ubuntu1.2","1.18.4ubuntu1.3","1.18.4ubuntu1.4","1.18.4ubuntu1.5","1.18.4ubuntu1.6","1.18.4ubuntu1.7","1.18.4ubuntu1.7+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"dpkg","binary_version":"1.18.4ubuntu1.7+esm1"},{"binary_name":"dselect","binary_version":"1.18.4ubuntu1.7+esm1"},{"binary_name":"libdpkg-perl","binary_version":"1.18.4ubuntu1.7+esm1"}],"priority_reason":"Only leaves temp files around when manually extracting a deb file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6297.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.19.0.5ubuntu2.4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.18.24ubuntu1","1.19.0.4ubuntu1","1.19.0.5ubuntu1","1.19.0.5ubuntu2","1.19.0.5ubuntu2.1","1.19.0.5ubuntu2.2","1.19.0.5ubuntu2.3","1.19.0.5ubuntu2.4"],"ecosystem_specific":{"binaries":[{"binary_name":"dpkg","binary_version":"1.19.0.5ubuntu2.4"},{"binary_name":"dselect","binary_version":"1.19.0.5ubuntu2.4"},{"binary_name":"libdpkg-perl","binary_version":"1.19.0.5ubuntu2.4"}],"priority_reason":"Only leaves temp files around when manually extracting a deb file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6297.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.19.7ubuntu3.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.19.7ubuntu2","1.19.7ubuntu3","1.19.7ubuntu3.2"],"ecosystem_specific":{"binaries":[{"binary_name":"dpkg","binary_version":"1.19.7ubuntu3.2"},{"binary_name":"dselect","binary_version":"1.19.7ubuntu3.2"},{"binary_name":"libdpkg-perl","binary_version":"1.19.7ubuntu3.2"}],"priority_reason":"Only leaves temp files around when manually extracting a deb file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6297.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.21.1ubuntu2.6?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.1ubuntu2.6"}]}],"versions":["1.20.9ubuntu2","1.20.9ubuntu3","1.21.1ubuntu1","1.21.1ubuntu2","1.21.1ubuntu2.1","1.21.1ubuntu2.2","1.21.1ubuntu2.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dpkg","binary_version":"1.21.1ubuntu2.6"},{"binary_name":"dselect","binary_version":"1.21.1ubuntu2.6"},{"binary_name":"libdpkg-perl","binary_version":"1.21.1ubuntu2.6"}],"priority_reason":"Only leaves temp files around when manually extracting a deb file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6297.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.22.6ubuntu6.5?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.6ubuntu6.5"}]}],"versions":["1.22.0ubuntu1","1.22.1ubuntu2","1.22.1ubuntu3","1.22.1ubuntu5","1.22.2ubuntu2","1.22.4ubuntu3","1.22.4ubuntu5","1.22.6ubuntu5","1.22.6ubuntu6","1.22.6ubuntu6.1","1.22.6ubuntu6.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dpkg","binary_version":"1.22.6ubuntu6.5"},{"binary_version":"1.22.6ubuntu6.5","binary_name":"dselect"},{"binary_name":"libdpkg-perl","binary_version":"1.22.6ubuntu6.5"}],"priority_reason":"Only leaves temp files around when manually extracting a deb file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6297.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/dpkg@1.22.21ubuntu1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.21ubuntu1"}]}],"versions":["1.22.18ubuntu2","1.22.18ubuntu3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dpkg","binary_version":"1.22.21ubuntu1"},{"binary_name":"dselect","binary_version":"1.22.21ubuntu1"},{"binary_name":"libdpkg-perl","binary_version":"1.22.21ubuntu1"}],"priority_reason":"Only leaves temp files around when manually extracting a deb file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6297.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"},{"type":"Ubuntu","score":"low"}]}