ubuntu-cve-2025-6297
Vulnerability from osv_ubuntu
Published
2025-07-01 17:15
Modified
2026-04-22 07:53
Summary
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.
Severity
8.2 (High)
N/A (UNKNOWN)
References
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "dpkg",
"binary_version": "1.17.5ubuntu5.8+esm1"
},
{
"binary_name": "dselect",
"binary_version": "1.17.5ubuntu5.8+esm1"
},
{
"binary_name": "libdpkg-perl",
"binary_version": "1.17.5ubuntu5.8+esm1"
}
],
"priority_reason": "Only leaves temp files around when manually extracting a deb file"
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "dpkg",
"purl": "pkg:deb/ubuntu/dpkg@1.17.5ubuntu5.8+esm1?arch=source\u0026distro=esm-infra-legacy/trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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": {
"binaries": [
{
"binary_name": "dpkg",
"binary_version": "1.18.4ubuntu1.7+esm1"
},
{
"binary_name": "dselect",
"binary_version": "1.18.4ubuntu1.7+esm1"
},
{
"binary_name": "libdpkg-perl",
"binary_version": "1.18.4ubuntu1.7+esm1"
}
],
"priority_reason": "Only leaves temp files around when manually extracting a deb file"
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "dpkg",
"purl": "pkg:deb/ubuntu/dpkg@1.18.4ubuntu1.7+esm1?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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": {
"binaries": [
{
"binary_name": "dpkg",
"binary_version": "1.19.0.5ubuntu2.4"
},
{
"binary_name": "dselect",
"binary_version": "1.19.0.5ubuntu2.4"
},
{
"binary_name": "libdpkg-perl",
"binary_version": "1.19.0.5ubuntu2.4"
}
],
"priority_reason": "Only leaves temp files around when manually extracting a deb file"
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "dpkg",
"purl": "pkg:deb/ubuntu/dpkg@1.19.0.5ubuntu2.4?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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": {
"binaries": [
{
"binary_name": "dpkg",
"binary_version": "1.19.7ubuntu3.2"
},
{
"binary_name": "dselect",
"binary_version": "1.19.7ubuntu3.2"
},
{
"binary_name": "libdpkg-perl",
"binary_version": "1.19.7ubuntu3.2"
}
],
"priority_reason": "Only leaves temp files around when manually extracting a deb file"
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "dpkg",
"purl": "pkg:deb/ubuntu/dpkg@1.19.7ubuntu3.2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.19.7ubuntu2",
"1.19.7ubuntu3",
"1.19.7ubuntu3.2"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "dpkg",
"binary_version": "1.21.1ubuntu2.6"
},
{
"binary_name": "dselect",
"binary_version": "1.21.1ubuntu2.6"
},
{
"binary_name": "libdpkg-perl",
"binary_version": "1.21.1ubuntu2.6"
}
],
"priority_reason": "Only leaves temp files around when manually extracting a deb file"
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "dpkg",
"purl": "pkg:deb/ubuntu/dpkg@1.21.1ubuntu2.6?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.21.1ubuntu2.6"
}
],
"type": "ECOSYSTEM"
}
],
"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": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "dpkg",
"binary_version": "1.22.6ubuntu6.5"
},
{
"binary_name": "dselect",
"binary_version": "1.22.6ubuntu6.5"
},
{
"binary_name": "libdpkg-perl",
"binary_version": "1.22.6ubuntu6.5"
}
],
"priority_reason": "Only leaves temp files around when manually extracting a deb file"
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "dpkg",
"purl": "pkg:deb/ubuntu/dpkg@1.22.6ubuntu6.5?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.22.6ubuntu6.5"
}
],
"type": "ECOSYSTEM"
}
],
"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"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "dpkg",
"binary_version": "1.22.21ubuntu1"
},
{
"binary_name": "dselect",
"binary_version": "1.22.21ubuntu1"
},
{
"binary_name": "libdpkg-perl",
"binary_version": "1.22.21ubuntu1"
}
],
"priority_reason": "Only leaves temp files around when manually extracting a deb file"
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "dpkg",
"purl": "pkg:deb/ubuntu/dpkg@1.22.21ubuntu1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.22.21ubuntu1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.22.18ubuntu2",
"1.22.18ubuntu3"
]
}
],
"aliases": [],
"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.",
"id": "UBUNTU-CVE-2025-6297",
"modified": "2026-04-22T07:53:18Z",
"published": "2025-07-01T17:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-6297"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-6297"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-7768-1"
}
],
"related": [
"USN-7768-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "low",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-6297"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…