{"id":"UBUNTU-CVE-2020-27840","details":"A flaw was found in samba. Spaces used in a string around a domain name (DN), while supposed to be ignored, can cause invalid DN strings with spaces to instead write a zero-byte into out-of-bounds memory, resulting in a crash. The highest threat from this vulnerability is to system availability.","modified":"2026-04-22T14:18:48.628259Z","published":"2021-03-24T00:00:00Z","related":["USN-4888-1","USN-4888-2"],"upstream":["CVE-2020-27840"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-27840"},{"type":"REPORT","url":"https://www.samba.org/samba/security/CVE-2020-27840.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4888-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4888-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-27840"}],"affected":[{"package":{"name":"ldb","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/ldb@1:1.1.24-0ubuntu0.14.04.2+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.1.24-0ubuntu0.14.04.2+esm1"}]}],"versions":["1:1.1.15-1.1","1:1.1.16-1","1:1.1.16-1ubuntu0.1","1:1.1.24-0ubuntu0.14.04.1","1:1.1.24-0ubuntu0.14.04.2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"ldb-tools","binary_version":"1:1.1.24-0ubuntu0.14.04.2+esm1"},{"binary_name":"libldb1","binary_version":"1:1.1.24-0ubuntu0.14.04.2+esm1"},{"binary_name":"python-ldb","binary_version":"1:1.1.24-0ubuntu0.14.04.2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-27840.json"}},{"package":{"name":"ldb","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ldb@2:1.1.24-1ubuntu3.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.1.24-1ubuntu3.2"}]}],"versions":["2:1.1.20-2","2:1.1.21-1","2:1.1.23-1","2:1.1.23-1ubuntu1","2:1.1.24-1ubuntu1","2:1.1.24-1ubuntu3","2:1.1.24-1ubuntu3.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ldb-tools","binary_version":"2:1.1.24-1ubuntu3.2"},{"binary_name":"libldb1","binary_version":"2:1.1.24-1ubuntu3.2"},{"binary_name":"python-ldb","binary_version":"2:1.1.24-1ubuntu3.2"},{"binary_version":"2:1.1.24-1ubuntu3.2","binary_name":"python3-ldb"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-27840.json"}},{"package":{"name":"ldb","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ldb@2:1.2.3-1ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.3-1ubuntu0.2"}]}],"versions":["2:1.1.29-2","2:1.2.2-2","2:1.2.3-1","2:1.2.3-1ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ldb-tools","binary_version":"2:1.2.3-1ubuntu0.2"},{"binary_name":"libldb1","binary_version":"2:1.2.3-1ubuntu0.2"},{"binary_name":"python-ldb","binary_version":"2:1.2.3-1ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-27840.json"}},{"package":{"name":"ldb","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ldb@2:2.0.10-0ubuntu0.20.04.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:2.0.10-0ubuntu0.20.04.3"}]}],"versions":["2:1.5.5-0ubuntu2","2:1.5.5-0ubuntu3","2:2.0.7-4","2:2.0.8-1ubuntu1","2:2.0.8-2","2:2.0.10-0ubuntu0.20.04.1","2:2.0.10-0ubuntu0.20.04.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2:2.0.10-0ubuntu0.20.04.3","binary_name":"ldb-tools"},{"binary_version":"2:2.0.10-0ubuntu0.20.04.3","binary_name":"libldb2"},{"binary_name":"python3-ldb","binary_version":"2:2.0.10-0ubuntu0.20.04.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-27840.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":"high"}]}