Bug 2160349 (CVE-2023-0229)

Summary: CVE-2023-0229 openshift/apiserver-library-go: Bypass of SCC seccomp profile restrictions
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, jburrell, joelsmith, rkshirsa, rogbas, sfowler, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in github.com/openshift/apiserver-library-go, used in OpenShift 4.12 and 4.11, that contains an issue that can allow low-privileged users to set the seccomp profile for pods they control to "unconfined." By default, the seccomp profile used in the restricted-v2 Security Context Constraint (SCC) is "runtime/default," allowing users to disable seccomp for pods they can create and modify.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-18 06:31:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2155150, 2160352    

Description Sam Fowler 2023-01-12 06:11:03 UTC
In github.com/openshift/apiserver-library-go, used in OpenShift 4.12 and 4.11, a bug was found that can allows low privileged users to set the seccomp profile for pods they control to "unconfined". By default the seccomp profile used in the restricted-v2 Security Context Contstraint (SCC) is "runtime/default", thus this bug allows users disable seccomp for pods they can create and/or modify.

Seccomp is one of many security layers used in OpenShift, including SELinux, dropping of capabilities and running as non-root, so on its own disabling of seccomp does not allow a direct path to privilege escalation. However, it is possible that exploit of this bug could be used in combination with another vulnerability, e.g. a potential kernel privilege escalation flaw, to allow a user to escape a container.

Comment 7 errata-xmlrpc 2023-05-17 22:53:37 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2023:1325 https://access.redhat.com/errata/RHSA-2023:1325

Comment 8 Product Security DevOps Team 2023-05-18 06:31:34 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-0229