CVE-2022-26372 - Uncontrolled Resource Consumption

Severity

75%

Complexity

39%

Confidentiality

60%

On F5 BIG-IP 15.1.x versions prior to 15.1.0.2, 14.1.x versions prior to 14.1.4.6, 13.1.x versions prior to 13.1.5, and all versions of 12.1.x and 11.6.x, when a DNS listener is configured on a virtual server with DNS queueing (default), undisclosed requests can cause an increase in memory resource utilization. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

CVSS 3.1 Base Score 7.5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

CVSS 2.0 Base Score 4.3. CVSS Attack Vector: network. CVSS Attack Complexity: medium. CVSS Vector: (AV:N/AC:M/Au:N/C:N/I:N/A:P).

Demo Examples

Uncontrolled Resource Consumption

CWE-400

The following example demonstrates the weakness.


               
}
}
}
...
Thread.currentThread().interrupt();// postpone response
...
new Thread(loop).start();
}
}
}
r.run();
...

There are no limits to runnables. Potentially an attacker could cause resource problems very quickly.

Uncontrolled Resource Consumption

CWE-400

This code allocates a socket and forks each time it receives a new connection.


               
}
pid = fork();

The program does not track how many connections have been made, and it does not limit the number of connections. Because forking is a relatively expensive operation, an attacker would be able to cause the system to run out of CPU, processes, or memory by making a large number of connections. Alternatively, an attacker could consume all available connections, preventing others from accessing the system remotely.

Uncontrolled Resource Consumption

CWE-400

In the following example a server socket connection is used to accept a request to store data on the local file system using a specified filename. The method openSocketConnection establishes a server socket to accept requests from a client. When a client establishes a connection to this service the getNextMessage method is first used to retrieve from the socket the name of the file to store the data, the openFileToWrite method will validate the filename and open a file to write to on the local file system. The getNextMessage is then used within a while loop to continuously read data from the socket and output the data to the file until there is no longer any data from the socket.


               
}
closeSocket(socket);
return(FAIL);
closeFile();
}
break;

This example creates a situation where data can be dumped to a file on the local file system without any limits on the size of the file. This could potentially exhaust file or disk resources and/or limit other clients' ability to access the service.

Uncontrolled Resource Consumption

CWE-400

In the following example, the processMessage method receives a two dimensional character array containing the message to be processed. The two-dimensional character array contains the length of the message in the first character array and the message body in the second character array. The getMessageLength method retrieves the integer value of the length from the first character array. After validating that the message length is greater than zero, the body character array pointer points to the start of the second character array of the two-dimensional character array and memory is allocated for the new body character array.


               
}/* process message accepts a two-dimensional character array of the form [length][body] containing the message to be processed */
}
return(SUCCESS);
return(FAIL);

This example creates a situation where the length of the body character array can be very large and will consume excessive memory, exhausting system resources. This can be avoided by restricting the length of the second character array with a maximum length check

Also, consider changing the type from 'int' to 'unsigned int', so that you are always guaranteed that the number is positive. This might not be possible if the protocol specifically requires allowing negative values, or if you cannot control the return value from getMessageLength(), but it could simplify the check to ensure the input is positive, and eliminate other errors such as signed-to-unsigned conversion errors (CWE-195) that may occur elsewhere in the code.


               
if ((length > 0) && (length < MAX_LENGTH)) {...}

Uncontrolled Resource Consumption

CWE-400

In the following example, a server object creates a server socket and accepts client connections to the socket. For every client connection to the socket a separate thread object is generated using the ClientSocketThread class that handles request made by the client through the socket.


               
}
} catch (IOException ex) {...}
serverSocket.close();
t.start();

In this example there is no limit to the number of client connections and client threads that are created. Allowing an unlimited number of client connections and threads could potentially overwhelm the system and system resources.

The server should limit the number of client connections and the client threads that are created. This can be easily done by creating a thread pool object that limits the number of threads that are generated.


               
}
} catch (IOException ex) {...}
serverSocket.close();
pool.execute(t);

Overview

Type

F5

First reported 2 years ago

2022-05-05 17:15:00

Last updated 2 years ago

2022-05-13 19:17:00

Affected Software

F5 Networks BIG-IP Local Traffic Manager 11.6.1

11.6.1

F5 Big-IP Local Traffic Manager (LTM) 12.1.2

12.1.2

F5 BIG-IP Advanced Firewall Manager (AFM) 12.1.0

12.1.0

F5 Big-IP Access Policy Manager (APM) 12.1.2

12.1.2

F5 Networks BIG-IP Global Traffic Manager 11.6.1

11.6.1

F5 Big-IP Domain Name System (DNS) 12.1.2

12.1.2

F5 BIG-IP Policy Enforcement Manager (PEM) 12.1.1

12.1.1

F5 Big-IP Policy Enforcement Manager (PEM) 12.1.2

12.1.2

F5 Big-IP Advanced Firewall Manager (AFM) 12.1.2

12.1.2

F5 BIG-IP Application Security Manager (ASM) 12.1.1

12.1.1

F5 BIG-IP Access Policy Manager (APM) 12.1.0

12.1.0

F5 BIG-IP Access Policy Manager (APM) 12.1.1

12.1.1

F5 Networks BIG-IP Advanced Firewall Manager 11.6.1

11.6.1

F5 BIG-IP Advanced Firewall Manager (AFM) 12.1.1

12.1.1

F5 Networks BIG-IP Analytics 11.6.1

11.6.1

F5 BIG-IP Analytics 12.1.0

12.1.0

F5 Big-IP Analytics 12.1.2

12.1.2

F5 Networks BIG-IP Application Acceleration Manager 11.6.1

11.6.1

F5 Networks BIG-IP Application Acceleration Manager 12.1.0

12.1.0

F5 BIG-IP Application Acceleration Manager (AAM) 12.1.1

12.1.1

F5 Big-IP Application Acceleration Manager (AAM) 12.1.2

12.1.2

F5 Networks BIG-IP Application Security Manager 11.6.1

11.6.1

F5 BIG-IP Application Security Manager (ASM) 12.1.0

12.1.0

F5 BIG-IP Domain Name System (DNS) 12.1.0

12.1.0

F5 Networks BIG-IP Link Controller 11.6.1

11.6.1

F5 BIG-IP Link Controller 12.1.0

12.1.0

F5 BIG-IP Link Controller 12.1.1

12.1.1

F5 Big-IP Link Controller 12.1.2

12.1.2

F5 BIG-IP Local Traffic Manager (LTM) 12.1.0

12.1.0

F5 Networks BIG-IP Policy Enforcement Manager 11.6.1

11.6.1

F5 Networks BIG-IP Access Policy Manager 11.6.1

11.6.1

F5 Big-IP Access Policy Manager (APM) 13.1.0

13.1.0

F5 BIG-IP Access Policy Manager (APM) 14.1.0

14.1.0

F5 Big-IP Advanced Firewall Manager (AFM) 13.1.0

13.1.0

F5 BIG-IP Advanced Firewall Manager 14.1.0

14.1.0

F5 BIG-IP Advanced Firewall Manager (AFM) 15.1.0

15.1.0

F5 BIG-IP Analytics 12.1.1

12.1.1

F5 Big-IP Analytics 13.1.0

13.1.0

F5 BIG-IP Analytics 14.1.0

14.1.0

F5 Big-IP Application Acceleration Manager (AAM) 13.1.0

13.1.0

F5 BIG-IP Application Acceleration Manager 14.1.0

14.1.0

F5 BIG-IP Application Acceleration Manager (AAM) 15.1.0

15.1.0

F5 Big-IP Application Security Manager (ASM) 12.1.2

12.1.2

F5 Big-IP Application Security Manager (ASM) 13.1.0

13.1.0

F5 BIG-IP Application Security Manager 14.1.0

14.1.0

F5 BIG-IP Domain Name System 11.6.1

11.6.1

F5 BIG-IP Domain Name System (DNS) 12.1.1

12.1.1

F5 Big-IP Domain Name System (DNS) 13.1.0

13.1.0

F5 BIG-IP Domain Name System 14.1.0

14.1.0

F5 Big-IP Fraud Protection Service (FPS) 11.6.1

11.6.1

F5 Big-IP Fraud Protection Service (FPS) 12.1.0

12.1.0

F5 Big-IP Fraud Protection Service (FPS) 13.1.0

13.1.0

F5 BIG-IP Fraud Protection Service 14.1.0

14.1.0

F5 BIG-IP Global Traffic Manager 12.1.0

12.1.0

F5 BIG-IP Global Traffic Manager 12.1.1

12.1.1

F5 BIG-IP Global Traffic Manager 12.1.2

12.1.2

F5 Big-IP Global Traffic Manager (GTM) 13.1.0

13.1.0

F5 BIG-IP Global Traffic Manager 14.1.0

14.1.0

F5 Big-IP Link Controller 13.1.0

13.1.0

F5 BIG-IP Link Controller 14.1.0

14.1.0

F5 BIG-IP Local Traffic Manager (LTM) 12.1.1

12.1.1

F5 Big-IP Local Traffic Manager (LTM) 13.1.0

13.1.0

F5 BIG-IP Local Traffic Manager 14.1.0

14.1.0

F5 BIG-IP Local Traffic Manager (LTM) 15.1.0

15.1.0

F5 Networks BIG-IP Policy Enforcement Manager (PEM) 11.6.2

11.6.2

F5 BIG-IP Policy Enforcement Manager (PEM) 12.1.0

12.1.0

F5 Networks BIG-IP Policy Enforcement Manager (PEM) 12.1.3

12.1.3

F5 Big-IP Policy Enforcement Manager (PEM) 13.1.0

13.1.0

F5 BIG-IP Policy Enforcement Manager 14.1.0

14.1.0

F5 BIG-IP Policy Enforcement Manager (PEM) 15.1.0

15.1.0

F5 Big-IP Access Policy Manager (APM) 11.6.2

11.6.2

F5 Big-IP Access Policy Manager (APM) 11.6.3

11.6.3

F5 BIG-IP Access Policy Manager (APM) 11.6.4

11.6.4

F5 Big-IP Access Policy Manager (APM) 11.6.5

11.6.5

F5 Big-IP Access Policy Manager (APM) 12.1.3

12.1.3

F5 BIG-IP Access Policy Manager (APM) 12.1.4

12.1.4

F5 Big-IP Access Policy Manager (APM) 12.1.5

12.1.5

F5 Big-IP Access Policy Manager (APM) 13.1.1

13.1.1

F5 BIG-IP Access Policy Manager (APM) 13.1.3

13.1.3

F5 Big-IP Access Policy Manager (APM) 14.1.2

14.1.2

F5 BIG-IP Access Policy Manager (APM) 15.1.0

15.1.0

F5 Big-IP Advanced Firewall Manager (AFM) 11.6.2

11.6.2

F5 Big-IP Advanced Firewall Manager (AFM) 11.6.3

11.6.3

F5 BIG-IP Advanced Firewall Manager (AFM) 11.6.4

11.6.4

F5 Big-IP Advanced Firewall Manager (AFM) 11.6.5

11.6.5

F5 Big-IP Advanced Firewall Manager (AFM) 12.1.3

12.1.3

F5 BIG-IP Advanced Firewall Manager 12.1.4

12.1.4

F5 Big-IP Advanced Firewall Manager (AFM) 12.1.5

12.1.5

F5 Big-IP Advanced Firewall Manager (AFM) 13.1.1

13.1.1

F5 Big-IP Advanced Firewall Manager (AFM) 13.1.3

13.1.3

F5 Big-IP Advanced Firewall Manager (AFM) 14.1.2

14.1.2

F5 BIG-IP Analytics 15.1.0

15.1.0

F5 BIG-IP Application Security Manager (ASM) 15.1.0

15.1.0

F5 BIG-IP Domain Name System (DNS) 15.1.0

15.1.0

F5 BIG-IP Fraud Protection Service (FPS) 15.1.0

15.1.0

F5 BIG-IP Global Traffic Manager (GTM) 15.1.0

15.1.0

F5 BIG-IP Link Controller 15.1.0

15.1.0

F5 Big-IP Analytics 11.6.2

11.6.2

F5 Big-IP Analytics 11.6.3

11.6.3

F5 BIG-IP Analytics 11.6.4

11.6.4

F5 Big-IP Analytics 11.6.5

11.6.5

F5 Big-IP Analytics 12.1.3

12.1.3

F5 BIG-IP Analytics 12.1.4

12.1.4

F5 Big-IP Analytics 12.1.5

12.1.5

F5 Big-IP Analytics 13.1.1

13.1.1

F5 Big-IP Analytics 13.1.3

13.1.3

F5 Big-IP Analytics 14.1.2

14.1.2

F5 Big-IP Application Acceleration Manager (AAM) 11.6.2

11.6.2

F5 Big-IP Application Acceleration Manager (AAM) 11.6.3

11.6.3

F5 BIG-IP Application Acceleration Manager (AAM) 11.6.4

11.6.4

F5 Big-IP Application Acceleration Manager (AAM) 11.6.5

11.6.5

F5 Big-IP Application Acceleration Manager (AAM) 12.1.3

12.1.3

F5 BIG-IP Application Acceleration Manager 12.1.4

12.1.4

F5 Big-IP Application Acceleration Manager (AAM) 12.1.5

12.1.5

F5 Big-IP Application Acceleration Manager (AAM) 13.1.1

13.1.1

F5 Big-IP Application Acceleration Manager (AAM) 13.1.3

13.1.3

F5 Big-IP Application Acceleration Manager (AAM) 14.1.2

14.1.2

F5 Big-IP Application Security Manager (ASM) 11.6.2

11.6.2

F5 Big-IP Application Security Manager (ASM) 11.6.3

11.6.3

F5 BIG-IP Application Security Manager (ASM) 11.6.4

11.6.4

F5 Big-IP Application Security Manager (ASM) 11.6.5

11.6.5

F5 Big-IP Application Security Manager (ASM) 12.1.3

12.1.3

F5 BIG-IP Application Security Manager 12.1.4

12.1.4

F5 Big-IP Application Security Manager (ASM) 12.1.5

12.1.5

F5 Big-IP Application Security Manager (ASM) 13.1.1

13.1.1

F5 Big-IP Application Security Manager (ASM) 13.1.3

13.1.3

F5 Big-IP Application Security Manager (ASM) 14.1.2

14.1.2

F5 Big-IP Fraud Protection Service (FPS) 13.1.1

13.1.1

F5 Big-IP Fraud Protection Service (FPS) 13.1.3

13.1.3

F5 Big-IP Fraud Protection Service (FPS) 14.1.2

14.1.2

F5 Big-IP Global Traffic Manager (GTM) 11.6.2

11.6.2

F5 Big-IP Global Traffic Manager (GTM) 11.6.3

11.6.3

F5BIG-IP Global Traffic Manager (GTM) 11.6.4

11.6.4

F5 Big-IP Global Traffic Manager (GTM) 11.6.5

11.6.5

F5 Big-IP Global Traffic Manager (GTM) 12.1.3

12.1.3

F5 BIG-IP Global Traffic Manager 12.1.4

12.1.4

F5 Big-IP Global Traffic Manager (GTM) 12.1.5

12.1.5

F5 Big-IP Global Traffic Manager (GTM) 13.1.1

13.1.1

F5 Big-IP Global Traffic Manager (GTM) 13.1.3

13.1.3

F5 Big-IP Global Traffic Manager (GTM) 14.1.2

14.1.2

F5 Big-IP Link Controller 11.6.2

11.6.2

F5 Big-IP Link Controller 11.6.3

11.6.3

F5 BIG-IP Link Controller 11.6.4

11.6.4

F5 Big-IP Link Controller 11.6.5

11.6.5

F5 Big-IP Link Controller 12.1.3

12.1.3

F5 BIG-IP Link Controller 12.1.4

12.1.4

F5 Big-IP Link Controller 12.1.5

12.1.5

F5 Big-IP Link Controller 13.1.1

13.1.1

F5 Big-IP Link Controller 13.1.3

13.1.3

F5 Big-IP Link Controller 14.1.2

14.1.2

F5 Big-IP Local Traffic Manager (LTM) 11.6.2

11.6.2

F5 Big-IP Local Traffic Manager (LTM) 11.6.3

11.6.3

F5 BIG-IP Local Traffic Manager (LTM) 11.6.4

11.6.4

F5 Big-IP Local Traffic Manager (LTM) 11.6.5

11.6.5

F5 Big-IP Local Traffic Manager (LTM) 12.1.3

12.1.3

F5 BIG-IP Local Traffic Manager 12.1.4

12.1.4

F5 Big-IP Local Traffic Manager (LTM) 12.1.5

12.1.5

F5 Big-IP Local Traffic Manager (LTM) 13.1.1

13.1.1

F5 BIG-IP Local Traffic Manager (LTM) 13.1.3

13.1.3

F5 BIG-IP Local Traffic Manager (LTM) 14.1.2

14.1.2

F5 Big-IP Policy Enforcement Manager (PEM) 11.6.3

11.6.3

F5 BIG-IP Policy Enforcement Manager (PEM) 11.6.4

11.6.4

F5 Big-IP Policy Enforcement Manager (PEM) 11.6.5

11.6.5

F5 BIG-IP Policy Enforcement Manager 12.1.4

12.1.4

F5 Big-IP Policy Enforcement Manager (PEM) 12.1.5

12.1.5

F5 Big-IP Policy Enforcement Manager (PEM) 13.1.1

13.1.1

F5 Big-IP Policy Enforcement Manager (PEM) 13.1.3

13.1.3

F5 Big-IP Policy Enforcement Manager (PEM) 14.1.2

14.1.2

F5 Big-IP Domain Name System (DNS) 11.6.2

11.6.2

F5 Big-IP Domain Name System (DNS) 11.6.3

11.6.3

F5 BIG-IP Domain Name System (DNS) 11.6.4

11.6.4

F5 Big-IP Domain Name System (DNS) 11.6.5

11.6.5

F5 Big-IP Domain Name System (DNS) 12.1.3

12.1.3

F5 BIG-IP Domain Name System 12.1.4

12.1.4

F5 Big-IP Domain Name System (DNS) 12.1.5

12.1.5

F5 Big-IP Domain Name System (DNS) 13.1.1

13.1.1

F5 Big-IP Domain Name System (DNS) 13.1.3

13.1.3

F5 Big-IP Domain Name System (DNS) 14.1.2

14.1.2

F5 Big-IP Fraud Protection Service (FPS) 11.6.2

11.6.2

F5 Big-IP Fraud Protection Service (FPS) 11.6.3

11.6.3

F5 BIG-IP Fraud Protection Service (FPS) 11.6.4

11.6.4

F5 Big-IP Fraud Protection Service (FPS) 11.6.5

11.6.5

F5 Big-IP Fraud Protection Service (FPS) 12.1.1

12.1.1

F5 Big-IP Fraud Protection Service (FPS) 12.1.2

12.1.2

F5 Big-IP Fraud Protection Service (FPS) 12.1.3

12.1.3

F5 BIG-IP Fraud Protection Service (FPS) 12.1.4

12.1.4

F5 Big-IP Fraud Protection Service (FPS) 12.1.5

12.1.5

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.