CVE-2023-34966: Samba: infinite loop in mdssvc rpc service for spotlight
CVE-2023-34966 affects 169 listed versions of Samba in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Samba
169 of 250 listed versions are affected. Fixed in 4.18.5, 4.17.10, 4.16.11. The newest release, 4.25.1, is not affected.
4.18.4 4.18.3 4.18.2 4.18.1 4.18.0 4.17.9 4.17.8 4.17.7 4.17.6 4.17.5 4.17.4 4.17.3 4.17.2 4.17.1 4.17.0 4.16.10 4.16.9 4.16.8 4.16.7 4.16.6 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.13 4.15.12 4.15.11 4.15.10 4.15.9 4.15.8 4.15.7 4.15.6 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 4.14.14 4.14.13 4.14.12 4.14.11 4.14.10 4.14.9 4.14.8 4.14.7 4.14.6 4.14.5 4.14.4 4.14.3 4.14.2 4.14.1 4.14.0 4.13.17 4.13.16 4.13.15 4.13.14 4.13.13 and 109 more
What it is
An infinite loop vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets sent by the client, the core unmarshalling function sl_unpack_loop() did not validate a field in the network packet that contains the count of elements in an array-like structure. By passing 0 as the count value, the attacked function will run in an endless loop consuming 100% CPU. This flaw allows an attacker to issue a malformed RPC request, triggering an infinite loop, resulting in a denial of service condition.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD)
Published by Red Hat on 20 July 2023. Last changed 26 November 2026.
Sources
Check one version you run: look CVE-2023-34966 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.