Bug 2172021 (CVE-2023-25565)

Summary: CVE-2023-25565 gssntlmssp: incorrect free when decoding target information
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jrische
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gssntlmssp 1.2.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in GSS-NTLMSSP, a mechglue plugin for the GSSAPI library that implements NTLM authentication. An incorrect free when decoding target information can trigger a denial of service. The error condition incorrectly assumes the `cb` and `sh` buffers contain a copy of the data that needs to be freed. However, that is not the case. This vulnerability can be triggered via the main `gss_accept_sec_context` entry point. This issue will likely trigger an assertion failure in `free,` causing a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-17 03:12:23 UTC 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: 2172026, 2175084, 2178907, 2181313    
Bug Blocks: 2169915    

Description TEJ RATHI 2023-02-21 08:50:29 UTC
GSS-NTLMSSP is a mechglue plugin for the GSSAPI library that implements NTLM authentication. Prior to version 1.2.0, an incorrect free when decoding target information can trigger a denial of service. The error condition incorrectly assumes the `cb` and `sh` buffers contain a copy of the data that needs to be freed. However, that is not the case. This vulnerability can be triggered via the main `gss_accept_sec_context` entry point. This will likely trigger an assertion failure in `free`, causing a denial-of-service. This issue is fixed in version 1.2.0.

https://github.com/gssapi/gss-ntlmssp/releases/tag/v1.2.0
https://github.com/gssapi/gss-ntlmssp/commit/c16100f60907a2de92bcb676f303b81facee0f64
https://github.com/gssapi/gss-ntlmssp/security/advisories/GHSA-7q7f-wqcg-mvfg

Comment 1 TEJ RATHI 2023-02-21 08:50:52 UTC
Created gssntlmssp tracking bugs for this issue:

Affects: epel-7 [bug 2172026]

Comment 2 Sandipan Roy 2023-03-03 07:51:30 UTC
Created gssntlmssp tracking bugs for this issue:

Affects: fedora-all [bug 2175084]

Comment 4 errata-xmlrpc 2023-05-16 10:01:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 5 Product Security DevOps Team 2023-05-17 03:12:22 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-25565