Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-44142

The Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and interoperability with a Netatalk 3 AFP fileserver." Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 with vfs_fruit configured allow out-of-bounds heap read and write via specially crafted extended file attributes. A remote attacker with write access to extended file attributes can execute arbitrary code with the privileges of smbd, typically root.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-44142
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:09 UTC · Revision 1

Source evidence

CVE-2021-44142

core-osv · Original source

Published 21 Feb 2022, 15:15 UTC

The Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and interoperability with a Netatalk 3 AFP fileserver." Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 with vfs_fruit configured allow out-of-bounds heap read and write via specially crafted extended file attributes. A remote attacker with write access to extended file attributes can execute arbitrary code with the privileges of smbd, typically root.

osv:CVE-2021-44142
Complete source record
{
  "id": "36e85f11306e870803780ecf9504818b4554eac007dbd89c6dc71e2aab4cd671",
  "url": "https://osv.dev/vulnerability/CVE-2021-44142",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-44142",
    "summary": "The Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide \"...enhanced compatibility with Apple SMB clients and interoperability with a Netatalk 3 AFP fileserver.\" Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 with vfs_fruit configured allow out-of-bounds heap read and write via specially crafted extended file attributes. A remote attacker with write access to extended file attributes can execute arbitrary code with the privileges of smbd, typically root.",
    "evidence": "osv:CVE-2021-44142",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-44142",
      "aliases": [
        "CVE-2021-44142"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/samba-team/samba",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e0de3de2504616cffc42b66e865f31380f55305c"
                },
                {
                  "introduced": "9b49519cae3e967af9ea48dc5fcfb6c145e31db4"
                },
                {
                  "fixed": "4c6b1950c479c33fb44ee3d0881bb4315a68fbd0"
                },
                {
                  "introduced": "fc8342bd26d1c55ca5780b427f675f31147b27f9"
                },
                {
                  "fixed": "27bd8a323591486e76e916a6084c7300bf358eec"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.13.17"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.14.0"
                      },
                      {
                        "fixed": "4.14.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.15.0"
                      },
                      {
                        "fixed": "4.15.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "samba-4.15.4",
            "samba-4.13.16",
            "samba-4.14.11",
            "samba-4.13.15",
            "samba-4.15.3",
            "samba-4.13.14",
            "samba-4.14.10",
            "samba-4.15.2",
            "ldb-2.2.3",
            "ldb-2.3.2",
            "samba-4.13.13",
            "ldb-2.2.2",
            "samba-4.14.9",
            "samba-4.15.1",
            "ldb-2.4.1",
            "ldb-2.3.1",
            "samba-4.14.8",
            "samba-4.13.12",
            "samba-4.15.0",
            "samba-4.13.11",
            "samba-4.14.7",
            "samba-4.13.10",
            "samba-4.14.6",
            "samba-4.14.5",
            "samba-4.13.9",
            "samba-4.14.3",
            "samba-4.13.5",
            "samba-4.14.0",
            "samba-4.13.4",
            "samba-4.13.3",
            "samba-4.13.2",
            "samba-4.13.0",
            "samba-4.13.0rc6",
            "samba-4.13.0rc5",
            "samba-4.13.0rc4",
            "samba-4.13.0rc3",
            "samba-4.13.0rc2",
            "samba-4.13.0rc1",
            "ldb-2.2.0",
            "ldb-2.1.1",
            "samba-4.12.0rc1",
            "ldb-2.1.0",
            "tevent-0.10.2",
            "tdb-1.4.3",
            "talloc-2.3.1",
            "tevent-0.10.1",
            "tdb-1.4.2",
            "talloc-2.3.0",
            "samba-4.11.0rc1",
            "ldb-2.0.5",
            "tdb-1.4.1",
            "ldb-1.6.3",
            "tevent-0.10.0",
            "talloc-2.2.0",
            "tdb-1.4.0",
            "ldb-1.6.2",
            "tevent-0.9.39",
            "talloc-2.1.16",
            "tdb-1.3.18",
            "ldb-1.6.1",
            "samba-4.10.0rc1",
            "ldb-1.5.2",
            "tevent-0.9.38",
            "talloc-2.1.15",
            "tdb-1.3.17",
            "ldb-1.5.1",
            "ldb-1.5.0",
            "samba-4.9.0rc1",
            "ldb-1.4.1",
            "talloc-2.1.14",
            "tdb-1.3.16",
            "tevent-0.9.37",
            "ldb-1.4.0",
            "talloc-2.1.13",
            "talloc-2.1.12",
            "ldb-1.3.2",
            "tevent-0.9.36",
            "samba-4.8.0rc1",
            "ldb-1.3.1",
            "tevent-0.9.35",
            "talloc-2.1.11",
            "tevent-0.9.34",
            "ldb-1.3.0",
            "ldb-1.2.2",
            "tdb-1.3.15",
            "ldb-1.2.1",
            "tevent-0.9.33",
            "talloc-2.1.10",
            "samba-4.7.0rc1",
            "ldb-1.2.0",
            "tdb-1.3.14",
            "tevent-0.9.32",
            "ldb-1.1.31",
            "ldb-1.1.30",
            "tdb-1.3.13",
            "talloc-2.1.9",
            "samba-4.6.0rc1",
            "ldb-1.1.29",
            "tdb-1.3.12",
            "ldb-1.1.28",
            "tevent-0.9.31",
            "tdb-1.3.11",
            "tevent-0.9.30",
            "samba-4.5.0rc1",
            "ldb-1.1.27",
            "tevent-0.9.29",
            "talloc-2.1.8",
            "tdb-1.3.10",
            "talloc-2.1.7",
            "tdb-1.3.9",
            "talloc-2.1.6",
            "tevent-0.9.28",
            "ldb-1.1.26",
            "tevent-0.9.27",
            "samba-4.4.0rc1",
            "ldb-1.1.25",
            "ldb-1.1.23",
            "talloc-2.1.5",
            "tdb-1.3.8",
            "tevent-0.9.26",
            "ldb-1.1.22",
            "talloc-2.1.4",
            "samba-4.3.0rc1",
            "ldb-1.1.21",
            "tdb-1.3.7",
            "talloc-2.1.3",
            "tdb-1.3.6",
            "tevent-0.9.25",
            "tdb-1.3.5",
            "talloc-2.1.2",
            "tevent-0.9.24",
            "tevent-0.9.23",
            "ldb-1.1.20",
            "ldb-1.1.19",
            "tdb-1.3.4",
            "tdb-1.3.3",
            "ldb-1.1.18",
            "tdb-1.3.2",
            "samba-4.2.0rc1",
            "tevent-0.9.22",
            "tdb-1.3.1",
            "tdb-1.3.0",
            "talloc-2.1.1",
            "ldb-1.1.17",
            "tdb-1.2.13",
            "tevent-0.9.21",
            "tevent-0.9.20",
            "talloc-2.1.0",
            "tevent-0.9.19",
            "ldb-1.1.16",
            "tdb-1.2.12",
            "tevent-0.9.18",
            "ldb-1.1.15",
            "ldb-1.1.14",
            "tdb-1.2.11",
            "talloc-2.0.8",
            "samba-4.0.0rc1",
            "ldb-1.1.13",
            "samba-4.0.0beta8",
            "ldb-1.1.12",
            "ldb-1.1.11",
            "samba-4.0.0beta7",
            "tevent-0.9.17",
            "samba-4.0.0beta6",
            "ldb-1.1.10",
            "ldb-1.1.9",
            "samba-4.0.0beta5",
            "samba-4.0.0beta4",
            "ldb-1.1.8",
            "samba-4.0.0beta3",
            "samba-4.0.0beta2",
            "tevent-0.9.16",
            "samba-4.0.0beta1",
            "samba-4.0.0alpha21",
            "samba-4.0.0alpha20",
            "ldb-1.1.6",
            "samba-4.0.0alpha19",
            "ldb-1.1.5",
            "tdb-1.2.10",
            "samba-4.0.0alpha18",
            "tevent-0.9.15",
            "ldb-1.1.4",
            "ldb-1.1.3",
            "talloc-2.0.7",
            "samba-4.0.0alpha17",
            "tevent-0.9.14",
            "ldb-1.1.2",
            "tevent-0.9.13",
            "tevent-0.9.12",
            "ldb-1.1.0",
            "tevent-0.9.11",
            "tdb-1.2.1",
            "samba-4.0.0alpha10",
            "samba-4.0.0alpha9",
            "tdb-1.2.0",
            "tevent-0.9.8",
            "talloc-2.0.0",
            "samba-4.0.0alpha8",
            "talloc-1.3.1",
            "tdb-1.1.5",
            "samba-4.0.0alpha7",
            "samba-4.0.0alpha6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-44142.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:36.069964041Z",
      "provider": "osv",
      "references": [
        "https://kb.cert.org/vuls/id/119678",
        "https://www.kb.cert.org/vuls/id/119678",
        "https://www.samba.org/samba/security/CVE-2021-44142.html",
        "https://security.gentoo.org/glsa/202309-06",
        "https://bugzilla.samba.org/show_bug.cgi?id=14914",
        "https://www.zerodayinitiative.com/blog/2022/2/1/cve-2021-44142-details-on-a-samba-code-execution-bug-demonstrated-at-pwn2own-austin"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:synology:diskstation_manager:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "synology:diskstation_manager",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.2"
                  },
                  {
                    "fixed": "6.2.4-25556.4"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "20.04"
                  },
                  {
                    "last_affected": "20.04"
                  },
                  {
                    "introduced": "21.10"
                  },
                  {
                    "last_affected": "21.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  },
                  {
                    "introduced": "11.0"
                  },
                  {
                    "last_affected": "11.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  },
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_eus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_eus:8.4:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_for_ibm_z_systems",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:8.4:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_for_ibm_z_systems_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_for_power_big_endian:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_for_power_big_endian",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_for_power_little_endian",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:8.4:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_for_power_little_endian_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_for_scientific_computing:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_for_scientific_computing",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_resilient_storage:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_resilient_storage",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server:8.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.1"
                  },
                  {
                    "last_affected": "8.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:8.4:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_aus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:8.4:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_tus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_update_services_for_sap_solutions:8.1:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_update_services_for_sap_solutions:8.2:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server_update_services_for_sap_solutions:8.4:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_update_services_for_sap_solutions",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.1"
                  },
                  {
                    "last_affected": "8.1"
                  },
                  {
                    "introduced": "8.2"
                  },
                  {
                    "last_affected": "8.2"
                  },
                  {
                    "introduced": "8.4"
                  },
                  {
                    "last_affected": "8.4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:gluster_storage:3.5:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:gluster_storage",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.5"
                  },
                  {
                    "last_affected": "3.5"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:virtualization_host",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.0"
                  },
                  {
                    "last_affected": "4.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-44142",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 433895,
  "published_at": "2022-02-21T15:15:07.38+00:00"
}