Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-16841

Samba from version 4.3.0 and before versions 4.7.12, 4.8.7 and 4.9.3 are vulnerable to a denial of service. When configured to accept smart-card authentication, Samba's KDC will call talloc_free() twice on the same memory if the principal in a validly signed certificate does not match the principal in the AS-REQ. This is only possible after authentication with a trusted certificate. talloc is robust against further corruption from a double-free with talloc_free() and directly calls abort(), terminating the KDC process.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-16841
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:10 UTC · Revision 1

Source evidence

CVE-2018-16841

core-osv · Original source

Published 28 Nov 2018, 14:29 UTC

Samba from version 4.3.0 and before versions 4.7.12, 4.8.7 and 4.9.3 are vulnerable to a denial of service. When configured to accept smart-card authentication, Samba's KDC will call talloc_free() twice on the same memory if the principal in a validly signed certificate does not match the principal in the AS-REQ. This is only possible after authentication with a trusted certificate. talloc is robust against further corruption from a double-free with talloc_free() and directly calls abort(), terminating the KDC process.

osv:CVE-2018-16841
Complete source record
{
  "id": "42ac5512f4be851f977ad22fb0c7c759df779418521e7ddfaec34f66ff505bb2",
  "url": "https://osv.dev/vulnerability/CVE-2018-16841",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-16841",
    "summary": "Samba from version 4.3.0 and before versions 4.7.12, 4.8.7 and 4.9.3 are vulnerable to a denial of service. When configured to accept smart-card authentication, Samba's KDC will call talloc_free() twice on the same memory if the principal in a validly signed certificate does not match the principal in the AS-REQ. This is only possible after authentication with a trusted certificate. talloc is robust against further corruption from a double-free with talloc_free() and directly calls abort(), terminating the KDC process.",
    "evidence": "osv:CVE-2018-16841",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-16841",
      "aliases": [
        "CVE-2018-16841"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/samba-team/samba",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b85f6018c803fb9aad82820d4b5505179ec5bac3"
                },
                {
                  "fixed": "b7d190f89d7674cf58a02486fa9887d393918611"
                },
                {
                  "introduced": "5a9d09fee44052e18ce241ec28f78498d2e20d73"
                },
                {
                  "fixed": "cd870beb978a334b948c6992059540c864dd2540"
                },
                {
                  "introduced": "4fc4ae2924aaa2fc184b7385069274526fa8a4c2"
                },
                {
                  "fixed": "40c057c900a9367e8020c943d29547ea8942212f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.3.0"
                      },
                      {
                        "fixed": "4.7.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.8.0"
                      },
                      {
                        "fixed": "4.8.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.9.0"
                      },
                      {
                        "fixed": "4.9.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "samba-4.8.6",
            "samba-4.9.2",
            "ldb-1.4.3",
            "samba-4.9.1",
            "samba-4.9.0",
            "samba-4.8.5",
            "ldb-1.3.6",
            "samba-4.8.3",
            "ldb-1.3.4",
            "samba-4.8.2",
            "ldb-1.3.3",
            "samba-4.8.1",
            "samba-4.8.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16841.json"
          }
        }
      ],
      "modified": "2026-10-24T10:31:03.732459931Z",
      "provider": "osv",
      "references": [
        "https://security.gentoo.org/glsa/202003-52",
        "https://security.netapp.com/advisory/ntap-20181127-0001/",
        "https://usn.ubuntu.com/3827-1/",
        "https://usn.ubuntu.com/3827-2/",
        "https://www.debian.org/security/2018/dsa-4345",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16841",
        "https://www.samba.org/samba/security/CVE-2018-16841.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.04"
                  },
                  {
                    "last_affected": "12.04"
                  },
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "18.10"
                  },
                  {
                    "last_affected": "18.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-16841",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 440339,
  "published_at": "2018-11-28T14:29:00.347+00:00"
}