Bug 1886640 (CVE-2020-8566) - CVE-2020-8566 kubernetes: Ceph RBD adminSecrets exposed in logs when loglevel >= 4
Summary: CVE-2020-8566 kubernetes: Ceph RBD adminSecrets exposed in logs when loglevel...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-8566
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1887290 1887291 1887292 1887748
Blocks: 1883756
TreeView+ depends on / blocked
 
Reported: 2020-10-09 01:52 UTC by Sam Fowler
Modified: 2021-06-15 13:56 UTC (History)
20 users (show)

Fixed In Version: kubernetes 1.19.3, kubernetes 1.18.10, kubernetes 1.17.13
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in kubernetes. If the logging level is to at least 4, and Ceph RBD is configured as a storage provisioner, then Ceph RBD admin secrets can be written to logs. This occurs in kube-controller-manager's logs during provisioning of Ceph RBD persistent claims.
Clone Of:
Environment:
Last Closed: 2021-01-18 23:59:14 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:5634 0 None None None 2021-02-24 14:41:58 UTC
Red Hat Product Errata RHSA-2021:0037 0 None None None 2021-01-18 17:57:10 UTC

Description Sam Fowler 2020-10-09 01:52:34 UTC
In Kubernetes, if the logging level is to at least 4, and Ceph RBD is configured as a storage provisioner, then Ceph RBD admin secrets can be written to logs. This occur's in kube-controller-manager's logs during provisioning of Ceph RBD persistent claims.


Upstream Fix:

https://github.com/kubernetes/kubernetes/pull/95245

Comment 2 Sam Fowler 2020-10-09 01:55:55 UTC
Acknowledgments:

Name: the Kubernetes Product Security Committee
Upstream: Kaizhe Huang (derek0405)

Comment 4 Sam Fowler 2020-10-12 05:00:55 UTC
Statement:

OpenShift Container Platform 4 does not support Ceph RBD persistent volumes, however the vulnerable code is included.

Comment 5 Sam Fowler 2020-10-13 02:31:18 UTC
Mitigation:

OCP Clusters not using Ceph RBD volumes are not vulnerable to this issue. For clusters using Ceph RBD volumes, this can be mitigated by ensuring the logging level is below 4 and protecting unauthorized access to cluster logs.

For OCP, the logging level for core components can be configured using operators, e.g. for kube-controller-manager:
https://docs.openshift.com/container-platform/latest/rest_api/operator_apis/kubecontrollermanager-operator-openshift-io-v1.html#specification

In OCP, a logging level of "Debug" is equivalent to 4: 
https://github.com/openshift/api/blob/master/operator/v1/types.go#L96

The default logging level is "Normal", which is equivalent to 2. Clusters running with the default level are not vulnerable to this issue.

Comment 7 errata-xmlrpc 2021-01-18 17:57:07 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.6

Via RHSA-2021:0037 https://access.redhat.com/errata/RHSA-2021:0037

Comment 8 Product Security DevOps Team 2021-01-18 23:59:14 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-8566

Comment 9 errata-xmlrpc 2021-02-24 14:41:53 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.7

Via RHSA-2020:5634 https://access.redhat.com/errata/RHSA-2020:5634


Note You need to log in before you can comment on or make changes to this bug.