{"id":"CVE-2025-6297","aliases":["AZL-64641","CLSA-2025-1760024944","CLSA-2025-1764321086","DEBIAN-CVE-2025-6297","EUVD-2025-19670","GHSA-w56q-6jw5-h5xf","MGASA-2025-0204","ROOT-OS-DEBIAN-12-CVE-2025-6297","SUSE-SU-2025:02734-1","SUSE-SU-2025:20562-1","SUSE-SU-2025:20670-1","UBUNTU-CVE-2025-6297","USN-7768-1","openSUSE-SU-2025:15314-1"],"status":"published","title":"dpkg-deb: Fix cleanup for control member with restricted directories","description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented 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\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","severity":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.00478,"percentile":0.41756,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400","CWE-732"],"published":"2025-07-01T16:16:54Z","modified":"2026-10-28T10:45:47Z","fixes":[{"ecosystem":"TuxCare:Ubuntu:18.04","package":"dpkg","fixed_in":["1.19.0.5ubuntu2.4+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:18.04","package":"dpkg-dev","fixed_in":["1.19.0.5ubuntu2.4+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:18.04","package":"dselect","fixed_in":["1.19.0.5ubuntu2.4+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:18.04","package":"libdpkg-dev","fixed_in":["1.19.0.5ubuntu2.4+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Ubuntu:18.04","package":"libdpkg-perl","fixed_in":["1.19.0.5ubuntu2.4+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Debian:10","package":"dpkg","fixed_in":["1.19.8+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Debian:10","package":"dpkg-dev","fixed_in":["1.19.8+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Debian:10","package":"dselect","fixed_in":["1.19.8+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Debian:10","package":"libdpkg-dev","fixed_in":["1.19.8+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"TuxCare:Debian:10","package":"libdpkg-perl","fixed_in":["1.19.8+tuxcare.els1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"dpkg","fixed_in":["1.21.23"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"dpkg","fixed_in":["1.22.21"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"dpkg","fixed_in":["1.22.21"],"sources":["osv"]},{"ecosystem":"Mageia:9","package":"dpkg","fixed_in":["1.22.21-1.mga9"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","package":"dpkg","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP7","package":"dpkg","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.6","package":"dpkg","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.6","package":"update-alternatives","fixed_in":["1.19.0.4-150000.4.7.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Micro 6.0","package":"update-alternatives","fixed_in":["1.22.0-2.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Micro 6.1","package":"update-alternatives","fixed_in":["1.22.0-slfo.1.1_2.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"dpkg","fixed_in":["1.21.1ubuntu2.6"],"sources":["osv"]},{"ecosystem":"Ubuntu:24.04:LTS","package":"dpkg","fixed_in":["1.22.6ubuntu6.5"],"sources":["osv"]},{"ecosystem":"Ubuntu:25.10","package":"dpkg","fixed_in":["1.22.21ubuntu1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"dpkg","fixed_in":["1.22.21-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Azure Linux:2","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.20.10-1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:18.04","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.5ubuntu2.4+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:18.04","package":"dpkg-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.5ubuntu2.4+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:18.04","package":"dselect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.5ubuntu2.4+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:18.04","package":"libdpkg-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.5ubuntu2.4+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Ubuntu:18.04","package":"libdpkg-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.5ubuntu2.4+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Debian:10","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.8+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Debian:10","package":"dpkg-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.8+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Debian:10","package":"dselect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.8+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Debian:10","package":"libdpkg-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.8+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"TuxCare:Debian:10","package":"libdpkg-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.8+tuxcare.els1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.23"}]}],"versions":["1.21.22"]},{"source":"osv","ecosystem":"Debian:13","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.21"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.21"}]}]},{"source":"osv","ecosystem":"Mageia:9","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.21-1.mga9"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.3","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.4","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.5","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP7","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.1","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.2","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.6","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.6","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.4-150000.4.7.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Micro 6.0","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.0-2.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Micro 6.1","package":"update-alternatives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.0-slfo.1.1_2.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"dpkg","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"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"dpkg","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"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"dpkg","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"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.19.7ubuntu2","1.19.7ubuntu3","1.19.7ubuntu3.2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"dpkg","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"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"dpkg","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"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.21ubuntu1"}]}],"versions":["1.22.18ubuntu2","1.22.18ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"dpkg","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"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"dpkg","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"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"dpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.21-1.1"}]}]}],"products":[{"vendor":"debian","product":"dpkg"}],"references":[{"url":"https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ed6bbd445dd8800308c67236ba35d08004c98e82","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/07/msg00015.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6297","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-w56q-6jw5-h5xf"},{"url":"https://errata.tuxcare.com/els_os/ubuntu18.04els/CLSA-2025-1760024944.html","tags":["advisory"]},{"url":"https://errata.tuxcare.com/els_os/debian10els/CLSA-2025-1764321086.html","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6297.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-6297","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2025-0204.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=34441","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/FNSLEIUKJQUM5CTEBYJAKWDXADY2FDTH/","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2025/suse-su-202502734-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1245573","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2025-6297","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2025/suse-su-202520562-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2025/suse-su-202520670-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-6297","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-6297","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7768-1","tags":["advisory"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2025-6297","title":"dpkg-deb: Fix cleanup for control member with restricted directories","description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented 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\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","status":"published","published":"2025-07-01T16:16:54.624Z","modified":"2026-07-08T07:48:03.368Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"adp"}],"cwes":["CWE-732","CWE-400"],"updated_at":"2026-11-02T14:32:40.419293Z"}],"euvd":[{"id":"EUVD-2025-19670","description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented 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\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","status":"published","published":"2025-07-01T16:16:54Z","modified":"2026-07-08T07:48:03Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T18:20:11.442824Z"}],"ghsa":[{"id":"GHSA-w56q-6jw5-h5xf","title":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting...","description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented 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\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","status":"published","published":"2025-07-01T18:30:36Z","modified":"2026-07-08T09:31:45Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:09:19.587132Z"}],"nvd":[{"id":"CVE-2025-6297","description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented 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\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","status":"published","published":"2025-07-01T17:15:30.177Z","modified":"2026-07-08T09:16:28.893Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-400","CWE-732"],"updated_at":"2026-11-02T14:11:15.754475Z"}],"osv":[{"id":"CVE-2025-6297","title":"dpkg-deb: Fix cleanup for control member with restricted directories","description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented 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\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","status":"published","published":"2025-07-01T16:16:54.624Z","modified":"2026-10-28T10:45:47.882476343Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:51.851511Z"},{"id":"DEBIAN-CVE-2025-6297","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.","status":"published","published":"2025-07-01T17:15:30.177Z","modified":"2026-09-01T20:05:55.601126613Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:47.697959Z"},{"id":"UBUNTU-CVE-2025-6297","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.","status":"published","published":"2025-07-01T17:15:00Z","modified":"2026-04-22T16:08:20.375647Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T16:55:50.817402Z"},{"id":"AZL-64641","title":"CVE-2025-6297 affecting package dpkg 1.20.10-1","description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented 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\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","status":"published","published":"2025-07-01T17:15:30Z","modified":"2026-04-21T04:32:30.047131Z","updated_at":"2026-11-02T15:28:08.076947Z"},{"id":"CLSA-2025-1760024944","title":"Fix CVE(s): CVE-2025-6297","description":"   * SECURITY UPDATE: Fix directory cleanup vulnerability\n     - dpkg-deb/info.c: Fix cleanup for control member with restricted\n       directories\n     - Add treewalk to set proper permissions before removal for non-root users\n     - CVE-2025-6297","status":"published","published":"2025-10-09T15:49:08Z","modified":"2026-06-04T10:04:25.837262Z","updated_at":"2026-11-02T15:43:42.427288Z"},{"id":"CLSA-2025-1764321086","title":"Fix CVE(s): CVE-2025-6297","description":"   * SECURITY UPDATE: Directory permission cleanup vulnerability leading to DoS\n     - debian/patches/CVE-2025-6297.patch: Fix cleanup for control member\n       with restricted directories\n     - CVE-2025-6297","status":"published","published":"2025-12-08T16:30:02Z","modified":"2026-06-04T10:03:26.428191Z","updated_at":"2026-11-02T15:43:42.847264Z"},{"id":"MGASA-2025-0204","title":"Updated dpkg packages fix security vulnerabilities","description":"It was discovered that dpkg-deb does not properly sanitize directory\npermissions when extracting a control member into a temporary directory,\nwhich is documented as being a safe operation even on untrusted data.\nThis may result in leaving temporary files behind on cleanup. Given\nautomated and repeated execution of dpkg-deb commands on adversarial\n.deb packages or with well compressible files, placed inside a directory\nwith permissions not allowing removal by a non-root user, this can end\nup in a DoS scenario due to causing disk quota exhaustion or disk full\nconditions.\n","status":"published","published":"2025-07-11T18:52:28Z","modified":"2026-04-16T04:43:05.7201103Z","updated_at":"2026-11-02T15:49:43.178336Z"},{"id":"openSUSE-SU-2025:15314-1","title":"dpkg-1.22.21-1.1 on GA media","description":"These are all security issues fixed in the dpkg-1.22.21-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-07-06T00:00:00Z","modified":"2026-03-23T04:53:38.35582Z","updated_at":"2026-11-02T16:58:37.810934Z"},{"id":"ROOT-OS-DEBIAN-12-CVE-2025-6297","title":"CVE-2025-6297 in rootio-dpkg - Patched by Root","description":"Root has patched CVE-2025-6297 in the rootio-dpkg package for Root:Debian:12. Multiple fixed versions available.","status":"withdrawn","published":"2026-03-23T11:33:36Z","modified":"2026-08-20T14:00:14.29362701Z","updated_at":"2026-11-02T15:53:31.514195Z"},{"id":"SUSE-SU-2025:02734-1","title":"Security update for dpkg","description":"This update for dpkg fixes the following issues:\n\n- CVE-2025-6297: Fixed an improper sanitization of directory permissions that could lead to DoS. (bsc#1245573)\n","status":"published","published":"2025-08-08T08:05:13Z","modified":"2026-02-04T04:18:11.08426Z","updated_at":"2026-11-02T15:53:57.111474Z"},{"id":"SUSE-SU-2025:20562-1","title":"Security update for dpkg","description":"This update for dpkg fixes the following issues:\n\n- CVE-2025-6297: Fixed improper sanitization of directory permissions leading to\n  DoS via disk quota exhaustion due to files left behind on cleanup (bsc#1245573)\n","status":"published","published":"2025-08-20T11:40:21Z","modified":"2026-03-23T04:47:16.944154Z","updated_at":"2026-11-02T15:53:59.92114Z"},{"id":"SUSE-SU-2025:20670-1","title":"Security update for dpkg","description":"This update for dpkg fixes the following issues:\n\n- CVE-2025-6297: Fixed cleanup for control member with restricted directories (bsc#1245573).\n","status":"published","published":"2025-09-05T12:15:24Z","modified":"2026-03-23T04:50:13.467925Z","updated_at":"2026-11-02T15:53:59.92114Z"},{"id":"USN-7768-1","title":"dpkg vulnerability","description":"It was discovered that dpkg incorrectly handled removing certain temporary\ndirectories. An attacker could possibly use this issue to consume disk\nspace, leading to a denial of service.","status":"published","published":"2025-09-24T12:54:00Z","modified":"2026-04-27T18:17:26.257929Z","updated_at":"2026-11-02T16:58:21.91885Z"}]}}
