{"id":"UBUNTU-CVE-2018-25032","details":"zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.","modified":"2026-04-22T13:05:38.271845Z","published":"2022-03-25T09:15:00Z","related":["USN-5355-1","USN-5355-2","USN-5359-1","USN-5359-2","USN-5739-1","USN-6736-1","USN-6736-2"],"upstream":["CVE-2018-25032"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-25032"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2022/03/24/1"},{"type":"REPORT","url":"https://github.com/madler/zlib/issues/605"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5355-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5355-2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5359-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5359-2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5739-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-25032"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6736-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6736-2"}],"affected":[{"package":{"name":"klibc","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/klibc@2.0.3-0ubuntu1.14.04.3+esm3?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.3-0ubuntu1.14.04.3+esm3"}]}],"versions":["2.0.1-3.1ubuntu2","2.0.2-1ubuntu1","2.0.2-1ubuntu2","2.0.3-0ubuntu1","2.0.3-0ubuntu1.14.04.1","2.0.3-0ubuntu1.14.04.2","2.0.3-0ubuntu1.14.04.3","2.0.3-0ubuntu1.14.04.3+esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"2.0.3-0ubuntu1.14.04.3+esm3","binary_name":"klibc-utils"},{"binary_version":"2.0.3-0ubuntu1.14.04.3+esm3","binary_name":"libklibc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"zlib","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/zlib@1:1.2.8.dfsg-1ubuntu1.1+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.2.8.dfsg-1ubuntu1.1+esm1"}]}],"versions":["1:1.2.8.dfsg-1ubuntu1","1:1.2.8.dfsg-1ubuntu1.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"1:1.2.8.dfsg-1ubuntu1.1+esm1","binary_name":"lib32z1"},{"binary_version":"1:1.2.8.dfsg-1ubuntu1.1+esm1","binary_name":"lib64z1"},{"binary_version":"1:1.2.8.dfsg-1ubuntu1.1+esm1","binary_name":"libx32z1"},{"binary_version":"1:1.2.8.dfsg-1ubuntu1.1+esm1","binary_name":"zlib-bin"},{"binary_version":"1:1.2.8.dfsg-1ubuntu1.1+esm1","binary_name":"zlib1g"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"klibc","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/klibc@2.0.4-8ubuntu1.16.04.4+esm2?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-8ubuntu1.16.04.4+esm2"}]}],"versions":["2.0.3-0ubuntu1","2.0.4-4","2.0.4-6","2.0.4-7","2.0.4-8","2.0.4-8ubuntu1","2.0.4-8ubuntu1.16.04.1","2.0.4-8ubuntu1.16.04.2","2.0.4-8ubuntu1.16.04.3","2.0.4-8ubuntu1.16.04.4","2.0.4-8ubuntu1.16.04.4+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"2.0.4-8ubuntu1.16.04.4+esm2","binary_name":"klibc-utils"},{"binary_version":"2.0.4-8ubuntu1.16.04.4+esm2","binary_name":"libklibc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"rsync","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/rsync@3.1.1-3ubuntu1.3+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.1-3ubuntu1.3+esm1"}]}],"versions":["3.1.1-3","3.1.1-3ubuntu1","3.1.1-3ubuntu1.1","3.1.1-3ubuntu1.2","3.1.1-3ubuntu1.3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"3.1.1-3ubuntu1.3+esm1","binary_name":"rsync"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"zlib","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/zlib@1:1.2.8.dfsg-2ubuntu4.3+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.2.8.dfsg-2ubuntu4.3+esm1"}]}],"versions":["1:1.2.8.dfsg-2ubuntu4","1:1.2.8.dfsg-2ubuntu4.1","1:1.2.8.dfsg-2ubuntu4.3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"1:1.2.8.dfsg-2ubuntu4.3+esm1","binary_name":"lib32z1"},{"binary_version":"1:1.2.8.dfsg-2ubuntu4.3+esm1","binary_name":"lib64z1"},{"binary_version":"1:1.2.8.dfsg-2ubuntu4.3+esm1","binary_name":"libx32z1"},{"binary_version":"1:1.2.8.dfsg-2ubuntu4.3+esm1","binary_name":"zlib1g"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"rsync","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/rsync@3.1.2-2.1ubuntu1.4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-2.1ubuntu1.4"}]}],"versions":["3.1.2-2","3.1.2-2.1","3.1.2-2.1ubuntu1","3.1.2-2.1ubuntu1.1","3.1.2-2.1ubuntu1.2","3.1.2-2.1ubuntu1.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.1.2-2.1ubuntu1.4","binary_name":"rsync"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"zlib","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/zlib@1:1.2.11.dfsg-0ubuntu2.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.2.11.dfsg-0ubuntu2.1"}]}],"versions":["1:1.2.11.dfsg-0ubuntu2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:1.2.11.dfsg-0ubuntu2.1","binary_name":"lib32z1"},{"binary_version":"1:1.2.11.dfsg-0ubuntu2.1","binary_name":"lib64z1"},{"binary_version":"1:1.2.11.dfsg-0ubuntu2.1","binary_name":"libx32z1"},{"binary_version":"1:1.2.11.dfsg-0ubuntu2.1","binary_name":"zlib1g"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"klibc","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/klibc@2.0.4-9ubuntu2.2+esm1?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-9ubuntu2.2+esm1"}]}],"versions":["2.0.4-9ubuntu1","2.0.4-9ubuntu2","2.0.4-9ubuntu2.1","2.0.4-9ubuntu2.2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"2.0.4-9ubuntu2.2+esm1","binary_name":"klibc-utils"},{"binary_version":"2.0.4-9ubuntu2.2+esm1","binary_name":"libklibc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"klibc","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/klibc@2.0.7-1ubuntu5.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7-1ubuntu5.2"}]}],"versions":["2.0.6-1ubuntu1","2.0.6-1ubuntu2","2.0.7-1ubuntu1","2.0.7-1ubuntu3","2.0.7-1ubuntu4","2.0.7-1ubuntu5","2.0.7-1ubuntu5.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.0.7-1ubuntu5.2","binary_name":"klibc-utils"},{"binary_version":"2.0.7-1ubuntu5.2","binary_name":"libklibc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"mariadb-10.3","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/mariadb-10.3@1:10.3.37-0ubuntu0.20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:10.3.37-0ubuntu0.20.04.1"}]}],"versions":["1:10.3.17-1","1:10.3.18-1","1:10.3.19-1","1:10.3.21-2","1:10.3.22-1","1:10.3.22-1ubuntu1","1:10.3.25-0ubuntu0.20.04.1","1:10.3.29-0ubuntu0.20.04.1","1:10.3.30-0ubuntu0.20.04.1","1:10.3.31-0ubuntu0.20.04.1","1:10.3.32-0ubuntu0.20.04.1","1:10.3.34-0ubuntu0.20.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"libmariadb-dev-compat"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"libmariadb3"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"libmariadbd19"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-backup"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-client"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-client-10.3"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-client-core-10.3"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-common"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-connect"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-cracklib-password-check"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-gssapi-client"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-gssapi-server"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-mroonga"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-oqgraph"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-rocksdb"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-spider"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-plugin-tokudb"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-server"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-server-10.3"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-server-core-10.3"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-test"},{"binary_version":"1:10.3.37-0ubuntu0.20.04.1","binary_name":"mariadb-test-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"rsync","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rsync@3.1.3-8ubuntu0.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3-8ubuntu0.3"}]}],"versions":["3.1.3-6","3.1.3-8","3.1.3-8ubuntu0.1","3.1.3-8ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.1.3-8ubuntu0.3","binary_name":"rsync"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"zlib","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/zlib@1:1.2.11.dfsg-2ubuntu1.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.2.11.dfsg-2ubuntu1.3"}]}],"versions":["1:1.2.11.dfsg-1ubuntu3","1:1.2.11.dfsg-2ubuntu1","1:1.2.11.dfsg-2ubuntu1.1","1:1.2.11.dfsg-2ubuntu1.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:1.2.11.dfsg-2ubuntu1.3","binary_name":"lib32z1"},{"binary_version":"1:1.2.11.dfsg-2ubuntu1.3","binary_name":"lib64z1"},{"binary_version":"1:1.2.11.dfsg-2ubuntu1.3","binary_name":"libx32z1"},{"binary_version":"1:1.2.11.dfsg-2ubuntu1.3","binary_name":"zlib1g"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"klibc","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/klibc@2.0.10-4ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.10-4ubuntu0.1"}]}],"versions":["2.0.8-6.1ubuntu2","2.0.10-3","2.0.10-4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.0.10-4ubuntu0.1","binary_name":"klibc-utils"},{"binary_version":"2.0.10-4ubuntu0.1","binary_name":"libklibc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"mariadb-10.6","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mariadb-10.6@1:10.6.11-0ubuntu0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:10.6.11-0ubuntu0.22.04.1"}]}],"versions":["1:10.6.7-2ubuntu1","1:10.6.7-2ubuntu1.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"libmariadb-dev-compat"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"libmariadb3"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"libmariadbd19"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-backup"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-client"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-client-10.6"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-client-core-10.6"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-common"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-connect"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-cracklib-password-check"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-gssapi-client"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-gssapi-server"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-mroonga"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-oqgraph"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-rocksdb"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-s3"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-plugin-spider"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-server"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-server-10.6"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-server-core-10.6"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-test"},{"binary_version":"1:10.6.11-0ubuntu0.22.04.1","binary_name":"mariadb-test-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"zlib","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/zlib@1:1.2.11.dfsg-2ubuntu9?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.2.11.dfsg-2ubuntu9"}]}],"versions":["1:1.2.11.dfsg-2ubuntu7"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:1.2.11.dfsg-2ubuntu9","binary_name":"lib32z1"},{"binary_version":"1:1.2.11.dfsg-2ubuntu9","binary_name":"lib64z1"},{"binary_version":"1:1.2.11.dfsg-2ubuntu9","binary_name":"libx32z1"},{"binary_version":"1:1.2.11.dfsg-2ubuntu9","binary_name":"zlib1g"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}},{"package":{"name":"klibc","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/klibc@2.0.13-4ubuntu0.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.13-4ubuntu0.1"}]}],"versions":["2.0.13-1","2.0.13-2","2.0.13-2ubuntu1","2.0.13-4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.0.13-4ubuntu0.1","binary_name":"klibc-utils"},{"binary_version":"2.0.13-4ubuntu0.1","binary_name":"libklibc"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25032.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}