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


0.0
medium

Snyk CVSS

    Attack Complexity High
    Availability High

    Threat Intelligence

    EPSS 0.07% (28th percentile)
Expand this section
NVD
6.5 medium

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 ID SNYK-GOLANG-GITHUBCOMKUBERNETESCSIEXTERNALSNAPSHOTTERPKGCOMMONCONTROLLER-1044072
  • published 24 Nov 2020
  • disclosed 3 Nov 2020
  • credit Unknown

How to fix?

Upgrade github.com/kubernetes-csi/external-snapshotter/pkg/common-controller to version 3.0.2 or higher.

Overview

github.com/kubernetes-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.