{"id":"UBUNTU-CVE-2020-19861","details":"When a zone file in ldns 1.7.1 is parsed, the function ldns_nsec3_salt_data is too trusted for the length value obtained from the zone file. When the memcpy is copied, the 0xfe - ldns_rdf_size(salt_rdf) byte data can be copied, causing heap overflow information leakage.","modified":"2026-01-30T02:52:12.123071Z","published":"2022-01-21T15:15:00Z","related":["USN-5257-1","USN-5257-2"],"upstream":["CVE-2020-19861"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-19861"},{"type":"REPORT","url":"https://github.com/NLnetLabs/ldns/issues/51"},{"type":"REPORT","url":"https://github.com/NLnetLabs/ldns/commit/136ec420437041fe13f344a2053e774f9050cc38"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5257-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5257-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-19861"}],"affected":[{"package":{"name":"ldns","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ldns@1.6.17-8ubuntu0.1+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.17-8ubuntu0.1+esm1"}]}],"versions":["1.6.17-5","1.6.17-7","1.6.17-8","1.6.17-8ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.17-8ubuntu0.1+esm1","binary_name":"ldnsutils"},{"binary_version":"1.6.17-8ubuntu0.1+esm1","binary_name":"libldns-dev"},{"binary_version":"1.6.17-8ubuntu0.1+esm1","binary_name":"libldns1"},{"binary_version":"1.6.17-8ubuntu0.1+esm1","binary_name":"python-ldns"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-19861.json"}},{"package":{"name":"ldns","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ldns@1.7.0-3ubuntu4.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.0-3ubuntu4.1"}]}],"versions":["1.7.0-1ubuntu1","1.7.0-3ubuntu1","1.7.0-3ubuntu2","1.7.0-3ubuntu4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.0-3ubuntu4.1","binary_name":"ldnsutils"},{"binary_version":"1.7.0-3ubuntu4.1","binary_name":"libldns-dev"},{"binary_version":"1.7.0-3ubuntu4.1","binary_name":"libldns2"},{"binary_version":"1.7.0-3ubuntu4.1","binary_name":"python-ldns"},{"binary_version":"1.7.0-3ubuntu4.1","binary_name":"python3-ldns"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-19861.json"}},{"package":{"name":"ldns","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ldns@1.7.0-4.1ubuntu1+esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.0-4.1ubuntu1+esm1"}]}],"versions":["1.7.0-3ubuntu8","1.7.0-4","1.7.0-4ubuntu1","1.7.0-4.1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.0-4.1ubuntu1+esm1","binary_name":"ldnsutils"},{"binary_version":"1.7.0-4.1ubuntu1+esm1","binary_name":"libldns-dev"},{"binary_version":"1.7.0-4.1ubuntu1+esm1","binary_name":"libldns2"},{"binary_version":"1.7.0-4.1ubuntu1+esm1","binary_name":"python-ldns"},{"binary_version":"1.7.0-4.1ubuntu1+esm1","binary_name":"python3-ldns"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-19861.json"}},{"package":{"name":"ldns","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/ldns@1.7.1-2ubuntu4+esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.1-2ubuntu4+esm1"}]}],"versions":["1.7.1-2build1","1.7.1-2ubuntu1","1.7.1-2ubuntu3","1.7.1-2ubuntu4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.1-2ubuntu4+esm1","binary_name":"ldnsutils"},{"binary_version":"1.7.1-2ubuntu4+esm1","binary_name":"libldns-dev"},{"binary_version":"1.7.1-2ubuntu4+esm1","binary_name":"libldns3"},{"binary_version":"1.7.1-2ubuntu4+esm1","binary_name":"python3-ldns"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-19861.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}