Security mailing lists by PureSourceCode

GO-2022-0363

MEDIUM

Sysctls applied to containers with host IPC or host network namespaces can affect the host

Impact

Before setting the sysctls for a pod, the pods namespaces must be unshared (created). However, in cases where the pod is using a host network or IPC namespace, a bug in CRI-O caused the namespace creating tool pinns to configure the sysctls of the host. This allows a malicious user to set sysctls on the host, assuming they have access to hostNetwork and hostIPC.

Any CRI-O cluster after CRI-O 1.18 that drops the infra container
1.22 and 1.23 clusters drop infra container by default, and are thus vulnerable by default.

Patches

CRI-O versions 1.24.0, 1.23.1, 1.22.2, 1.21.5, 1.20.6, 1.19.5 all have the patches.

Workarounds

Users can set manage_ns_lifecycle to false, which causes the sysctls to be configured by the OCI runtime, which typically filter these cases. This option is available in 1.20 and 1.19. Newer versions don't have this option.
An admission webhook could also be created to deny pods that use host IPC or network namespaces and also attempt to configure sysctls related to that namespace.

For more information

If you have any questions or comments about this advisory:

Published
15 Mar 2022
Last modified
3 Mar 2026
Also known as
GHSA-w2j5-3rcx-vx7x
Sources
OSV GHSA-w2j5-3rcx-vx7xJSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/cri-o/cri-o >= 1.23.0, < 1.23.1 1.23.1
OSV Go github.com/cri-o/cri-o >= 1.22.0, < 1.22.2 1.22.2
OSV Go github.com/cri-o/cri-o >= 1.21.0, < 1.21.5 1.21.5
OSV Go github.com/cri-o/cri-o >= 1.20.0, < 1.20.6 1.20.6
OSV Go github.com/cri-o/cri-o >= 1.18.0, < 1.19.5 1.19.5
OSV Go github.com/cri-o/cri-o >= 1.18.0, < 1.19.5; >= 1.20.0, < 1.20.6; >= 1.21.0, < 1.21.5; >= 1.22.0, < 1.22.2; >= 1.23.0, < 1.23.1 1.19.5, 1.20.6, 1.21.5, 1.22.2, 1.23.1

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Mar 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.