cve.bz

CVE-2020-27840 Out-of-bounds Read

7.5 highEPSS 3.9%

High (7.5). EPSS 3.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.9% (unchanged from 3.9% a week ago; 3.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-27840 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-27840?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-27840?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-27840 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
samba:sambafrom 4.0.0 before 4.12.13
samba:sambafrom 4.13.0 before 4.13.6
samba:sambafrom 4.14.0 before 4.14.1
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora32
fedoraproject:fedora33
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ldb2:1.1.27-1+deb9u2DLA-2611-1
Debian10ldb2:1.5.1+really1.4.6-3+deb10u1DSA-4884-1
Debian12, 13, 14samba2:4.13.13+dfsg-1DEBIAN-CVE-2020-27840
Ubuntu16.04:LTSldb2:1.1.24-1ubuntu3.2UBUNTU-CVE-2020-27840 USN-4888-1
Ubuntu18.04:LTSldb2:1.2.3-1ubuntu0.2UBUNTU-CVE-2020-27840 USN-4888-1
Ubuntu20.04:LTSldb2:2.0.10-0ubuntu0.20.04.3UBUNTU-CVE-2020-27840 USN-4888-1
UbuntuPro:14.04:LTSldb1:1.1.24-0ubuntu0.14.04.2+esm1UBUNTU-CVE-2020-27840 USN-4888-2
SUSEEnterprise Storage 6, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 7 moresamba4.9.5+git.432.d9b18c4f390-3.50.1SUSE-SU-2021:1498-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moreldb1.4.6-3.8.1SUSE-SU-2021:0944-1
SUSEEnterprise Storage 7ldb2.2.1-4.3.1SUSE-SU-2021:1440-1
SUSEEnterprise Storage 7samba4.13.6+git.211.555d60b24ba-3.9.1SUSE-SU-2021:1440-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2samba4.11.14+git.247.8c858f7ee14-4.19.1SUSE-SU-2021:1444-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3samba4.13.6+git.211.555d60b24ba-3.7.1SUSE-SU-2021:3187-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3samba4.15.4+git.324.8332acf1a63-150300.3.25.3SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3ldb2.4.1-150300.3.10.1SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3libapparmor2.13.6-150300.3.11.1SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3sssd1.16.1-150300.23.17.3SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3talloc2.3.3-150300.3.3.2SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3tdb1.4.4-150300.3.3.2SUSE-SU-2022:0283-1
6 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2ldb2.0.12-lp152.2.9.1openSUSE-SU-2021:0469-1
openSUSELeap 15.2samba4.11.14+git.247.8c858f7ee14-lp152.3.19.1openSUSE-SU-2021:0636-1
openSUSELeap 15.3apparmor2.13.6-150300.3.11.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3krb5, krb5-mini1.19.2-150300.8.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3ldb2.4.1-150300.3.10.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3libapparmor2.13.6-150300.3.11.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3samba4.13.6+git.211.555d60b24ba-3.7.1openSUSE-SU-2021:3187-1
openSUSELeap 15.3samba4.15.4+git.324.8332acf1a63-150300.3.25.3openSUSE-SU-2022:0283-1
openSUSELeap 15.3sssd1.16.1-150300.23.17.3openSUSE-SU-2022:0283-1
openSUSELeap 15.3talloc2.3.3-150300.3.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3talloc-man2.3.3-150300.3.3.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3tdb1.4.4-150300.3.3.2openSUSE-SU-2022:0283-1
4 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.12samba4.12.14-r0ALPINE-CVE-2020-27840
Alpinev3.13samba4.13.7-r0ALPINE-CVE-2020-27840
Alpinev3.14, v3.15, v3.16 and 8 moresamba4.14.2-r0ALPINE-CVE-2020-27840
Azure Linux2sambano fix listedAZL-7351
Azure Linux3libldb2.7.2-1AZL-45414
Azure Linux3samba4.18.3-1AZL-36997

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw does not affect the version of Samba shipped with Red Hat Enterprise Linux and Red Hat Gluster Storage 3 because there is no support for Samba as Active Directory Domain Controller.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Storage 3sambaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-27840.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON