# CVE-2025-6297: dpkg-deb: Fix cleanup for control member with restricted directories

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.22.21, ed6bbd445dd8800308c67236ba35d08004c98e82 (CNA); fix release not confirmed
- Status: published
- Published: 2025-07-01 · Modified: 2026-07-08
- Aliases: MGASA-2025-0204, SUSE-SU-2025:02734-1, SUSE-SU-2025:20562-1, SUSE-SU-2025:20670-1, UBUNTU-CVE-2025-6297, USN-7768-1, DEBIAN-CVE-2025-6297, openSUSE-SU-2025:15314-1, DLA-4673-1
- Record: https://cvemate.com/vulnerability/CVE-2025-6297 · JSON: https://cvemate.com/vulnerability/CVE-2025-6297/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- EPSS: 0.513%, percentile 45.248%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian dpkg (Debian): \< 1.20.14 \| \< 1.21.23 \| \< 1.22.21
- ubuntu dpkg (Ubuntu): All versions (No fix recorded) \| \< 1.21.1ubuntu2.6 \| \< 1.22.6ubuntu6.5 \| \< 1.22.21ubuntu1
- debian dpkg: \< ed6bbd445dd8800308c67236ba35d08004c98e82 \| \< 1.22.21
- mageia dpkg (Mageia): \< 1.22.21-1.mga9
- opensuse dpkg&distro=openSUSE Leap 15.6 (openSUSE): \< 1.19.0.4-150000.4.7.1
- opensuse dpkg&distro=openSUSE Tumbleweed (openSUSE): \< 1.22.21-1.1
- opensuse update-alternatives&distro=openSUSE Leap 15.6 (openSUSE): \< 1.19.0.4-150000.4.7.1
- suse dpkg&distro=SUSE Linux Enterprise Module for Development Tools 15 SP6 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse dpkg&distro=SUSE Linux Enterprise Module for Development Tools 15 SP7 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Enterprise Micro 5.1 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Enterprise Micro 5.2 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Enterprise Micro 5.3 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Enterprise Micro 5.4 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Enterprise Micro 5.5 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7 (SUSE Linux Enterprise): \< 1.19.0.4-150000.4.7.1
- suse update-alternatives&distro=SUSE Linux Micro 6.0 (SUSE Linux Enterprise): \< 1.22.0-2.1
- suse update-alternatives&distro=SUSE Linux Micro 6.1 (SUSE Linux Enterprise): \< 1.22.0-slfo.1.1\_2.1

## References

- <https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ed6bbd445dd8800308c67236ba35d08004c98e82>
- <https://lists.debian.org/debian-lts-announce/2026/07/msg00015.html>
- <https://advisories.mageia.org/MGASA-2025-0204.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34441>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/FNSLEIUKJQUM5CTEBYJAKWDXADY2FDTH/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502734-1/>
- <https://bugzilla.suse.com/1245573>
- <https://www.suse.com/security/cve/CVE-2025-6297>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202520562-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202520670-1/>
- <https://ubuntu.com/security/CVE-2025-6297>
- <https://www.cve.org/CVERecord?id=CVE-2025-6297>
- <https://ubuntu.com/security/notices/USN-7768-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-6297>

---

Data as of 2026-12-05T02:56:53.447Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
