%GoCortexIO Snippets

Cortex XDR

Linux IPv4 TCP UAF (CVE-2026-98432) Threat Hunt

| 10 minutes to implement | ~2 min read
markdown
> Make sure you're comfortable with the results in your own environment before using this more widely.

# Snippet - Linux IPv4 TCP UAF (CVE-2026-98432) Threat Hunt

## Scenario - Cortex XQL queries to audit Linux host kernel versions via endpoint inventory, hunt for MPTCP listener configurations

CVE-2026-98432 is a CVSS 9.8 (Critical) remote use-after-free vulnerability located in the Linux kernel's IPv4 TCP handshake. The flaw occurs because IPv4 option data (inet_opt and ireq_opt) is freed before the RCU grace period ends. Exploitation of this race condition during TCP connection request processing allows a remote, unauthenticated attacker to achieve Remote Code Execution (RCE).

Systems accepting inbound TCP connections are the most directly exposed. Threat actors targeting this flaw typically focus on Linux servers running a multipath TCP (MPTCP) listener, a configuration that Go programs open by default.

[https://nvd.nist.gov/vuln/detail/cve-2026-98432](https://nvd.nist.gov/vuln/detail/cve-2026-98432)
xql
// Make sure you're comfortable with the results in your own environment before using this more widely.
// Vulnerable Linux Kernel Audit (Endpoint Inventory)

      dataset = endpoints 
      | filter platform = LINUX
      | filter kernel_version >= "4.4"
      | fields endpoint_name, operating_system, os_version, kernel_version, last_seen
      | sort desc last_seen
xql
// Make sure you're comfortable with the results in your own environment before using this more widely.
// Hunt for MPTCP / Go Listener Activity (Process Events)"
  
      dataset = xdr_data
      | filter event_type = ENUM.PROCESS
          and (
              action_process_image_command_line contains "mptcp" 
              or action_process_image_command_line contains "sysctl net.mptcp.enabled"
          )
      | fields _time, agent_hostname, actor_process_image_name, action_process_image_name, action_process_image_command_line
markdown
> Make sure you're comfortable with the results in your own environment before using this more widely.

## Additional Hunting Guidance

If ingesting NGFW products into XSIAM etc.

xql
// Make sure you're comfortable with the results in your own environment before using this more widely.
// Guidance only, to be reviewed an adjusted for your specific implementation.

// Detect Exploit Race Condition (High-Volume Incomplete Handshakes)

dataset = panw_ngfw_traffic_raw
      | filter action = "aged-out" or action = "tcp-rst-from-server"
      | filter bytes_received < 100 
      | stats count() as failed_handshakes by src_ip, dst_ip, dst_port
      | filter failed_handshakes > 500
      | sort desc failed_handshakes

// NGFW Threat Signature Detection for CVE-2026-98432
    
dataset = panw_ngfw_threat_raw
      | filter threat_name contains "CVE-2026-98432" 
          or threat_name contains "IPv4 Option"
      | fields _time, src_ip, dst_ip, threat_name, action, app

Earlier in this module

See all 23 snippets