{"id":"CVE-2023-6476","aliases":["GO-2024-2458"],"url":"https://o3.security/vulnerability/CVE-2023-6476","summary":"CRI-O's pods can break out of resource confinement on cgroupv2","details":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\nAll versions of CRI-O running on cgroupv2 nodes. \nUnchecked access to an experimental annotation allows a container to be unconfined. Back in 2021, [support was added](https://github.com/cri-o/cri-o/pull/4479) 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](https://github.com/cri-o/cri-o/blob/main/pkg/config/workloads.go#L103-L107) . 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. \n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n1.29.1, 1.28.3, 1.27.3\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\nuse cgroupv1\n\n### References\n_Are there any links users can visit to find out more?_\n","published":"2024-01-10T15:27:45Z","modified":"2024-06-28T15:58:33.081759Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/cri-o/cri-o","fixedVersion":"1.29.1"},{"ecosystem":"Go","name":"github.com/cri-o/cri-o","fixedVersion":"1.28.3"},{"ecosystem":"Go","name":"github.com/cri-o/cri-o","fixedVersion":"1.27.3"}],"fix":{"url":"https://github.com/cri-o/cri-o/pull/4479","label":"cri-o/cri-o#4479"},"references":[{"type":"WEB","url":"https://github.com/cri-o/cri-o/security/advisories/GHSA-p4rx-7wvg-fwrc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6476"},{"type":"WEB","url":"https://github.com/cri-o/cri-o/pull/4479"},{"type":"WEB","url":"https://github.com/cri-o/cri-o/commit/75effcb1a25851a736e82dba1f7d8cee93ee159e"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:0195"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:0207"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-6476"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2253994"},{"type":"PACKAGE","url":"https://github.com/cri-o/cri-o"},{"type":"WEB","url":"https://github.com/cri-o/cri-o/blob/main/pkg/config/workloads.go#L103-L107"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2024-06-28T15:58:33.081759Z"}}