github.com/cri-o/cri-o
Affected
- introduced
1.19.0, fixed1.19.6(semver)
Fixed versions
1.19.6
Fix
- Fixed version
1.19.6go get github.com/cri-o/[email protected]
Advisory
Also known as: CVE-2022-0811, GO-2022-0354
Code Injection in CRI-O
Impact
A flaw introduced in CRI-O version 1.19 which an attacker can use to bypass the safeguards and set arbitrary kernel parameters on the host. As a result, anyone with rights to deploy a pod on a Kubernetes cluster that uses the CRI-O runtime can abuse the kernel.core_pattern kernel parameter to achieve container escape and arbitrary code execution as root on any node in the cluster.
Patches
The patches will be present in 1.19.6, 1.20.7, 1.21.6, 1.22.3, 1.23.2, 1.24.0
Workarounds
+ in the sysctl value of a pod.apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: sysctl-psp
spec:
forbiddenSysctls:
- "*"
However, this option will not work if any sysctls are required by any pods in the cluster.
Credits
Credit for finding this vulnerability goes to John Walker and Manoj Ahuje of Crowdstrike. The CRI-O community deeply thanks them for the report.
For more information
If you have any questions or comments about this advisory:
[[email protected]](mailto:[email protected]) list
with the security details and the details expected for [all CRI-O bug
reports](https://github.com/cri-o/cri-o/blob/main/.github/ISSUE_TEMPLATE/bug-report.yml).
High Basis: The source's own band: HIGH
1.19.0, fixed 1.19.6 (semver)1.19.6
1.19.6go get github.com/cri-o/[email protected]1.20.0, fixed 1.20.7 (semver)1.20.7
1.20.7go get github.com/cri-o/[email protected]1.21.0, fixed 1.21.6 (semver)1.21.6
1.21.6go get github.com/cri-o/[email protected]1.22.0, fixed 1.22.3 (semver)1.22.3
1.22.3go get github.com/cri-o/[email protected]1.23.0, fixed 1.23.2 (semver)1.23.2
1.23.2go get github.com/cri-o/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0