Kubernetes can remove a key layer of protection because Docker’s seccomp filter is often disabled by default in that environment. If the unshare syscall is not blocked and a workload can gain CAP_SYS_ADMIN inside a namespace, an attacker may be able to move from an unprivileged shell to root and escape the container.
Why the Same CVE Becomes More Dangerous in Kubernetes
CVE-2022-0185 is not just a kernel bug, it becomes a platform risk question: Kubernetes often changes the runtime assumptions that normally limit a container breakout. In practice, the issue is whether the workload can reach the vulnerable path with enough capability, and whether the container boundary still has defensive layers like seccomp and tight privilege controls.
That is why the same vulnerability can look contained in a hardened container runtime but materially more dangerous in an orchestration environment where defaults, pod specs, and admission choices may relax those protections.
What Changes Between Docker and Kubernetes
The key difference is not the CVE itself, it is the security envelope around it. A standard Docker setup is more likely to retain the container runtime’s baseline restrictions, while Kubernetes deployments often introduce additional abstractions that can weaken or replace those defaults. Once a pod is allowed to run with broader privileges, the kernel exploit path can move from a limited process compromise to namespace escape and host impact.
That risk becomes sharper when workloads are granted capabilities they do not truly need, especially CAP_SYS_ADMIN, or when syscall filtering is absent. In a Kubernetes cluster, those decisions can be spread across pod manifests, base images, runtime classes, and node configuration, so the exposure is easy to miss even when the application itself appears ordinary. For container hardening guidance, NIST SP 800-190 Container Security remains the most relevant baseline for understanding how runtime protections should be layered.
In other words, Kubernetes does not make the CVE stronger, but it can make the exploit conditions easier to satisfy and the blast radius larger if the workload is already running with relaxed controls.
Why the Exploit Path Matters Operationally
The practical danger is the chain, not the single syscall. If unshare is reachable and the process can obtain root inside a namespace, the attacker may be able to pivot from an unprivileged shell into a stronger foothold, then attempt container escape or lateral movement into the node. That is a very different outcome from a local process crash or an isolated container fault.
For that reason, the most useful way to compare Kubernetes and Docker is to ask what the runtime permits before the exploit fires. Kubernetes pods that run privileged, share host namespaces, mount sensitive paths, or inherit overly broad capabilities create a much weaker containment story. The vulnerability then becomes a post-exploitation accelerator rather than a narrowly scoped bug. MITRE ATT&CK Enterprise Matrix is useful here because privilege escalation and lateral movement are the likely downstream phases once a container boundary is crossed.
Risk and Threat Considerations
When container protections are relaxed, a kernel exploit can turn a single workload compromise into node-level impact, secret exposure, or broader cluster access. The main risk is not only breakout, but the ability to chain initial execution into privilege escalation and persistence before defenders notice.
Failure mechanism: The exploit becomes materially more dangerous when the runtime does not block unshare and the workload can obtain elevated namespace privileges, because the attacker can use those conditions to cross a containment boundary that was assumed to exist.
Impact: The likely consequence is compromise of the container host, exposure of adjacent workloads or secrets, and a much larger incident response scope than a standard container compromise would create.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-39 — Process Isolation | Process isolation limits container breakout impact in this kernel-exploit scenario. |
| AC-6 — Least Privilege | Excessive container capabilities like CAP_SYS_ADMIN directly increase exploitability. | |
| CM-7 — Least Functionality | Disabling unnecessary syscalls and runtime features reduces attack surface for CVE-2022-0185. | |
| Recommendation — Enforce process isolation and boundary controls to reduce breakout and host compromise risk. Restrict workload privileges to the minimum required for each pod. Disable unnecessary container runtime features and syscall access. | ||
| CIS Controls v8 | CIS-4 — Secure Configuration of Enterprise Assets and Software | Container and Kubernetes hardening depends on secure defaults for runtime and pods. |
| Recommendation — Harden container and cluster configurations to remove unsafe defaults. | ||
Practitioner Guidance
What to verify: Check whether your Kubernetes workloads actually inherit a seccomp profile, and do not assume the platform enforces one for you. Confirm whether any pod spec grants CAP_SYS_ADMIN, host namespace sharing, or privileged execution, because those settings materially change the exploitability of this CVE.
Decision rule: If a workload needs elevated kernel interaction, isolate it as an exception and review it as a host-risk decision, not as a normal application deployment. If it does not need that access, remove the capability and treat any remaining exposure as a configuration defect, not an acceptable platform trade-off.
Practitioner takeaway: The real control question is whether the cluster keeps the kernel exploit inside a constrained container boundary, because once Kubernetes relaxes that boundary, the CVE can become a host compromise issue instead of a routine container bug.
Related resources from NHI Mgmt Group
- Why do non-human identities create more risk than many human accounts?
- Why do non-human identities create more remediation risk than many human accounts?
- Why does CVE-2021-25742 create a higher risk in multi-tenant Kubernetes clusters?
- Why do misconfigured Kubernetes clusters and Docker APIs create such high compromise risk for cloud native environments?