libseccomp-golang 0.9.0 and earlier incorrectly generates BPFs that OR multiple arguments rather than ANDing them. A process running under a restrictive seccomp filter that specified multiple syscall arguments could bypass intended access restrictions by specifying a single matching argument. External References: https://www.openwall.com/lists/oss-security/2019/04/25/6 Upstream Bug: https://github.com/seccomp/libseccomp-golang/issues/22 Upstream Patch: https://github.com/seccomp/libseccomp-golang/commit/06e7a29f36a34b8cf419aeb87b979ee508e58f9e
Created golang-github-seccomp-libseccomp-golang tracking bugs for this issue: Affects: epel-6 [bug 1706829] Affects: fedora-all [bug 1706828]
This issue affects
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.1 Via RHSA-2019:4087 https://access.redhat.com/errata/RHSA-2019:4087
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.1 Via RHSA-2019:4090 https://access.redhat.com/errata/RHSA-2019:4090
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-2017-18367
Statement: This issue may affect OpenShift Container Platform 3.x and 4.x if you are providing a custom Seccomp profile using Security Context Constraints [1]. The custom Seccomp profile would need to specify multiple arguments, such as below, from [2]. { "names": [ "socketcall" ], "action": "SCMP_ACT_ALLOW", "args": [ { "index": 0, "value": 1, "valueTwo": 0, "op": "SCMP_CMP_EQ" }, { "index": 1, "value": 1, "valueTwo": 0, "op": "SCMP_CMP_EQ" } ], "comment": "", "includes": {}, "excludes": {} }, If such a profile was used the arguments could be combined as an OR rule, not AND, as the user might expect from Seccomp. [1] https://docs.openshift.com/container-platform/4.1/authentication/managing-security-context-constraints.html [2] https://github.com/moby/moby/issues/32714#issuecomment-295532163
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 3.11 Via RHSA-2020:2479 https://access.redhat.com/errata/RHSA-2020:2479