NULL Pointer Dereference Affecting k8s.io-csi/external-snapshotter/pkg/common-controller package, versions >=3.0.0 <3.0.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.28% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-K8SIOCSIEXTERNALSNAPSHOTTERPKGCOMMONCONTROLLER-1044079
  • published24 Nov 2020
  • disclosed3 Nov 2020
  • creditUnknown

Introduced: 3 Nov 2020

CVE-2020-8569  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade k8s.io-csi/external-snapshotter/pkg/common-controller to version 3.0.2 or higher.

Overview

k8s.io-csi/external-snapshotter/pkg/common-controller is a CSI snapshotter that is part of Kubernetes implementation of Container Storage Interface (CSI).

Affected versions of this package are vulnerable to NULL Pointer Dereference. The snapshot-controller could panic when processing a VolumeSnapshot custom resource when:

  • The VolumeSnapshot referenced a non-existing PersistentVolumeClaim and the VolumeSnapshot did not reference any VolumeSnapshotClass.
  • The snapshot-controller crashes, is automatically restarted by Kubernetes, and processes the same VolumeSnapshot custom resource after the restart, entering an endless crashloop.

CVSS Base Scores

version 3.1