Istio TPROXY mode: mTLS/AuthorizationPolicy bypass via conntrack ESTABLISHED fast path on ephemeral port reuse
In Istio sidecars using TPROXY interception mode, the inbound iptables chain ISTIO_INBOUND contains the rule -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j ISTIO_DIVERT , which marks and accepts the packet without redirecting it to Envoy on port 15006. Netfilter keeps the ESTABLISHED state for the whole lifetime of a conntrack entry. That includes closed connections, which persist for nf_conntrack_tcp_timeout_close (default 10s). If a client reuses the same source IP and port for a new connection to the same destination within that window, the new SYN matches the stale entry and bypasses Envoy. The traffic reaches the application's listening socket directly as plaintext, without PeerAuthentication STRICT mTLS enforcement or AuthorizationPolicy evaluation. Clients with small fixed connection pools or reconnect storms can trigger this under normal churn.
Fixes are available in 1.31.4 and 1.30.8.
Use the default REDIRECT inbound interception mode instead of TPROXY (set the sidecar.istio.io/interceptionMode: REDIRECT pod annotation, or the mesh-wide interceptionMode default). Note that REDIRECT does not preserve the original client source IP.
Prerequisites: a sidecar using TPROXY inbound interception (ISTIO_INTERCEPTION_MODE=TPROXY, iptables or nftables), mesh-wide PeerAuthentication STRICT, and an application listening behind the sidecar (e.g. Redis).
Steps:
CLOSE state. By default it persists for up to 10s (nf_conntrack_tcp_timeout_close):
conntrack -L | grep <client_ip>:<port>
SO_REUSEADDR/SO_REUSEPORT) forces this deterministically.ESTABLISHED entry. It hits the ISTIO_DIVERT rule and goes straight to the application, skipping Envoy on port 15006.tcpdump shows unencrypted bytes, and Envoy's access log has no entry. Neither mTLS nor AuthorizationPolicy was evaluated.Expected: every new SYN is redirected to Envoy (port 15006), so policy is always enforced. Observed: a SYN matching a stale conntrack entry bypasses Envoy.
In TPROXY mode, a new connection reusing the 4-tuple of a recently closed connection bypasses Envoy. This defeats:
PeerAuthentication: STRICTClients with small fixed connection pools or reconnect storms can hit this during normal churn. Deployments using the default REDIRECT mode are not affected.
{
"cwe_ids": [
"CWE-288",
"CWE-290",
"CWE-863"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-04T22:10:42Z",
"nvd_published_at": "2026-12-04T21:17:57Z",
"severity": "HIGH"
}