CVE Vulnerabilities

CVE-2021-3597

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Published: May 24, 2022 | Modified: Nov 21, 2024
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
2.6 LOW
AV:N/AC:H/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A flaw was found in undertow. The HTTP2SourceChannel fails to write the final frame under some circumstances, resulting in a denial of service. The highest threat from this vulnerability is availability. This flaw affects Undertow versions prior to 2.0.35.SP1, prior to 2.2.6.SP1, prior to 2.2.7.SP1, prior to 2.0.36.SP1, prior to 2.2.9.Final and prior to 2.0.39.Final.

Weakness

The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.

Affected Software

NameVendorStart VersionEnd Version
FuseRedhat1.0 (including)1.0 (including)
Jboss_enterprise_application_platformRedhat- (including)- (including)
Openshift_application_runtimesRedhat- (including)- (including)
Single_sign-onRedhat- (including)- (including)
UndertowRedhat*2.0.35 (excluding)
UndertowRedhat2.2.0 (including)2.2.6 (excluding)
UndertowRedhat2.0.35 (including)2.0.35 (including)
UndertowRedhat2.0.36 (including)2.0.36 (including)
UndertowRedhat2.0.39 (including)2.0.39 (including)
UndertowRedhat2.2.6 (including)2.2.6 (including)
UndertowRedhat2.2.7 (including)2.2.7 (including)
UndertowRedhat2.2.9 (including)2.2.9 (including)
EAP 7.3.9 releaseRedHatundertow*
Red Hat EAP-XP 2.0.0 via EAP 7.3.x baseRedHatundertow*
Red Hat Fuse 7.10RedHatundertow*
Red Hat JBoss Enterprise Application Platform 7RedHatundertow*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-apache-commons-io-0:2.10.0-1.redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-hal-console-0:3.2.16-1.Final_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-hibernate-0:5.3.20-4.SP2_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-ironjacamar-0:1.4.35-1.Final_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-jakarta-el-0:3.0.3-2.redhat_00006.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-jberet-0:1.3.9-1.Final_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-jboss-remoting-0:5.0.23-2.SP1_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-jboss-server-migration-0:1.7.2-9.Final_redhat_00010.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-narayana-0:5.9.12-1.Final_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-picketbox-0:5.0.3-9.Final_redhat_00008.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-undertow-0:2.0.39-1.SP2_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-wildfly-0:7.3.9-2.GA_redhat_00002.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-wildfly-http-client-0:1.0.29-1.Final_redhat_00002.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6RedHateap7-wildfly-transaction-client-0:1.1.14-2.Final_redhat_00001.1.el6eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-apache-commons-io-0:2.10.0-1.redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-hal-console-0:3.2.16-1.Final_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-hibernate-0:5.3.20-4.SP2_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-ironjacamar-0:1.4.35-1.Final_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-jakarta-el-0:3.0.3-2.redhat_00006.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-jberet-0:1.3.9-1.Final_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-jboss-remoting-0:5.0.23-2.SP1_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-jboss-server-migration-0:1.7.2-9.Final_redhat_00010.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-narayana-0:5.9.12-1.Final_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-picketbox-0:5.0.3-9.Final_redhat_00008.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-undertow-0:2.0.39-1.SP2_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-wildfly-0:7.3.9-2.GA_redhat_00002.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-wildfly-http-client-0:1.0.29-1.Final_redhat_00002.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7RedHateap7-wildfly-transaction-client-0:1.1.14-2.Final_redhat_00001.1.el7eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-apache-commons-io-0:2.10.0-1.redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-hal-console-0:3.2.16-1.Final_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-hibernate-0:5.3.20-4.SP2_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-ironjacamar-0:1.4.35-1.Final_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-jakarta-el-0:3.0.3-2.redhat_00006.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-jberet-0:1.3.9-1.Final_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-jboss-remoting-0:5.0.23-2.SP1_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-jboss-server-migration-0:1.7.2-9.Final_redhat_00010.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-narayana-0:5.9.12-1.Final_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-picketbox-0:5.0.3-9.Final_redhat_00008.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-undertow-0:2.0.39-1.SP2_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-wildfly-0:7.3.9-2.GA_redhat_00002.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-wildfly-http-client-0:1.0.29-1.Final_redhat_00002.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8RedHateap7-wildfly-transaction-client-0:1.1.14-2.Final_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8RedHateap7-undertow-0:2.2.9-2.SP1_redhat_00001.1.el8eap*
Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7RedHateap7-undertow-0:2.2.9-2.SP1_redhat_00001.1.el7eap*
Red Hat Single Sign-On 7.4.9RedHatundertow*
Red Hat Support for Spring Boot 2.5.10RedHatundertow*
UndertowUbuntubionic*
UndertowUbuntufocal*
UndertowUbuntugroovy*
UndertowUbuntuhirsute*
UndertowUbuntuimpish*
UndertowUbuntukinetic*
UndertowUbuntuoracular*
UndertowUbuntuplucky*
UndertowUbuntutrusty*
UndertowUbuntuxenial*

Extended Description

A race condition occurs within concurrent environments, and it is effectively a property of a code sequence. Depending on the context, a code sequence may be in the form of a function call, a small number of instructions, a series of program invocations, etc. A race condition violates these properties, which are closely related:

A race condition exists when an “interfering code sequence” can still access the shared resource, violating exclusivity. The interfering code sequence could be “trusted” or “untrusted.” A trusted interfering code sequence occurs within the product; it cannot be modified by the attacker, and it can only be invoked indirectly. An untrusted interfering code sequence can be authored directly by the attacker, and typically it is external to the vulnerable product.

Potential Mitigations

  • Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring.
  • Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).

References