CVE-2021-3690: Undertow buffer leak on incoming websocket PONG message may lead to DoS

Solution Verified - Updated

Environment

  • Red Hat Enterprise Application Platform (EAP) 7.3.8
  • Red Hat Enterprise Application Platform (EAP) 7.4.0
  • Red Hat Single Sign-On (RHSSO) 7.4.8

Issue

  • java.lang.OutOfMemoryError: Direct buffer memory in the JBoss server log

Resolution

Upgrade to one of the following releases:

  • EAP 7.3.9
  • EAP 7.4.1
  • RH SSO 7.4.9

As a workaround, consider disabling direct buffer usage in the JBoss IO subsystem:

<subsystem xmlns="urn:jboss:domain:io:3.0">
    <worker name="default"></worker>
    <buffer-pool name="default" direct-buffers="false"></buffer-pool>
</subsystem>

Root Cause

This content is not included.UNDERTOW-1935


This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.