New Vulnerability in F5

In F5 iRules, there is a security weakness that stems from the use of RESOLV in iRule:: the search command can affect traffic.

Tuesday, November 3, 2020, 8:38 GMT

Core files and restarts are created by the management microkernel (TMM). It is influenced by the following goods and versions: BIG-IP 16.0.0,

Hash: SHA256
             AUSCERT External Security Bulletin Redistribution
      F5 iRules 'RESOLV::lookup' command vulnerability CVE-2020-5941
                              3 November 2020
        AusCERT Security Bulletin Summary
Product:           BIG-IP Products
Publisher:         F5 Networks
Operating System:  Network Appliance
Impact/Access:     Denial of Service -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2020-5941  
Original Bulletin:
- --------------------------BEGIN INCLUDED TEXT--------------------
K03125360: F5 iRules 'RESOLV::lookup' command vulnerability CVE-2020-5941
Security Advisory
Original Publication Date: 03 Nov, 2020
Security Advisory Description
Using the RESOLV::lookup command within an iRule may cause the Traffic
Management Microkernel (TMM) to generate a core file and restart. This issue
occurs when data exceeding the maximum limit of a host name passes to the
RESOLV::lookup command. (CVE-2020-5941)
The BIG-IP system may temporarily fail to process traffic as it recovers from
a TMM restart. If the BIG-IP system is configured for high availability (HA),
the system fails over to a peer system.
Security Advisory Status
F5 Product Development has assigned ID 876353 (BIG-IP) to this vulnerability.
To determine if your product and version have been evaluated for this
vulnerability, refer to the Applies to (see versions) box. To determine if your
release is known to be vulnerable, the components or features that are affected
by the vulnerability, and for information about releases, point releases, or
hotfixes that address the vulnerability, refer to the following table. For more
information about security advisory versioning, refer to K51812227:
Understanding security advisory versioning.
|               |      |Versions  |Fixes     |          |CVSSv3|Vulnerable    |
|Product        |Branch|known to  |introduced|Severity  |score^|component or  |
|               |      |be        |in        |          |1     |feature       |
|               |      |vulnerable|          |          |      |              |
|               |16.x  |16.0.0    |16.0.1    |          |      |              |
|               +------+----------+----------+          |      |              |
|               |15.x  |15.1.0    |15.1.1    |          |      |              |
|               +------+----------+----------+          |      |              |
|BIG-IP (LTM,   |14.x  |None      |Not       |          |      |              |
|AAM, AFM,      |      |          |applicable|          |      |              |
|Analytics, APM,+------+----------+----------+          |      |iRules        |
|ASM, DNS, FPS, |13.x  |None      |Not       |High      |7.5   |RESOLV::lookup|
|GTM, Link      |      |          |applicable|          |      |command       |
|Controller,    +------+----------+----------+          |      |              |
|PEM)           |12.x  |None      |Not       |          |      |              |
|               |      |          |applicable|          |      |              |
|               +------+----------+----------+          |      |              |
|               |11.x  |None      |Not       |          |      |              |
|               |      |          |applicable|          |      |              |
|               |7.x   |None      |Not       |          |      |              |
|               |      |          |applicable|          |      |              |
|BIG-IQ         +------+----------+----------+          |      |              |
|Centralized    |6.x   |None      |Not       |Not       |None  |None          |
|Management     |      |          |applicable|vulnerable|      |              |
|               +------+----------+----------+          |      |              |
|               |5.x   |None      |Not       |          |      |              |
|               |      |          |applicable|          |      |              |
|Traffix SDC    |5.x   |None      |Not       |Not       |None  |None          |
|               |      |          |applicable|vulnerable|      |              |
^1The CVSSv3 score link takes you to a resource outside of AskF5, and it is
possible that the document may be removed without our knowledge.
Security Advisory Recommended Actions
If you are running a version listed in the Versions known to be vulnerable
column, you can eliminate this vulnerability by upgrading to a version listed
in the Fixes introduced in column. If the table lists only an older version
than what you are currently running, or does not list a non-vulnerable version,
then no upgrade candidate currently exists.
To mitigate this vulnerability, you can validate all limits of untrusted data
passed into the RESOLV::lookup command in the affected iRule. F5 recommends
that you reject and not pass any string that has 254 or more characters to the
RESOLV::lookup command.
For example, the following sample displays the string length check in an iRule:
# this pseudo code shows a general way to check for the string length and handle failure.
# the main idea is to check string length before sending to resolv::lookup command.
    set string_check [string tolower [HTTP::uri]]
    if {([string length $string_check] > 253)} {
        log local0. "Hostname Length Check FAIL"
    else {
        log local0. "Hostname Length Check PASS"
        # PROCEED TO resolv::lookup
Supplemental Information
o K41942608: Overview of security advisory articles
  o K4602: Overview of the F5 security vulnerability response policy
  o K4918: Overview of the F5 critical issue hotfix policy
  o K9502: BIG-IP hotfix and point release matrix
  o K13123: Managing BIG-IP product hotfixes (11.x - 16.x)
  o K48955220: Installing an OPSWAT Endpoint Security update on BIG-IP APM
    systems (11.4.x and later)
  o K167: Downloading software and firmware from F5
  o K9970: Subscribing to email notifications regarding F5 products
  o K9957: Creating a custom RSS feed to view new and updated documents
- --------------------------END INCLUDED TEXT--------------------
You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to [email protected]
and we will forward your request to the appropriate person.
NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.
NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.
Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.
Previous advisories and external security bulletins can be retrieved from:
Australian Computer Emergency Response Team
The University of Queensland
Qld 4072
Internet Email: [email protected]
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.