CVE Vulnerabilities

CVE-2024-29025

Allocation of Resources Without Limits or Throttling

Published: Mar 25, 2024 | Modified: Jun 21, 2024
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.3 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. The HttpPostRequestDecoder can be tricked to accumulate data. While the decoder can store items on the disk if configured so, there are no limits to the number of fields the form can have, an attacher can send a chunked post consisting of many small fields that will be accumulated in the bodyListHttpData list. The decoder cumulates bytes in the undecodedChunk buffer until it can decode a field, this field can cumulate data without limits. This vulnerability is fixed in 4.1.108.Final.

Weakness

The product allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.

Affected Software

Name Vendor Start Version End Version
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-grafana-dashboard-rhel8:2.4.0-7 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-operator-bundle:2.4.0-4 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-reports-rhel8:2.4.0-4 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-rhel8:2.4.0-4 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-rhel8-operator:2.4.0-9 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/jfr-datasource-rhel8:2.4.0-4 *
HawtIO 4.0.0 for Red Hat build of Apache Camel 4 RedHat netty-codec-http *
Migration Toolkit for Runtimes 1 on RHEL 8 RedHat netty-codec-http *
Red Hat AMQ Broker 7 RedHat netty-codec-http *
Red Hat AMQ Streams 2.7.0 RedHat netty-codec-http *
Red Hat build of Quarkus 3.2.12.Final RedHat io.netty/netty-codec-http:4.1.108.Final-redhat-00001 *
Red Hat build of Quarkus 3.8.4.redhat RedHat io.netty/netty-codec-http:4.1.108.Final-redhat-00001 *
Red Hat Data Grid RedHat netty-codec-http *
Red Hat JBoss Enterprise Application Platform 7 RedHat netty-codec-http *
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 RedHat eap7-netty-0:4.1.108-1.Final_redhat_00001.1.el8eap *
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 RedHat eap7-netty-transport-native-epoll-0:4.1.108-1.Final_redhat_00001.1.el8eap *
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 RedHat eap7-netty-xnio-transport-0:0.1.10-1.Final_redhat_00001.1.el8eap *
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 RedHat eap7-netty-0:4.1.108-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 RedHat eap7-netty-transport-native-epoll-0:4.1.108-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 RedHat eap7-netty-xnio-transport-0:0.1.10-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 RedHat eap7-netty-0:4.1.108-1.Final_redhat_00001.1.el7eap *
Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 RedHat eap7-netty-transport-native-epoll-0:4.1.108-1.Final_redhat_00001.1.el7eap *
Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 RedHat eap7-netty-xnio-transport-0:0.1.10-1.Final_redhat_00001.1.el7eap *
Red Hat JBoss Enterprise Application Platform 8 RedHat netty-codec-http *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 RedHat eap8-apache-commons-beanutils-0:1.9.4-13.redhat_00004.1.el8eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 RedHat eap8-guava-libraries-0:33.0.0-1.jre_redhat_00002.1.el8eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 RedHat eap8-jakarta-servlet-api-0:6.0.0-5.redhat_00006.1.el8eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 RedHat eap8-jaxb-0:4.0.5-2.redhat_00001.1.el8eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 RedHat eap8-jboss-openjdk-orb-0:10.1.0-1.Final_redhat_00001.1.el8eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 RedHat eap8-netty-0:4.1.108-1.Final_redhat_00001.1.el8eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 RedHat eap8-wsdl4j-0:1.6.3-5.redhat_00008.1.el8eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-activemq-artemis-0:2.21.0-5.redhat_00052.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-angus-0:2.0.3-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-angus-activation-0:2.0.1-3.redhat_00006.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-apache-commons-beanutils-0:1.9.4-13.redhat_00004.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-apache-commons-cli-0:1.4.0-2.redhat_00003.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-apache-commons-codec-0:1.15.0-6.redhat_00016.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-apache-cxf-0:4.0.4-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-apache-cxf-xjc-utils-0:4.0.0-5.redhat_00003.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-apache-mime4j-0:0.8.11-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-apache-sshd-0:2.12.1-2.redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-bouncycastle-0:1.78.1-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-byte-buddy-0:1.14.18-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-caffeine-0:3.1.8-2.redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-eap-product-conf-parent-0:800.3.0-2.GA_redhat_00004.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-guava-failureaccess-0:1.0.2-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-guava-libraries-0:33.0.0-1.jre_redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-hal-console-0:3.6.19-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-hornetq-0:2.4.9-4.Final_redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-httpcomponents-asyncclient-0:4.1.5-3.redhat_00005.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-httpcomponents-client-0:4.5.14-4.redhat_00012.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-httpcomponents-core-0:4.4.16-4.redhat_00010.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-infinispan-0:14.0.30-2.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jakarta-json-api-0:2.1.3-1.redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jakarta-mail-0:2.1.3-1.redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jakarta-servlet-api-0:6.0.0-5.redhat_00006.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jakarta-websocket-0:2.1.1-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jakarta-xml-bind-api-0:4.0.1-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jandex-0:3.0.8-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jasypt-0:1.9.3-4.redhat_00004.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-java-classmate-0:1.5.1-3.redhat_00004.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jaxb-0:4.0.5-2.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jboss-metadata-0:16.0.0-3.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jboss-openjdk-orb-0:10.1.0-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jbossws-cxf-0:7.1.0-1.Final_redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-joda-time-0:2.12.7-1.redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-jsf-impl-0:4.0.7-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-mod_cluster-0:2.0.3-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-neethi-0:3.2.0-1.redhat_00004.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-netty-0:4.1.108-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-netty-transport-native-epoll-0:4.1.108-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-netty-xnio-transport-0:0.1.10-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-opensaml-0:4.2.0-4.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-parsson-0:1.1.5-2.redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-reactivex-rxjava-0:3.1.8-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-resteasy-0:6.2.7-2.Final_redhat_00002.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-slf4j-0:2.0.13-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-stax2-api-0:4.2.2-1.redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-velocity-0:2.3.0-3.redhat_00009.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-weld-core-0:5.1.2-2.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-wildfly-0:8.0.3-9.GA_redhat_00004.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-wildfly-discovery-0:1.3.0-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-wildfly-elytron-0:2.2.6-1.Final_redhat_00001.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-wsdl4j-0:1.6.3-5.redhat_00008.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-wss4j-0:3.0.3-1.redhat_00008.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-xml-security-0:3.0.4-1.redhat_00005.1.el9eap *
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 RedHat eap8-yasson-0:3.0.3-3.redhat_00002.1.el9eap *
RHINT Service Registry 2.5.11 GA RedHat netty-codec-http *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/client-kn-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-controller-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-in-memory-channel-controller-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-istio-controller-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-kafka-broker-controller-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-kafka-broker-dispatcher-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-kafka-broker-post-install-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-kafka-broker-receiver-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-kafka-broker-webhook-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-mtbroker-filter-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-mtbroker-ingress-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-mtchannel-broker-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-mtping-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-storage-version-migration-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/eventing-webhook-rhel8:1.12.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/func-utils-rhel8:1.33.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/ingress-rhel8-operator:1.33.0-5 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/knative-rhel8-operator:1.33.0-5 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/kn-cli-artifacts-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/kourier-control-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/net-istio-controller-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/net-istio-webhook-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serverless-operator-bundle:1.33.0-6 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serverless-rhel8-operator:1.33.0-5 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serving-activator-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serving-autoscaler-hpa-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serving-autoscaler-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serving-controller-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serving-queue-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serving-storage-version-migration-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/serving-webhook-rhel8:1.12.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1/svls-must-gather-rhel8:1.33.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1-tech-preview/backstage-plugins-eventmesh-rhel8:1.33.0-4 *
RHOSS-1.33-RHEL-8 RedHat openshift-serverless-1-tech-preview/knative-client-plugin-event-sender-rhel8:1.12.0-4 *
Streams for Apache Kafka 2.8.0 RedHat *
Netty Ubuntu mantic *

Extended Description

Code frequently has to work with limited resources, so programmers must be careful to ensure that resources are not consumed too quickly, or too easily. Without use of quotas, resource limits, or other protection mechanisms, it can be easy for an attacker to consume many resources by rapidly making many requests, or causing larger resources to be used than is needed. When too many resources are allocated, or if a single resource is too large, then it can prevent the code from working correctly, possibly leading to a denial of service.

Potential Mitigations

  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”

  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution can be difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply requires more resources on the part of the attacker.

  • If the program must fail, ensure that it fails gracefully (fails closed). There may be a temptation to simply let the program fail poorly in cases such as low memory conditions, but an attacker may be able to assert control before the software has fully exited. Alternately, an uncontrolled failure could cause cascading problems with other downstream components; for example, the program could send a signal to a downstream process so the process immediately knows that a problem has occurred and has a better chance of recovery.

  • Ensure that all failures in resource allocation place the system into a safe posture.

  • Use resource-limiting settings provided by the operating system or environment. For example, when managing system resources in POSIX, setrlimit() can be used to set limits for certain types of resources, and getrlimit() can determine how many resources are available. However, these functions are not available on all operating systems.

  • When the current levels get close to the maximum that is defined for the application (see CWE-770), then limit the allocation of further resources to privileged users; alternately, begin releasing resources for less-privileged users. While this mitigation may protect the system from attack, it will not necessarily stop attackers from adversely impacting other users.

  • Ensure that the application performs the appropriate error checks and error handling in case resources become unavailable (CWE-703).

References