{"id":"UBUNTU-CVE-2018-6952","details":"A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.","modified":"2026-05-20T16:03:41.853918080Z","published":"2018-02-13T19:29:00Z","upstream":["CVE-2018-6952"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-6952"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-6952"}],"affected":[{"package":{"name":"patch","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.7.1-4ubuntu2.4+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.5-1","2.7.5-1ubuntu0.16.04.1","2.7.5-1ubuntu0.16.04.2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.5-1ubuntu0.16.04.2","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.5-1build1","2.7.6-1","2.7.6-2ubuntu1","2.7.6-2ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.6-2ubuntu1.1","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-6"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.6-6","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7","2.7.6-7build1","2.7.6-7build2"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.7.6-7build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7build2","2.7.6-7build3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.6-7build3","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/patch?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7build3","2.8-1","2.8-2"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.8-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2","2.8-2build1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8-2build1","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-6952.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"negligible"}]}