Bug 2158342 (CVE-2023-21538)

Summary: CVE-2023-21538 dotnet: Parsing an empty HTTP response as a JSON.NET JObject causes a stack overflow and crashes a process
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: andrew.slice, bodavis, dbhole, kanderso, lvaleeva, omajid, rwagner, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dotnet 6.0.13 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in dotnet. This flaw occurs when parsing an empty HTTP response as a JSON.NET JObject that causes a stack overflow and crashes a process.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-13 14:00:36 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: 2158349, 2158350, 2159771, 2159810    
Bug Blocks: 2158343    

Description TEJ RATHI 2023-01-05 06:39:02 UTC
Dotnet: Denial of Service - Parsing an empty HTTP response as a JSON.NET JObject causes a stack overflow and crashes a process

Affected packages
System.Runtime.Serialization.Xml is the affected component that is included in NETCore.App.

Affected: Microsoft.NETCore.App.Runtime.*
Affected version: >= 6.0.0, < 6.0.13
Patched version: 6.0.13

Comment 3 Zack Miele 2023-01-10 20:15:43 UTC
Created dotnet6.0 tracking bugs for this issue:

Affects: fedora-all [bug 2159810]

Comment 5 errata-xmlrpc 2023-01-11 16:37:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 6 errata-xmlrpc 2023-01-11 16:39:16 UTC
This issue has been addressed in the following products:

  .NET Core on Red Hat Enterprise Linux

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

Comment 7 errata-xmlrpc 2023-01-11 16:44:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 8 Product Security DevOps Team 2023-01-13 14:00:34 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-21538