Bug 2222793 (CVE-2023-34966)

Summary: CVE-2023-34966 samba: infinite loop in mdssvc RPC service for spotlight
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abokovoy, anoopcs, asn, dbodnarc, dkarpele, nobody, pfilipen, rhs-smb, sbose, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: samba 4.16.11, samba 4.17.10, samba 4.18.5 Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2222896, 2222894, 2222895, 2224253    
Bug Blocks: 2216374    

Description TEJ RATHI 2023-07-13 18:08:13 UTC
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 infinite loop bug in Samba's mdssvc RPC service for Spotlight can be triggered by an unauthenticated attacker by issuing a malformed RPC request.

Comment 2 TEJ RATHI 2023-07-20 09:25:10 UTC
This CVE is public now - https://www.samba.org/samba/security/CVE-2023-34966.html

Comment 3 TEJ RATHI 2023-07-20 09:33:10 UTC
Created samba tracking bugs for this issue:

Affects: fedora-all [bug 2224253]

Comment 4 errata-xmlrpc 2023-11-07 08:22:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:6667 https://access.redhat.com/errata/RHSA-2023:6667

Comment 5 errata-xmlrpc 2023-11-14 15:22:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:7139 https://access.redhat.com/errata/RHSA-2023:7139

Comment 7 errata-xmlrpc 2024-01-24 16:48:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0423 https://access.redhat.com/errata/RHSA-2024:0423

Comment 8 errata-xmlrpc 2024-01-30 13:24:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:0580 https://access.redhat.com/errata/RHSA-2024:0580