More Info:
Ensure that the Container Network Interface files have ownership set to root:rootRisk Level
LowAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every control plane node, confirm the CNI networks directory and current ownership of its files:
-
If your kubelet uses a different CNI configuration directory, identify it (this does not change anything, just informs you):
-
On every control plane node, change ownership of all existing CNI network files under
/var/lib/cni/networkstoroot:root: -
If there are subdirectories containing files, ensure recursive ownership correction:
-
If your environment uses a different CNI networks path, repeat steps 3–4 with that path instead of
/var/lib/cni/networks, using: -
Verification on every control plane node:
Ensure that the output shows only
root:root.
Using kubectl
Using kubectl
kubectl cannot modify host-level file ownership under
/var/lib/cni/networks or any other CNI directories on the node. This finding must be fixed directly on every control plane node via OS-level commands (for example, chown), as described in the Manual Steps section.Automation
Automation

