CVE-2022-1708High· 7.5▾ TwilightNode DOS by way of memory exhaustion through ExecSync request in CRI-O
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0.6 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 9.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
2.8%
2.8% → 3.1%
An ExecSync request runs a command in a container and returns the output to the Kubelet. It is used for readiness and liveness probes within a pod. The way CRI-O runs ExecSync commands is through conmon. CRI-O asks conmon to start the process, and conmon writes the output to disk. CRI-O then reads the output and returns it to the Kubelet.
If the output of the command is large enough, it is possible to exhaust the memory (or disk usage) of the node. The following deployment is an example yaml file that will output around 8GB of ‘A’ characters, which would be written to disk by conmon and read by CRI-O.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment100
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "seq 1 50000000`; do echo -n 'aaaaaaaaaaaaaaaa'; done"]
It is possible for the node to be exhausted of memory or disk space, depending on the node the command is being run on. What is further problematic is that the memory and disk usage aren't attributed to the container, as this file and its processing are implementation details of CRI-O. The consequence of the exhaustion is that other services on the node, e.g. other containers, will be unable to allocate memory and thus causing a denial of service.
This vulnerability will be fixed in 1.24.1, 1.23.3, 1.22.5, v1.21.8, v1.20.8, v1.19.7
At the time of writing, no workaround exists other than ensuring only trusted images are used.
https://github.com/containerd/containerd/security/advisories/GHSA-5ffw-gxpp-mxpf
If you have any questions or comments about this advisory:
Disclosed by Ada Logics in a security audit sponsored by CNCF and facilitated by OSTIF.
github.com/cri-o/cri-o >= 1.24.0, < 1.24.1github.com/cri-o/cri-o >= 1.23.0, < 1.23.3github.com/cri-o/cri-o < 1.22.5Upgrade to a patched release:
github.com/cri-o/cri-o 1.24.1github.com/cri-o/cri-o 1.23.3github.com/cri-o/cri-o 1.22.5Connected by shared product, vendor, weakness, or advisory.
CVE-2024-3154High· 7.2A flaw was found in cri-o, where an arbitrary systemd property can be injected via a Pod annotation
CVE-2024-5154High· 8.1malicious container creates symlink "mtab" on the host External
CVE-2022-0811High· 8.8Code Injection in CRI-O
CVE-2022-27652Medium· 4.8Incorrect Default Permissions in CRI-O