p PatchFirst

CVE-2025-6297

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.2 · High · EPSS 0.4% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • dpkg

    Versions
    • ≥ 0, < ed6bbd445dd8800308c67236ba35d08004c98e82: Affected (custom)

    No fix published

  • dpkg Debian:12

    Versions
    • 1.21.22
    Affected ranges
    • ECOSYSTEM: < 1.21.23

    Update to 1.21.23

  • dpkg Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.22.21

    Update to 1.22.21

  • dpkg Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.22.21

    Update to 1.22.21

  • dpkg Ubuntu:Pro:14.04:LTS

    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
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dpkg Ubuntu:Pro:16.04:LTS

    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
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dpkg Ubuntu:18.04:LTS

    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
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dpkg Ubuntu:20.04:LTS

    Versions
    • 1.19.7ubuntu2
    • 1.19.7ubuntu3
    • 1.19.7ubuntu3.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dpkg Ubuntu:22.04:LTS

    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
    Affected ranges
    • ECOSYSTEM: < 1.21.1ubuntu2.6

    Update to 1.21.1ubuntu2.6

  • dpkg Ubuntu:24.04:LTS

    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
    Affected ranges
    • ECOSYSTEM: < 1.22.6ubuntu6.5

    Update to 1.22.6ubuntu6.5

  • dpkg Ubuntu:25.10

    Versions
    • 1.22.18ubuntu2
    • 1.22.18ubuntu3
    Affected ranges
    • ECOSYSTEM: < 1.22.21ubuntu1

    Update to 1.22.21ubuntu1

Original sources

Check your server →