GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

OESA-2021-1207 (CVE-2021-20254)

Vulnerability from osv_openeuler – Published: 2021-06-07 11:04 – Updated: 2026-08-06 11:04 – Source website
VLAI
Summary
samba security update
Details

Samba is a suite of programs for Linux and Unix to interoperate with Windows.

Security Fix(es):

A flaw was found in samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause the calling code to return those values into the process token that stores the group membership for a user. The highest threat from this vulnerability is to data confidentiality and integrity.(CVE-2021-20254)

A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the request. The highest threat from this vulnerability is to system availability.(CVE-2021-20277)

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.(CVE-2020-27840)


{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "libsmbclient-devel-4.11.12-4.oe1.aarch64.rpm",
          "samba-winbind-4.11.12-4.oe1.aarch64.rpm",
          "python3-samba-dc-4.11.12-4.oe1.aarch64.rpm",
          "python3-samba-test-4.11.12-4.oe1.aarch64.rpm",
          "samba-debuginfo-4.11.12-4.oe1.aarch64.rpm",
          "ctdb-tests-4.11.12-4.oe1.aarch64.rpm",
          "samba-dc-provision-4.11.12-4.oe1.aarch64.rpm",
          "samba-client-4.11.12-4.oe1.aarch64.rpm",
          "libwbclient-4.11.12-4.oe1.aarch64.rpm",
          "samba-help-4.11.12-4.oe1.aarch64.rpm",
          "samba-test-4.11.12-4.oe1.aarch64.rpm",
          "samba-4.11.12-4.oe1.aarch64.rpm",
          "samba-winbind-modules-4.11.12-4.oe1.aarch64.rpm",
          "samba-debugsource-4.11.12-4.oe1.aarch64.rpm",
          "python3-samba-4.11.12-4.oe1.aarch64.rpm",
          "samba-dc-4.11.12-4.oe1.aarch64.rpm",
          "samba-common-4.11.12-4.oe1.aarch64.rpm",
          "ctdb-4.11.12-4.oe1.aarch64.rpm",
          "libwbclient-devel-4.11.12-4.oe1.aarch64.rpm",
          "samba-krb5-printing-4.11.12-4.oe1.aarch64.rpm",
          "samba-common-tools-4.11.12-4.oe1.aarch64.rpm",
          "libsmbclient-4.11.12-4.oe1.aarch64.rpm",
          "samba-winbind-clients-4.11.12-4.oe1.aarch64.rpm",
          "samba-devel-4.11.12-4.oe1.aarch64.rpm",
          "samba-winbind-krb5-locator-4.11.12-4.oe1.aarch64.rpm",
          "samba-dc-bind-dlz-4.11.12-4.oe1.aarch64.rpm",
          "samba-libs-4.11.12-4.oe1.aarch64.rpm"
        ],
        "noarch": [
          "samba-pidl-4.11.12-4.oe1.noarch.rpm"
        ],
        "src": [
          "samba-4.11.12-4.oe1.src.rpm"
        ],
        "x86_64": [
          "ctdb-tests-4.11.12-4.oe1.x86_64.rpm",
          "samba-debuginfo-4.11.12-4.oe1.x86_64.rpm",
          "samba-dc-provision-4.11.12-4.oe1.x86_64.rpm",
          "samba-devel-4.11.12-4.oe1.x86_64.rpm",
          "samba-vfs-glusterfs-4.11.12-4.oe1.x86_64.rpm",
          "samba-krb5-printing-4.11.12-4.oe1.x86_64.rpm",
          "samba-common-tools-4.11.12-4.oe1.x86_64.rpm",
          "samba-dc-4.11.12-4.oe1.x86_64.rpm",
          "samba-4.11.12-4.oe1.x86_64.rpm",
          "libwbclient-devel-4.11.12-4.oe1.x86_64.rpm",
          "samba-debugsource-4.11.12-4.oe1.x86_64.rpm",
          "libsmbclient-devel-4.11.12-4.oe1.x86_64.rpm",
          "samba-common-4.11.12-4.oe1.x86_64.rpm",
          "ctdb-4.11.12-4.oe1.x86_64.rpm",
          "samba-winbind-clients-4.11.12-4.oe1.x86_64.rpm",
          "samba-libs-4.11.12-4.oe1.x86_64.rpm",
          "samba-client-4.11.12-4.oe1.x86_64.rpm",
          "samba-dc-bind-dlz-4.11.12-4.oe1.x86_64.rpm",
          "samba-test-4.11.12-4.oe1.x86_64.rpm",
          "libwbclient-4.11.12-4.oe1.x86_64.rpm",
          "samba-winbind-krb5-locator-4.11.12-4.oe1.x86_64.rpm",
          "samba-winbind-modules-4.11.12-4.oe1.x86_64.rpm",
          "python3-samba-test-4.11.12-4.oe1.x86_64.rpm",
          "samba-help-4.11.12-4.oe1.x86_64.rpm",
          "python3-samba-4.11.12-4.oe1.x86_64.rpm",
          "python3-samba-dc-4.11.12-4.oe1.x86_64.rpm",
          "libsmbclient-4.11.12-4.oe1.x86_64.rpm",
          "samba-winbind-4.11.12-4.oe1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP1",
        "name": "samba",
        "purl": "pkg:rpm/openEuler/samba\u0026distro=openEuler-20.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.11.12-4.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "Samba is a suite of programs for Linux and Unix to interoperate with Windows.\r\n\r\nSecurity Fix(es):\r\n\r\nA flaw was found in samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause the calling code to return those values into the process token that stores the group membership for a user. The highest threat from this vulnerability is to data confidentiality and integrity.(CVE-2021-20254)\r\n\r\nA flaw was found in Samba\u0026apos;s libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the request. The highest threat from this vulnerability is to system availability.(CVE-2021-20277)\r\n\r\nA 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.(CVE-2020-27840)",
  "id": "OESA-2021-1207",
  "modified": "2026-08-06T11:04:26Z",
  "published": "2021-06-07T11:04:26Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1207"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-20254"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-20277"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27840"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "samba security update",
  "upstream": [
    "CVE-2021-20254",
    "CVE-2021-20277",
    "CVE-2020-27840"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…