Summary
In ambient mode, a DNS or DNS_ROUND_ROBIN ServiceEntry that is enrolled in a waypoint but resolves to no endpoints triggers a nil pointer dereference in istiod while generating the waypoint's inbound clusters. The root cause is that buildCluster deliberately returns nil for STRICT_DNS and LOGICAL_DNS clusters with no locality endpoints, and the waypoint inbound path in buildWaypointInboundVIPCluster passed that nil result directly to getOrCreateIstioMetadata without a nil check. Any user who can create a ServiceEntry in a waypoint-enrolled namespace can trigger the crash with namespace-scoped permissions alone, and istiod enters a crash loop until the offending ServiceEntry is removed. STATIC ServiceEntries (which map to EDS clusters) are not affected.
Impact
A tenant with only namespace-scoped ServiceEntry create permission can crash the istiod control plane for the entire mesh, crossing the namespace-to-control-plane trust boundary. While istiod is down, configuration distribution and certificate rotation stall mesh-wide; the data plane continues serving its last-known configuration but cannot receive policy updates. The crash loop is self-sustaining after the initial trigger and continues after each istiod restart until the offending ServiceEntry is deleted. There is no confidentiality or integrity impact; the effect is a persistent availability loss for the control plane.
Detection
Monitor istiod pod restart counts and CrashLoopBackOff events in the istio-system namespace. If istiod begins crash-looping, audit ServiceEntry resources in waypoint-enrolled namespaces for DNS or DNS_ROUND_ROBIN entries whose workloadSelector matches no workloads, or that have no defined endpoints. istiod logs will show a nil pointer dereference panic immediately before each crash.
Mitigation
Upgrade to Istio 1.30.9, 1.31.5, or 1.32.1. The fix returns early when buildCluster returns nil and filters nil clusters out of the inbound-VIP result, matching the existing behavior in the outbound path. As an interim workaround, restrict who may create or edit ServiceEntry resources in namespaces enrolled in a waypoint using RBAC or an admission policy, and avoid DNS or DNS_ROUND_ROBIN ServiceEntries whose workloadSelector matches no workloads in waypoint-enrolled namespaces.
Related Security Guidance
- Denial of Service (DoS) Attacks — how attackers exploit Kubernetes resources to exhaust system capacity and cause service outages
- Service Mesh Security — hardening Istio and other service meshes in Kubernetes
- Securing RBAC Permissions — restricting resource creation permissions to reduce the blast radius of tenant-level exploits