CVE Vulnerabilities

CVE-2019-9946

Always-Incorrect Control Flow Implementation

Published: Apr 02, 2019 | Modified: Nov 07, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
Ubuntu

Cloud Native Computing Foundation (CNCF) CNI (Container Networking Interface) 0.7.4 has a network firewall misconfiguration which affects Kubernetes. The CNI portmap plugin, used to setup HostPorts for CNI, inserts rules at the front of the iptables nat chains; which take precedence over the KUBE- SERVICES chain. Because of this, the HostPort/portmap rule could match incoming traffic even if there were better fitting, more specific service definition rules like NodePorts later in the chain. The issue is fixed in CNI 0.7.5 and Kubernetes 1.11.9, 1.12.7, 1.13.5, and 1.14.0.

Weakness

The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.

Affected Software

Name Vendor Start Version End Version
Portmap Cncf * 0.7.5 (excluding)
Kubernetes Kubernetes * 1.11.9 (excluding)
Kubernetes Kubernetes 1.12.0 (including) 1.12.7 (excluding)
Kubernetes Kubernetes 1.13.0 (including) 1.13.5 (excluding)
Kubernetes Kubernetes 1.13.6-beta0 (including) 1.13.6-beta0 (including)
Kubernetes Kubernetes 1.14.0-alpha0 (including) 1.14.0-alpha0 (including)
Kubernetes Kubernetes 1.14.0-alpha1 (including) 1.14.0-alpha1 (including)
Kubernetes Kubernetes 1.14.0-alpha2 (including) 1.14.0-alpha2 (including)
Kubernetes Kubernetes 1.14.0-alpha3 (including) 1.14.0-alpha3 (including)
Kubernetes Kubernetes 1.14.0-beta0 (including) 1.14.0-beta0 (including)
Kubernetes Kubernetes 1.14.0-beta1 (including) 1.14.0-beta1 (including)
Kubernetes Kubernetes 1.14.0-beta2 (including) 1.14.0-beta2 (including)
Kubernetes Kubernetes 1.14.0-rc1 (including) 1.14.0-rc1 (including)

References