NULL Pointer Dereference Affecting github.com/kubernetes-csi/external-snapshotter/pkg/common-controller package, versions >=3.0.0 <3.0.2
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?
github.com/kubernetes-csi/external-snapshotter/pkg/common-controller to version 3.0.2 or higher.
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.