Medium
patch — security advisory
An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.
- Products
- patch
- Affected versions
- 2.7.1-3, 2.7.1-4, 2.7.1-4ubuntu1, 2.7.1-4ubuntu2, 2.7.1-4ubuntu2.3, 2.7.1-4ubuntu2.4, 2.7.1-4ubuntu2.4+esm1, 2.7.5-1, 2.7.5-1build1, 2.7.5-1ubuntu0.16.04.1, 2.7.5-1ubuntu0.16.04.2, 2.7.6-1, 2.7.6-2ubuntu1, 2.7.6-2ubuntu1.1, 2.7.6-6, 2.7.6-7, 2.7.6-7build1, 2.7.6-7build2, 2.7.6-7build3, 2.8-1, 2.8-2, 2.8-2build1
- Fixed versions
- Not specified
- CVEs
- CVE-2021-45261
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:35 UTC · Revision 1
Source evidence
An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.
osv:UBUNTU-CVE-2021-45261
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
patch
Fixed versions: Not specified
Complete source record
{
"id": "0e309636e67f5f293ca6f6bef1a45a9d6f2978ec8bda627a05606eacfbac60ae",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-45261",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-45261",
"summary": "An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.",
"evidence": "osv:UBUNTU-CVE-2021-45261",
"products": [
{
"name": {
"value": "patch",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.1-3",
"evidence": "/affected/0/versions"
},
{
"value": "2.7.1-4",
"evidence": "/affected/0/versions"
},
{
"value": "2.7.1-4ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "2.7.1-4ubuntu2",
"evidence": "/affected/0/versions"
},
{
"value": "2.7.1-4ubuntu2.3",
"evidence": "/affected/0/versions"
},
{
"value": "2.7.1-4ubuntu2.4",
"evidence": "/affected/0/versions"
},
{
"value": "2.7.1-4ubuntu2.4+esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.5-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.7.5-1ubuntu0.16.04.1",
"evidence": "/affected/1/versions"
},
{
"value": "2.7.5-1ubuntu0.16.04.2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.5-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.6-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.6-2ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.6-2ubuntu1.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.6-6",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.6-7",
"evidence": "/affected/4/versions"
},
{
"value": "2.7.6-7build1",
"evidence": "/affected/4/versions"
},
{
"value": "2.7.6-7build2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.6-7build2",
"evidence": "/affected/5/versions"
},
{
"value": "2.7.6-7build3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.6-7build3",
"evidence": "/affected/6/versions"
},
{
"value": "2.8-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.8-2",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8-2build1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "patch",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8-2",
"evidence": "/affected/8/versions"
},
{
"value": "2.8-2build1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2021-45261",
"aliases": [
"UBUNTU-CVE-2021-45261"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "negligible"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=esm-infra-legacy%2Ftrusty",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"2.7.1-3",
"2.7.1-4",
"2.7.1-4ubuntu1",
"2.7.1-4ubuntu2",
"2.7.1-4ubuntu2.3",
"2.7.1-4ubuntu2.4",
"2.7.1-4ubuntu2.4+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.7.1-4ubuntu2.4+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"2.7.5-1",
"2.7.5-1ubuntu0.16.04.1",
"2.7.5-1ubuntu0.16.04.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.7.5-1ubuntu0.16.04.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"2.7.5-1build1",
"2.7.6-1",
"2.7.6-2ubuntu1",
"2.7.6-2ubuntu1.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.7.6-2ubuntu1.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.7.6-6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.7.6-6"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.7.6-7",
"2.7.6-7build1",
"2.7.6-7build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.7.6-7build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.7.6-7build2",
"2.7.6-7build3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.7.6-7build3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.7.6-7build3",
"2.8-1",
"2.8-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.8-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.8-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.8-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "patch",
"purl": "pkg:deb/ubuntu/patch?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.8-2",
"2.8-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45261.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "patch",
"binary_version": "2.8-2build1"
}
]
}
}
],
"modified": "2026-10-17T12:55:47.890524765Z",
"provider": "osv",
"upstream": [
"CVE-2021-45261"
],
"references": [
"https://ubuntu.com/security/CVE-2021-45261",
"https://www.cve.org/CVERecord?id=CVE-2021-45261"
]
},
"related_cves": [
{
"value": "CVE-2021-45261",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354107,
"published_at": "2021-12-22T18:15:00+00:00"
}