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

- Severity: High 8.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2025-07-01T16:16:54.624Z
- Modified: 2026-07-08T09:16:28.893Z
- Weaknesses: CWE-400, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: debian

## 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.

(As written by CVE List.)

## Affected

- Debian dpkg: before ed6bbd445dd8800308c67236ba35d08004c98e82; before 1.22.21

## References

- <https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ed6bbd445dd8800308c67236ba35d08004c98e82> (patch)
- <https://lists.debian.org/debian-lts-announce/2026/07/msg00015.html>

## Sources

- CVE List: [CVE-2025-6297](https://www.cve.org/CVERecord?id=CVE-2025-6297), CVE Terms of Use, modified 2026-07-08
- NVD: [CVE-2025-6297](https://nvd.nist.gov/vuln/detail/CVE-2025-6297), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2025-6297 · Whole record: https://cve.day/CVE-2025-6297.json · Rebuilt by cve.day 2026-11-25T22:59:00.449Z
