Go · istio.io/istio
Istio: istiod crash (DoS) when a ServiceEntry claims an IP-addressed waypoint's address
A ServiceEntry that claims an IP-addressed waypoint's address crashes istiod mesh-wide (ambient mode) and it crash-loops until the ServiceEntry is removed.
In ambient mode istiod resolves an IP-addressed waypoint's owning service by (network, IP), with no namespace in the key. The EDS shim uses krt.FetchOne over the ServicesByAddress index in RegisterEdsShim (pilot/pkg/serviceregistry/ambient/sidecar_interop.go); when two services share the address it panics ("FetchOne found for more than 1 item") on a krt goroutine and takes istiod down. A ServiceEntry with spec.addresses set to the waypoint ClusterIP, in any namespace, creates the collision, and it persists so istiod crash-loops until the ServiceEntry is deleted.
Fixes are available in 1.29.9, 1.30.6 and 1.31.2 Workarounds: delete the colliding ServiceEntry; restrict who may create ServiceEntry resources; or avoid IP-addressed waypoints (a waypoint reports a hostname by default, which is used instead).
Denial of service against the istiod control plane. A tenant with ServiceEntry-create in their own namespace can crash istiod for the whole mesh by targeting a waypoint address in another namespace, crossing a namespace boundary. Config distribution and certificate rotation stall mesh-wide until the ServiceEntry is removed. Ambient mode with an IP-addressed waypoint only.
Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.
Check my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.