CVE-2023-34966: Samba: infinite loop in mdssvc rpc service for spotlight

Published Jul 13, 2023
·
Updated

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 slunpackloop() 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.

Other sources

When parsing Spotlight mdssvc RPC packets sent by the client, the core unmarshalling function slunpackloop() 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 infinite loop bug in Samba's mdssvc RPC service for Spotlight can be triggered by an unauthenticated attacker by issuing a malformed RPC request.

— Red Hat

Affected Software

26 affected componentsFixes available
ubuntu/samba<2:4.15.13+dfsg-0ubuntu0.20.04.3
2:4.15.13+dfsg-0ubuntu0.20.04.3
ubuntu/samba<2:4.15.13+dfsg-0ubuntu1.2
2:4.15.13+dfsg-0ubuntu1.2
ubuntu/samba<2:4.16.8+dfsg-0ubuntu1.2
2:4.16.8+dfsg-0ubuntu1.2
ubuntu/samba<2:4.17.7+dfsg-1ubuntu1.1
2:4.17.7+dfsg-1ubuntu1.1
ubuntu/samba<2:4.18.5+dfsg-1ubuntu1
2:4.18.5+dfsg-1ubuntu1
redhat/samba<4.16.11
4.16.11
redhat/samba<4.17.10
4.17.10
redhat/samba<4.18.5
4.18.5
Samba Samba<4.16.11
Samba Samba>=4.17.0<4.17.10
Samba Samba>=4.18.0<4.18.5
Fedoraproject Fedora=38
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Fedoraproject Fedora=37
Debian Debian Linux=11.0
Debian Debian Linux=12.0
debian/samba<2:4.17.10+dfsg-0+deb12u1
2:4.17.10+dfsg-0+deb12u1
debian/samba<2:4.18.5+dfsg-1
2:4.18.5+dfsg-1
debian/samba<2:4.18.5+dfsg-1
2:4.18.5+dfsg-1
debian/samba
2:4.13.13+dfsg-1~deb11u62:4.17.10+dfsg-0+deb12u12:4.18.5+dfsg-1
ubuntu/samba<2:4.3.11+dfsg-0ubuntu0.14.04.20+esm13
2:4.3.11+dfsg-0ubuntu0.14.04.20+esm13
ubuntu/samba<2:4.3.11+dfsg-0ubuntu0.16.04.34+esm2
2:4.3.11+dfsg-0ubuntu0.16.04.34+esm2
ubuntu/samba<2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm1
2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm1
ubuntu/samba<2:4.15.13+dfsg-0ubuntu0.20.04.3
2:4.15.13+dfsg-0ubuntu0.20.04.3
ubuntu/samba<2:4.15.13+dfsg-0ubuntu1.2
2:4.15.13+dfsg-0ubuntu1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.15.13+dfsg-0ubuntu0.20.04.3
  2. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.15.13+dfsg-0ubuntu1.2
  3. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.16.8+dfsg-0ubuntu1.2
  4. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.7+dfsg-1ubuntu1.1
  5. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.18.5+dfsg-1ubuntu1
  6. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.16.11
  7. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.17.10
  8. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.18.5
  9. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.10+dfsg-0+deb12u1
  10. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.18.5+dfsg-1
  11. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.13.13+dfsg-1~deb11u6Fixed in 2:4.17.10+dfsg-0+deb12u1Fixed in 2:4.18.5+dfsg-1
  12. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.3.11+dfsg-0ubuntu0.14.04.20+esm13
  13. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.3.11+dfsg-0ubuntu0.16.04.34+esm2
  14. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm1
  15. Configuration

    As a workaround, disable Spotlight by removing all Samba configuration stanzas that enable Spotlight ("spotlight=yes"|"spotlight=true"), so Spotlight-related mdssvc RPC functionality is not available.

    Samba mdssvc RPC service (Spotlight) spotlight = remove all configuration stanzas that enable Spotlight (e.g., "spotlight=yes" or "spotlight=true")

Event History

Jul 13, 2023
Data Sourced
06:08 PM
DescriptionSeverityAffected Software
Jul 19, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
12:00 AM
Weakness
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Jul 20, 2023
CVE Published
via MITRE·02:56 PM
Dec 7, 2023
Data Sourced
via Red Hat·04:00 PM
DescriptionSeverityAffected Software
Dec 27, 2023
Data Sourced
via NVD·10:06 PM
DescriptionSeverityWeaknessAffected Software
Updated
10:06 PM
Affected Software
Jan 23, 2024
Data Sourced
via MITRE·01:34 AM
DescriptionSeverityWeakness
Jan 25, 2024
Updated
via NVD·08:15 PM
Affected Software
Jan 30, 2024
Updated
via NVD·04:15 PM
Affected Software
Jun 25, 2024
Updated
via NVD·05:15 PM
Affected Software
Sep 16, 2024
Updated
via NVD·01:15 PM
Affected Software
Jun 17, 2026
Updated
via NVD·06:04 AM
Affected Software
Updated
via NVD·06:04 AM
WeaknessAffected Software
Nov 8, 2026
Data Sourced
via OSV·02:30 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2023-34966?

CVE-2023-34966 is an infinite loop vulnerability found in Samba's mdssvc RPC service for Spotlight.

2

How severe is CVE-2023-34966?

CVE-2023-34966 has a severity level of high.

3

What software is affected by CVE-2023-34966?

Samba versions up to and including 4.18.5 are affected by CVE-2023-34966.

4

How can I fix CVE-2023-34966?

To fix CVE-2023-34966, update your Samba software to version 4.18.6 or higher.

5

Where can I find more information about CVE-2023-34966?

You can find more information about CVE-2023-34966 on the Red Hat Security Advisory, Samba website, and Bugzilla.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203