Bug 2064320 (CVE-2022-22721)

Summary: CVE-2022-22721 httpd: core: Possible buffer overflow with very large or unlimited LimitXMLRequestBody
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anon.amish, asoldano, bbaranow, bmaxwell, brian.stansberry, caswilli, cdewolf, chazlett, christoph.karl, csutherl, darran.lofthouse, dkreling, dosoudil, fjansen, fjuma, gzaronik, hhorak, icesalov, iweiss, jburrell, jclere, jkaluza, jkoehler, jochrist, jorton, jwong, jwon, kaycoth, kyoshida, lgao, luhliari, micjohns, mosmerov, msochure, msvehla, mturk, nwallace, pjindal, pmackay, rstancel, rsvoboda, smaestri, sthirugn, szappis, tom.jenkinson, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: httpd 2.4.53 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in httpd, where it incorrectly limits the value of the LimitXMLRequestBody option. This issue can lead to an integer overflow and later causes an out-of-bounds write.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-10 14:13:24 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: 2064571, 2065267, 2065268, 2065269, 2066794    
Bug Blocks: 2064323    

Description Patrick Del Bello 2022-03-15 14:34:30 UTC
If LimitXMLRequestBody is set to allow request bodies larger than 350MB (defaults to 1M) on 32 bit systems an integer overflow happens which later causes out of bounds writes. This issue affects Apache HTTP Server 2.4.52 and earlier.

References:
https://httpd.apache.org/security/vulnerabilities_24.html
https://www.openwall.com/lists/oss-security/2022/03/14/2

Comment 2 Sandipan Roy 2022-03-16 07:44:08 UTC
Created httpd tracking bugs for this issue:

Affects: fedora-all [bug 2064571]

Comment 4 Mauro Matteo Cascella 2022-03-17 14:07:41 UTC
Upstream patch:
https://svn.apache.org/viewvc?view=revision&revision=1898693

Comment 12 errata-xmlrpc 2022-09-29 13:32:47 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2022:6753 https://access.redhat.com/errata/RHSA-2022:6753

Comment 14 errata-xmlrpc 2022-11-08 09:59:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7647 https://access.redhat.com/errata/RHSA-2022:7647

Comment 15 errata-xmlrpc 2022-11-15 10:08:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8067 https://access.redhat.com/errata/RHSA-2022:8067

Comment 16 errata-xmlrpc 2022-12-08 13:06:47 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 7
  JBoss Core Services for RHEL 8

Via RHSA-2022:8840 https://access.redhat.com/errata/RHSA-2022:8840

Comment 17 errata-xmlrpc 2022-12-08 13:21:24 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

Via RHSA-2022:8841 https://access.redhat.com/errata/RHSA-2022:8841

Comment 18 Product Security DevOps Team 2022-12-10 14:13:20 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-2022-22721