Bug 2004820 (CVE-2021-41079) - CVE-2021-41079 tomcat: Infinite loop while reading an unexpected TLS packet when using OpenSSL JSSE engine
Summary: CVE-2021-41079 tomcat: Infinite loop while reading an unexpected TLS packet w...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-41079
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2005887 2006889 2011019
Blocks: 2004799
TreeView+ depends on / blocked
 
Reported: 2021-09-16 06:17 UTC by Ted Jongseok Won
Modified: 2022-07-07 14:21 UTC (History)
82 users (show)

Fixed In Version: tomcat 10.0.4, tomcat 9.0.44, tomcat 8.5.64
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Apache Tomcat. When Tomcat was configured to use NIO+OpenSSL or NIO2+OpenSSL for TLS, a specially crafted packet can trigger an infinite loop, resulting in a denial of service. The highest threat from this vulnerability is to system availability.
Clone Of:
Environment:
Last Closed: 2021-10-07 08:08:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3741 0 None None None 2021-10-06 13:35:56 UTC
Red Hat Product Errata RHSA-2021:3743 0 None None None 2021-10-06 14:23:08 UTC
Red Hat Product Errata RHSA-2022:1179 0 None None None 2022-04-12 19:07:00 UTC
Red Hat Product Errata RHSA-2022:5532 0 None None None 2022-07-07 14:21:12 UTC

Description Ted Jongseok Won 2021-09-16 06:17:35 UTC
Apache Tomcat did not properly validate incoming TLS packets. When Tomcat was configured to use NIO+OpenSSL or NIO2+OpenSSL for TLS, a specially crafted packet could be used to trigger an infinite loop resulting in a denial of service. This issue affects the version of Apache Tomcat  10.0.0-M1 to 10.0.2; 9.0.0-M1 to 9.0.43; 8.5.0 to 8.5.63.

Upstream commits:
Tomcat 10.0.4: https://github.com/apache/tomcat/commit/34115fb3c83f6cd97772232316a492a4cc5729e0
Tomcat 9.0.44: https://github.com/apache/tomcat/commit/d4b340fa8feaf55831f9a59350578f7b6ca048b8
Tomcat 8.5.64: https://github.com/apache/tomcat/commit/b90d4fc1ff44f30e4b3aba622ba6677e3f003822

Reference:
https://lists.apache.org/thread.html/rccdef0349fdf4fb73a4e4403095446d7fe6264e0a58e2df5c6799434%40%3Cannounce.tomcat.apache.org%3E

Comment 4 Jonathan Christison 2021-09-17 11:22:55 UTC
Red Hat Jboss Fuse 6 ships some of the vulnerable artifacts as bundled artifacts in ops4j pax web, however there is no use of these artifacts in Fuse itself, the artifacts are also prevented from loading with a deny list in karaf, for these reasons we believe the impact upon Fuse 6.3 is low.

The same also applies to Red Hat Fuse 7.

This vulnerability is out of security support scope for the following products:
 * Red Hat JBoss Fuse 6

Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.

Comment 7 Tomas Hoger 2021-09-20 12:16:15 UTC
Tomcat packages as shipped with Red Hat Enterprise Linux 7 and earlier are not affected, as they do not include the affected OpenSSLEngine.  It seems support for the OpenSSL engine for JSSE was introduced in Tomcat version 8.5.0:

https://tomcat.apache.org/whichversion.html#Apache_Tomcat_8.x

The section for "Apache Tomcat 8.5.x" notes:

Adds support for using OpenSSL for TLS support with the JSSE connectors (NIO and NIO2)

Comment 8 Tomas Hoger 2021-09-20 12:16:57 UTC
Created tomcat:master/tomcat tracking bugs for this issue:

Affects: fedora-all [bug 2005887]

Comment 11 errata-xmlrpc 2021-10-06 13:35:52 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Web Server 5.5 on RHEL 7
  Red Hat JBoss Web Server 5.5 on RHEL 8

Via RHSA-2021:3741 https://access.redhat.com/errata/RHSA-2021:3741

Comment 12 errata-xmlrpc 2021-10-06 14:23:04 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Web Server

Via RHSA-2021:3743 https://access.redhat.com/errata/RHSA-2021:3743

Comment 13 Product Security DevOps Team 2021-10-07 08:08:15 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-2021-41079

Comment 14 errata-xmlrpc 2022-04-12 19:06:56 UTC
This issue has been addressed in the following products:

  Red Hat Support for Spring Boot 2.5.10

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

Comment 15 errata-xmlrpc 2022-07-07 14:21:07 UTC
This issue has been addressed in the following products:

  Red Hat Fuse 7.11

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


Note You need to log in before you can comment on or make changes to this bug.