Loop with Unreachable Exit Condition ('Infinite Loop') Affecting samba-devel package, versions <0:4.17.5-5.el8_8


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
12.9% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-SAMBADEVEL-6213708
  • published31 Jan 2024
  • disclosed19 Jul 2023

Introduced: 19 Jul 2023

CVE-2023-34966  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade RHEL:8 samba-devel to version 0:4.17.5-5.el8_8 or higher.
This issue was patched in RHSA-2024:0580.

NVD Description

Note: Versions mentioned in the description apply only to the upstream samba-devel package and not the samba-devel package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

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 Scores

version 3.1