{
  "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": "2025-07-04T06:14:23.371059Z",
  "published": "2025-07-01T17:15:00Z",
  "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"
    }
  ],
  "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": {
        "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": {
        "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:18.04:LTS",
        "purl": "pkg:deb/ubuntu/dpkg@1.19.0.5ubuntu2.4?arch=source&distro=esm-infra/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": {
        "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:20.04:LTS",
        "purl": "pkg:deb/ubuntu/dpkg@1.19.7ubuntu3.2?arch=source&distro=esm-infra/focal"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "versions": [
        "1.19.7ubuntu2",
        "1.19.7ubuntu3",
        "1.19.7ubuntu3.2"
      ],
      "ecosystem_specific": {
        "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.3?arch=source&distro=jammy"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "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": {
        "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.10",
        "purl": "pkg:deb/ubuntu/dpkg@1.22.11ubuntu1?arch=source&distro=oracular"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "versions": [
        "1.22.6ubuntu6",
        "1.22.6ubuntu10",
        "1.22.6ubuntu14",
        "1.22.10ubuntu2",
        "1.22.11ubuntu1"
      ],
      "ecosystem_specific": {
        "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.1?arch=source&distro=noble"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "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"
      ],
      "ecosystem_specific": {
        "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.04",
        "purl": "pkg:deb/ubuntu/dpkg@1.22.18ubuntu2?arch=source&distro=plucky"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "versions": [
        "1.22.11ubuntu1",
        "1.22.11ubuntu3",
        "1.22.11ubuntu4",
        "1.22.15ubuntu1",
        "1.22.18ubuntu2"
      ],
      "ecosystem_specific": {
        "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.6.0",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
    },
    {
      "score": "low"
    }
  ]
}