CVE Vulnerabilities

CVE-2019-9946

Always-Incorrect Control Flow Implementation

Published: Apr 02, 2019 | Modified: Nov 21, 2024
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
6.5 MODERATE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
PortmapCncf*0.7.5 (excluding)
KubernetesKubernetes*1.11.9 (excluding)
KubernetesKubernetes1.12.0 (including)1.12.7 (excluding)
KubernetesKubernetes1.13.0 (including)1.13.5 (excluding)
KubernetesKubernetes1.13.6-beta0 (including)1.13.6-beta0 (including)
KubernetesKubernetes1.14.0-alpha0 (including)1.14.0-alpha0 (including)
KubernetesKubernetes1.14.0-alpha1 (including)1.14.0-alpha1 (including)
KubernetesKubernetes1.14.0-alpha2 (including)1.14.0-alpha2 (including)
KubernetesKubernetes1.14.0-alpha3 (including)1.14.0-alpha3 (including)
KubernetesKubernetes1.14.0-beta0 (including)1.14.0-beta0 (including)
KubernetesKubernetes1.14.0-beta1 (including)1.14.0-beta1 (including)
KubernetesKubernetes1.14.0-beta2 (including)1.14.0-beta2 (including)
KubernetesKubernetes1.14.0-rc1 (including)1.14.0-rc1 (including)
Red Hat Enterprise Linux 7 ExtrasRedHatcontainernetworking-plugins-0:0.7.5-2.el7*
Red Hat Enterprise Linux 8RedHatcontainer-tools:rhel8-8010020190927090915.4985cc55*
KubernetesUbuntucosmic*
KubernetesUbuntudisco*
KubernetesUbuntueoan*
KubernetesUbuntufocal*
KubernetesUbuntugroovy*
KubernetesUbuntuhirsute*
KubernetesUbuntuimpish*
KubernetesUbuntukinetic*
KubernetesUbuntulunar*
KubernetesUbuntumantic*
KubernetesUbuntuoracular*

References