CVE-2025-58071
Executive Summary
CVE-2025-58071 is a high-severity denial-of-service (DoS) vulnerability affecting F5 BIG-IP systems with IPsec configured. The flaw allows an unauthenticated attacker to send specially crafted undisclosed traffic that causes the Traffic Management Microkernel (TMM) to terminate, resulting in a complete loss of traffic processing capabilities. With a CVSS score of 7.5, this vulnerability poses a significant availability risk to organizations relying on BIG-IP for network traffic management and IPsec VPN services. No public exploit code or patch details are currently available, and the vendor has not released a fix for this issue.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
CVSS Breakdown & Threat Level
- CVSS Score: 7.5 (High)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely over the network.
- Attack Complexity: Low (AC:L) – No special conditions or complex attack sequences are required.
- Privileges Required: None (PR:N) – No authentication is needed to trigger the DoS.
- User Interaction: None (UI:N) – The attack does not require any user action.
- Scope: Unchanged (S:U) – The impact is confined to the vulnerable component.
- Confidentiality Impact: None (C:N) – No data exposure.
- Integrity Impact: None (I:N) – No data modification.
- Availability Impact: High (A:H) – TMM termination leads to complete service disruption.
Threat Level: High. The combination of network-based, unauthenticated exploitation with low complexity makes this a serious threat for any organization using F5 BIG-IP with IPsec.
Deep Dive & Mechanics
The vulnerability resides in the Traffic Management Microkernel (TMM) of F5 BIG-IP systems when IPsec is enabled. TMM is a critical component responsible for processing all network traffic, including IPsec VPN traffic. The flaw is triggered by "undisclosed traffic" – likely a malformed or specially crafted IPsec packet or a sequence of packets that causes a memory corruption or an infinite loop within the TMM process.
Root Cause Analysis (Hypothetical): Based on the CWE-20 (Improper Input Validation) classification, the issue likely stems from insufficient validation of IPsec packet headers or payloads. When TMM receives a packet that violates expected IPsec protocol specifications (e.g., invalid Security Parameter Index (SPI), malformed IKE/ESP headers, or unexpected payload lengths), it may enter an undefined state. This could lead to a null pointer dereference, buffer overflow, or an unhandled exception that crashes the TMM process.
Attack Vector: An attacker on the network (or from the internet if IPsec is exposed) sends a series of specially crafted IPsec packets to the BIG-IP system. The TMM processes these packets and crashes, causing all traffic processing to halt. The system may automatically restart TMM, but the DoS condition persists if the attacker continues sending malicious traffic.
Impact:
- Complete loss of traffic management capabilities.
- Disruption of IPsec VPN services.
- Potential cascading failures in network infrastructure relying on BIG-IP.
Vulnerable vs. Patched Code
No patch is currently available. The following is a hypothetical comparison based on common patching patterns for similar vulnerabilities.
Vulnerable Code (Hypothetical):
// Vulnerable: No validation of IPsec packet length
void process_ipsec_packet(struct packet *pkt) {
struct ipsec_header *hdr = (struct ipsec_header *)pkt->data;
// Directly uses hdr->payload_length without bounds check
process_payload(pkt->data + sizeof(struct ipsec_header), hdr->payload_length);
}
Patched Code (Hypothetical):
// Patched: Added length validation
void process_ipsec_packet(struct packet *pkt) {
struct ipsec_header *hdr = (struct ipsec_header *)pkt->data;
if (hdr->payload_length > MAX_PAYLOAD_SIZE || hdr->payload_length < MIN_PAYLOAD_SIZE) {
// Log and drop malformed packet
log_error("Invalid IPsec payload length");
return;
}
process_payload(pkt->data + sizeof(struct ipsec_header), hdr->payload_length);
}
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- Access to a network segment where F5 BIG-IP with IPsec is reachable.
- Ability to send raw IPsec packets (requires root or admin privileges on attacker machine).
Lab Setup:
- Set up a test environment with an F5 BIG-IP virtual edition (VE) or physical appliance.
- Configure IPsec on the BIG-IP (e.g., site-to-site VPN or remote access).
- Use a tool like
scapyor a custom C program to craft malicious IPsec packets.
Exploitation Steps:
- Identify the target BIG-IP IP address and ensure IPsec is enabled.
- Craft a malformed IPsec packet (e.g., with an invalid SPI or oversized payload).
- Send the packet to the target using raw sockets.
- Monitor the BIG-IP for TMM crash (e.g., via syslog or SNMP).
Example Scapy Script:
from scapy.all import *
import socket
# Craft a malformed IPsec ESP packet
ip = IP(dst="192.168.1.100")
esp = ESP(spi=0x12345678, seq=1)
# Malformed payload: extremely large length
payload = Raw(b"A" * 65535)
packet = ip / esp / payload
# Send the packet
send(packet, verbose=1)
Note: This is a conceptual example. Actual exploitation requires precise knowledge of the vulnerable code path.
Blue Team (Detection & Defense)
Detection:
- Monitor for TMM crashes in BIG-IP logs (
/var/log/tmm). - Set up alerts for sudden drops in traffic throughput.
- Use network monitoring to detect malformed IPsec packets.
Defense:
- If possible, disable IPsec on BIG-IP until a patch is available.
- Implement network segmentation to limit exposure of BIG-IP management and IPsec interfaces.
- Use an IPS/IDS to detect and block malformed IPsec packets.
- Apply virtual patching via WAF or network firewall rules.
Indicators of Compromise (IOCs)
- Network IOCs:
- Malformed IPsec packets with invalid SPI values (e.g., SPI=0x00000000 or SPI=0xFFFFFFFF).
- IPsec packets with payload lengths exceeding 65535 bytes.
- Sudden increase in IPsec-related error logs on BIG-IP.
- System IOCs:
- TMM process crash logs in
/var/log/tmmor/var/log/ltm. - Core dump files generated in
/var/core/. - SNMP traps indicating TMM failure.
- TMM process crash logs in
- Log Examples:
err tmm[12345]: 012e0001:3: TMM process terminated unexpectedly. warning tmm[12345]: 012e0001:2: Invalid IPsec packet received from 10.0.0.5.
Detection Engineering
YARA Rule
rule CVE_2025_58071_IPsec_DoS {
meta:
description = "Detects malformed IPsec packets targeting F5 BIG-IP TMM"
author = "Valters IT"
date = "2025-04-10"
cve = "CVE-2025-58071"
strings:
$esp_header = { 00 00 00 00 } // Invalid SPI (0x00000000)
$large_payload = { FF FF } // Payload length > 65535
condition:
$esp_header or $large_payload
}
Sigma Rule
title: F5 BIG-IP TMM Crash Due to Malformed IPsec Traffic
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects TMM crash events caused by malformed IPsec packets
author: Valters IT
logsource:
product: f5
service: bigip
detection:
selection:
- EventID: "012e0001"
Message: "*TMM process terminated*"
- EventID: "012e0001"
Message: "*Invalid IPsec packet*"
condition: selection
falsepositives:
- Legitimate IPsec misconfigurations
level: high
Suricata Rule
alert ip any any -> any any (msg:"CVE-2025-58071 - Malformed IPsec Packet Targeting F5 BIG-IP"; ip_proto:esp; content:"|00 00 00 00|"; offset:0; depth:4; sid:1000001; rev:1;)
alert ip any any -> any any (msg:"CVE-2025-58071 - Oversized IPsec Payload"; ip_proto:esp; content:"|FF FF|"; offset:4; depth:2; sid:1000002; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable IPsec on BIG-IP systems if not critical to operations.
- Apply network access controls to restrict IPsec traffic to trusted sources only.
- Monitor for TMM crashes and set up automated alerts.
Long-term Fix:
- Await an official patch from F5. Check F5's security advisory page regularly.
- Once a patch is released, apply it to all affected systems immediately.
- Consider upgrading to a supported software version if currently on an EoTS release.
Workarounds:
- Use an alternative VPN solution (e.g., OpenVPN, WireGuard) until a patch is available.
- Implement rate limiting on IPsec traffic to reduce attack surface.
Valters IT
DevSecOps & Cyber Threat Intelligence
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.