GitHub Advisoryadvisory · Go

GHSA-p4rx-7wvg-fwrc CRI-O's pods can break out of resource confinement on cgroupv2

MEDIUM Published 2024-01-10 Modified 2024-01-10 Official page ↗
Aliases
CVE-2023-6476
Ecosystem
Go
Packages
github.com/cri-o/cri-o
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400, CWE-770
Reviewed
2024-01-10

Affected packages

• Go github.com/cri-o/cri-o: >= 1.29.0, < 1.29.1 → fixed in 1.29.1 • Go github.com/cri-o/cri-o: >= 1.28.0, < 1.28.3 → fixed in 1.28.3 • Go github.com/cri-o/cri-o: < 1.27.3 → fixed in 1.27.3

Description

Impact _What kind of vulnerability is it? Who is impacted?_ All versions of CRI-O running on cgroupv2 nodes. Unchecked access to an experimental annotation allows a container to be unconfined. Back in 2021, support was added to support an experimental annotation that allows a user to request special resources in cgroupv2. It was supposed to be gated by an experimental annotation: `io.kubernetes.cri-o.UnifiedCgroup`, which was supposed to be filtered from the list of allowed annotations . However, there is a bug in this code which allows any user to specify this annotation, regardless of whether it's enabled on the node. The consequences of this are a pod can specify any amount of memory/cpu and get it, circumventing the kubernetes scheduler, and potentially be able to DOS a node. Patches _Has the problem been patched? What versions should users upgrade to?_ 1.29.1, 1.28.3, 1.27.3 Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ use cgroupv1 References _Are there any links users can visit to find out more?_

Related

Alias · CVE (1)

  • CVE-2023-6476 A flaw was found in CRI-O that involves an experimental annotation leading to a container being unconfined. vulnerability

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References