CVE Vulnerabilities

CVE-2024-20321

Allocation of Resources Without Limits or Throttling

Published: Feb 29, 2024 | Modified: Mar 04, 2024
CVSS 3.x
8.6
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

A vulnerability in the External Border Gateway Protocol (eBGP) implementation of Cisco NX-OS Software could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition on an affected device. This vulnerability exists because eBGP traffic is mapped to a shared hardware rate-limiter queue. An attacker could exploit this vulnerability by sending large amounts of network traffic with certain characteristics through an affected device. A successful exploit could allow the attacker to cause eBGP neighbor sessions to be dropped, leading to a DoS condition in the network.

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
Nx-os Cisco 7.0(3)f1(1) (including) 7.0(3)f1(1) (including)
Nx-os Cisco 7.0(3)f2(1) (including) 7.0(3)f2(1) (including)
Nx-os Cisco 7.0(3)f2(2) (including) 7.0(3)f2(2) (including)
Nx-os Cisco 7.0(3)f3(1) (including) 7.0(3)f3(1) (including)
Nx-os Cisco 7.0(3)f3(2) (including) 7.0(3)f3(2) (including)
Nx-os Cisco 7.0(3)f3(3) (including) 7.0(3)f3(3) (including)
Nx-os Cisco 7.0(3)f3(3a) (including) 7.0(3)f3(3a) (including)
Nx-os Cisco 7.0(3)f3(3c) (including) 7.0(3)f3(3c) (including)
Nx-os Cisco 7.0(3)f3(4) (including) 7.0(3)f3(4) (including)
Nx-os Cisco 7.0(3)f3(5) (including) 7.0(3)f3(5) (including)
Nx-os Cisco 9.2(1) (including) 9.2(1) (including)
Nx-os Cisco 9.2(2) (including) 9.2(2) (including)
Nx-os Cisco 9.2(2t) (including) 9.2(2t) (including)
Nx-os Cisco 9.2(2v) (including) 9.2(2v) (including)
Nx-os Cisco 9.2(3) (including) 9.2(3) (including)
Nx-os Cisco 9.2(4) (including) 9.2(4) (including)
Nx-os Cisco 9.3(1) (including) 9.3(1) (including)
Nx-os Cisco 9.3(2) (including) 9.3(2) (including)
Nx-os Cisco 9.3(3) (including) 9.3(3) (including)
Nx-os Cisco 9.3(4) (including) 9.3(4) (including)
Nx-os Cisco 9.3(5) (including) 9.3(5) (including)
Nx-os Cisco 9.3(6) (including) 9.3(6) (including)
Nx-os Cisco 9.3(7) (including) 9.3(7) (including)
Nx-os Cisco 9.3(7a) (including) 9.3(7a) (including)
Nx-os Cisco 9.3(8) (including) 9.3(8) (including)
Nx-os Cisco 9.3(9) (including) 9.3(9) (including)
Nx-os Cisco 9.3(10) (including) 9.3(10) (including)
Nx-os Cisco 9.3(11) (including) 9.3(11) (including)
Nx-os Cisco 9.3(12) (including) 9.3(12) (including)
Nx-os Cisco 10.1(1) (including) 10.1(1) (including)
Nx-os Cisco 10.1(2) (including) 10.1(2) (including)
Nx-os Cisco 10.1(2t) (including) 10.1(2t) (including)
Nx-os Cisco 10.2(1) (including) 10.2(1) (including)
Nx-os Cisco 10.2(1q) (including) 10.2(1q) (including)
Nx-os Cisco 10.2(2) (including) 10.2(2) (including)
Nx-os Cisco 10.2(3) (including) 10.2(3) (including)
Nx-os Cisco 10.2(3t) (including) 10.2(3t) (including)
Nx-os Cisco 10.2(3v) (including) 10.2(3v) (including)
Nx-os Cisco 10.2(4) (including) 10.2(4) (including)
Nx-os Cisco 10.2(5) (including) 10.2(5) (including)
Nx-os Cisco 10.2(6) (including) 10.2(6) (including)
Nx-os Cisco 10.3(1) (including) 10.3(1) (including)
Nx-os Cisco 10.3(2) (including) 10.3(2) (including)
Nx-os Cisco 10.3(3) (including) 10.3(3) (including)
Nx-os Cisco 10.3(4a) (including) 10.3(4a) (including)
Nx-os Cisco 10.3(99w) (including) 10.3(99w) (including)
Nx-os Cisco 10.3(99x) (including) 10.3(99x) (including)
Nx-os Cisco 10.4(1) (including) 10.4(1) (including)

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