CVE Vulnerabilities

CVE-2024-1975

Allocation of Resources Without Limits or Throttling

Published: Jul 23, 2024 | Modified: Aug 01, 2024
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

If a server hosts a zone containing a KEY Resource Record, or a resolver DNSSEC-validates a KEY Resource Record from a DNSSEC-signed domain in cache, a client can exhaust resolver CPU resources by sending a stream of SIG(0) signed requests. This issue affects BIND 9 versions 9.0.0 through 9.11.37, 9.16.0 through 9.16.50, 9.18.0 through 9.18.27, 9.19.0 through 9.19.24, 9.9.3-S1 through 9.11.37-S1, 9.16.8-S1 through 9.16.49-S1, and 9.18.11-S1 through 9.18.27-S1.

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
Bind9 Ubuntu devel *
Bind9 Ubuntu esm-infra-legacy/trusty *
Bind9 Ubuntu esm-infra/bionic *
Bind9 Ubuntu esm-infra/xenial *
Bind9 Ubuntu focal *
Bind9 Ubuntu jammy *
Bind9 Ubuntu noble *
Bind9 Ubuntu oracular *
Bind9 Ubuntu trusty/esm *
Bind9 Ubuntu upstream *
Red Hat Enterprise Linux 7.7 Advanced Update Support RedHat bind-32:9.11.4-9.P2.el7_7.7 *
Red Hat Enterprise Linux 7 Extended Lifecycle Support RedHat bind-32:9.11.4-26.P2.el7_9.17 *
Red Hat Enterprise Linux 8 RedHat bind9.16-32:9.16.23-0.22.el8_10 *
Red Hat Enterprise Linux 8 RedHat bind-32:9.11.36-16.el8_10.2 *
Red Hat Enterprise Linux 8 RedHat bind-32:9.11.36-16.el8_10.2 *
Red Hat Enterprise Linux 8.2 Advanced Update Support RedHat bind-32:9.11.13-6.el8_2.9 *
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support RedHat bind-32:9.11.26-4.el8_4.6 *
Red Hat Enterprise Linux 8.4 Telecommunications Update Service RedHat bind-32:9.11.26-4.el8_4.6 *
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions RedHat bind-32:9.11.26-4.el8_4.6 *
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support RedHat bind9.16-32:9.16.23-0.7.el8_6.6 *
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support RedHat bind-32:9.11.36-3.el8_6.9 *
Red Hat Enterprise Linux 8.6 Telecommunications Update Service RedHat bind9.16-32:9.16.23-0.7.el8_6.6 *
Red Hat Enterprise Linux 8.6 Telecommunications Update Service RedHat bind-32:9.11.36-3.el8_6.9 *
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions RedHat bind9.16-32:9.16.23-0.7.el8_6.6 *
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions RedHat bind-32:9.11.36-3.el8_6.9 *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat bind9.16-32:9.16.23-0.14.el8_8.5 *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat bind-32:9.11.36-8.el8_8.6 *
Red Hat Enterprise Linux 9 RedHat bind-32:9.16.23-18.el9_4.6 *
Red Hat Enterprise Linux 9 RedHat bind-dyndb-ldap-0:11.9-10.el9_4 *
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions RedHat bind-32:9.16.23-1.el9_0.7 *
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions RedHat bind-dyndb-ldap-0:11.9-7.el9_0.3 *
Red Hat Enterprise Linux 9.2 Extended Update Support RedHat bind-32:9.16.23-11.el9_2.5 *
Red Hat Enterprise Linux 9.2 Extended Update Support RedHat bind-dyndb-ldap-0:11.9-8.el9_2.3 *
Red Hat OpenShift Container Platform 4.12 RedHat rhcos-412.86.202409111316-0 *
Red Hat OpenShift Container Platform 4.13 RedHat rhcos-413.92.202408270922-0 *
Red Hat OpenShift Container Platform 4.14 RedHat rhcos-414.92.202409041930-0 *
Red Hat OpenShift Container Platform 4.15 RedHat rhcos-415.92.202408271217-0 *
Red Hat OpenShift Container Platform 4.16 RedHat rhcos-416.94.202408260940-0 *

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