cri-o: memory exhaustion on the node when access to the kube api
Published Jun 7, 2022
7.5
HIGHCVSS 3.1
EPSS 3.16%
Description
A vulnerability was found in CRI-O that causes memory or disk space exhaustion on the node for anyone with access to the Kube API. The ExecSync request runs commands in a container and logs the output of the command. This output is then read by CRI-O after command execution, and it is read in a manner where the entire file corresponding to the output of the command is read in. Thus, if the output of the command is large it is possible to exhaust the memory or the disk space of the node when CRI-O reads the output of the command. The highest threat from this vulnerability is system availability.
Affected products
- Vendor n/a Product CRI-O Defaultn/a
- Version Affects cri-o <= 1.24.0, 1.23.2, 1.22.4, Fixed-in 1.24.1, 1.23.3, 1.22.5StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | CRI-O | n/a |
|
Configuration 1
- < 1.19.7
- ≥ 1.20.0 · < 1.20.8
- ≥ 1.21.0 · < 1.21.8
- ≥ 1.22.0 · < 1.22.5
- ≥ 1.23.0 · < 1.23.3
- 1.24.0
Configuration 2
- 36
Configuration 3
- 3.11
- 4.0
- 4.9
- 4.10
- 7.0
- 8.0
- 9.0
No data.
Red Hat Enterprise Linux 8
container-tools:3.0-8070020220802115906.39077419
Fixed · RHSA-2022:7529
Red Hat Enterprise Linux 8
container-tools:4.0-8070020220830101436.39077419
Fixed · RHSA-2022:7469
Red Hat Enterprise Linux 8
container-tools:rhel8-8070020220929222448.39077419
Fixed · RHSA-2022:7457
Red Hat OpenShift Container Platform 3.11
cri-o-0:1.11.16-0.17.rhaos3.11.git4c0a8ad.el7
Fixed · RHSA-2022:4999
Red Hat OpenShift Container Platform 4.10
conmon-2:2.0.29-3.rhaos4.10.el8
Fixed · RHSA-2022:4943
Red Hat OpenShift Container Platform 4.10
cri-o-0:1.23.3-3.rhaos4.10.git5fe1720.el8
Fixed · RHSA-2022:4943
Red Hat OpenShift Container Platform 4.6
conmon-2:2.0.21-3.rhaos4.6.el7
Fixed · RHSA-2022:4947
Red Hat OpenShift Container Platform 4.6
cri-o-0:1.19.7-2.rhaos4.6.git3c20b65.el7
Fixed · RHSA-2022:4947
Red Hat OpenShift Container Platform 4.7
conmon-2:2.0.29-3.rhaos4.7.el7
Fixed · RHSA-2022:4965
Red Hat OpenShift Container Platform 4.7
cri-o-0:1.20.8-3.rhaos4.7.gitb9df556.el7
Fixed · RHSA-2022:4965
Red Hat OpenShift Container Platform 4.8
conmon-2:2.0.29-3.rhaos4.8.el7
Fixed · RHSA-2022:4951
Red Hat OpenShift Container Platform 4.8
cri-o-0:1.21.8-3.rhaos4.8.gitd7fbb0d.el7
Fixed · RHSA-2022:4951
Red Hat OpenShift Container Platform 4.9
conmon-2:2.0.29-3.rhaos4.9.el7
Fixed · RHSA-2022:4972
Red Hat OpenShift Container Platform 4.9
cri-o-0:1.22.5-3.rhaos4.9.gitb6d3a87.el7
Fixed · RHSA-2022:4972
Red Hat Enterprise Linux 7
conmon
Not affected
Red Hat Enterprise Linux 9
conmon
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | container-tools:3.0-8070020220802115906.39077419 | Fixed | RHSA-2022:7529 |
| Red Hat Enterprise Linux 8 | container-tools:4.0-8070020220830101436.39077419 | Fixed | RHSA-2022:7469 |
| Red Hat Enterprise Linux 8 | container-tools:rhel8-8070020220929222448.39077419 | Fixed | RHSA-2022:7457 |
| Red Hat OpenShift Container Platform 3.11 | cri-o-0:1.11.16-0.17.rhaos3.11.git4c0a8ad.el7 | Fixed | RHSA-2022:4999 |
| Red Hat OpenShift Container Platform 4.10 | conmon-2:2.0.29-3.rhaos4.10.el8 | Fixed | RHSA-2022:4943 |
| Red Hat OpenShift Container Platform 4.10 | cri-o-0:1.23.3-3.rhaos4.10.git5fe1720.el8 | Fixed | RHSA-2022:4943 |
| Red Hat OpenShift Container Platform 4.6 | conmon-2:2.0.21-3.rhaos4.6.el7 | Fixed | RHSA-2022:4947 |
| Red Hat OpenShift Container Platform 4.6 | cri-o-0:1.19.7-2.rhaos4.6.git3c20b65.el7 | Fixed | RHSA-2022:4947 |
| Red Hat OpenShift Container Platform 4.7 | conmon-2:2.0.29-3.rhaos4.7.el7 | Fixed | RHSA-2022:4965 |
| Red Hat OpenShift Container Platform 4.7 | cri-o-0:1.20.8-3.rhaos4.7.gitb9df556.el7 | Fixed | RHSA-2022:4965 |
| Red Hat OpenShift Container Platform 4.8 | conmon-2:2.0.29-3.rhaos4.8.el7 | Fixed | RHSA-2022:4951 |
| Red Hat OpenShift Container Platform 4.8 | cri-o-0:1.21.8-3.rhaos4.8.gitd7fbb0d.el7 | Fixed | RHSA-2022:4951 |
| Red Hat OpenShift Container Platform 4.9 | conmon-2:2.0.29-3.rhaos4.9.el7 | Fixed | RHSA-2022:4972 |
| Red Hat OpenShift Container Platform 4.9 | cri-o-0:1.22.5-3.rhaos4.9.gitb6d3a87.el7 | Fixed | RHSA-2022:4972 |
| Red Hat Enterprise Linux 7 | conmon | Not affected | n/a |
| Red Hat Enterprise Linux 9 | conmon | Will not fix | n/a |
github.com/cri-o/cri-o
Go
Introduced 1.23.0 Fixed 1.23.3github.com/cri-o/cri-o
Go
Introduced 0 Fixed 1.22.5github.com/cri-o/cri-o
Go
Introduced 1.24.0 Fixed 1.24.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/cri-o/cri-o | 1.23.0 | 1.23.3 |
| Go | github.com/cri-o/cri-o | 0 | 1.22.5 |
| Go | github.com/cri-o/cri-o | 1.24.0 | 1.24.1 |
Remediation
Red Hat statement
The vulnerability exists in reading of the output file from the ExecSync command, by the CRI-O in the Kubernetes,if the file were to be too large, then this would lead to resource exhaustion,the attack is purely theoretical in nature and would only lead to a denial of service,moreover the attacker would require code execution to exploit this making this a moderate vulnerability at best.
References (8)
- https://access.redhat.com/security/cve/CVE-2022-1708 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2085361 x_refsource_MISCIssue TrackingThird Party Advisory
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-6034 Advisory
- https://github.com/advisories/GHSA-fcm2-6c3h-pg6j Advisory
- https://github.com/cri-o/cri-o/commit/f032cf649ecc7e0c46718bd9e7814bfb317cb544 x_refsource_MISCPatch
- https://github.com/cri-o/cri-o/security/advisories/GHSA-fcm2-6c3h-pg6j x_refsource_MISCExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-1708
- https://www.cve.org/CVERecord?id=CVE-2022-1708
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2022-1708 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2085361 | x_refsource_MISCIssue TrackingThird Party Advisory | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-6034 | Advisory | |
| https://github.com/advisories/GHSA-fcm2-6c3h-pg6j | Advisory | |
| https://github.com/cri-o/cri-o/commit/f032cf649ecc7e0c46718bd9e7814bfb317cb544 | x_refsource_MISCPatch | |
| https://github.com/cri-o/cri-o/security/advisories/GHSA-fcm2-6c3h-pg6j | x_refsource_MISCExploitThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-1708 | ||
| https://www.cve.org/CVERecord?id=CVE-2022-1708 |
Change history (0)
No recorded changes yet.