---
id: CVE-2023-34967
title: 'Samba: type confusion in mdssvc rpc service for spotlight'
summary: >-
  A Type Confusion vulnerability was found in Samba's mdssvc RPC service for
  Spotlight. When parsing Spotlight mdssvc RPC packets, one encoded data
  structure is a key-value style dictionary where the keys are character
  strings, and the val…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
cvssSource: cna
cwe:
  - CWE-843
vendor: Red Hat
product: samba
affected:
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba (all versions)
  - samba
  - samba4
  - samba
  - samba
published: '2023-07-20'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T20:25:12.732Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-34967'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2023:6667'
    label: 'RHSA-2023:6667'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7139'
    label: 'RHSA-2023:7139'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0423'
    label: 'RHSA-2024:0423'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0580'
    label: 'RHSA-2024:0580'
  - url: 'https://access.redhat.com/security/cve/CVE-2023-34967'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2222794'
    label: RHBZ#2222794
  - url: 'https://www.samba.org/samba/security/CVE-2023-34967.html'
tags:
  - cve.org
epss: 0.61199
epssPercentile: 0.99166
ingestedAt: '2026-11-06T21:04:04.250Z'
---

## Overview

A Type Confusion vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets, one encoded data structure is a key-value style dictionary where the keys are character strings, and the values can be any of the supported types in the mdssvc protocol. Due to a lack of type checking in callers of the dalloc_value_for_key() function, which returns the object associated with a key, a caller may trigger a crash in talloc_get_size() when talloc detects that the passed-in pointer is not a valid talloc pointer. With an RPC worker process shared among multiple client connections, a malicious client or attacker can trigger a process crash in a shared RPC mdssvc worker process, affecting all other clients this worker serves.

## Affected

- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba (all versions)`
- `samba`
- `samba4`
- `samba`
- `samba`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

As a possible workaround, disable Spotlight by removing all configuration stanzas ("spotlight=yes|true") that enable Spotlight .
