CVE-2022-24778 Incorrect Authorization in imgcrypt
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Ubuntu
Description
The imgcrypt library provides API exensions for containerd to support encrypted container images and implements the ctd-decoder command line tool for use by containerd to decrypt encrypted container images. The imgcrypt function CheckAuthorization is supposed to check whether the current used is authorized to access an encrypted image and prevent the user from running an image that another user previously decrypted on the same system. In versions prior to 1.1.4, a failure occurs when an image with a ManifestList is used and the architecture of the local host is not the first one in the ManifestList. Only the first architecture in the list was tested, which may not have its layers available locally since it could not be run on the host architecture. Therefore, the verdict on unavailable layers was that the image could be run anticipating that image run failure would occur later due to the layers not being available. However, this verdict to allow the image to run enabled other architectures in the ManifestList to run an image without providing keys if that image had previously been decrypted. A patch has been applied to imgcrypt 1.1.4. Workarounds may include usage of different namespaces for each remote user.
Upgrade path
8 packages: 5 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/containerd(Ubuntu Pro 16.04) | = 0.2.1-0ubuntu4~16.04; = 0.2.3-0ubuntu1~16.04; = 0.2.5-0ubuntu1~16.04.1; = 1.2.6-0ubuntu1~16.04.2 +11 more | No fix listed | No fix yet |
| containerd github.com/containerd/imgcrypt(Go) | < 1.1.4 | 1.1.4 | Fixed |
| linuxfoundation imgcrypt | < 1.1.4 | 1.1.4 | Fixed |
| ubuntu/containerd(Ubuntu 18.04) | < 1.5.9-0ubuntu1~18.04.2; = 0.2.5-0ubuntu2; = 1.2.6-0ubuntu1~18.04.1; = 1.2.6-0ubuntu1~18.04.2 +11 more | 1.5.9-0ubuntu1~18.04.2 | Fixed |
| ubuntu/containerd(Ubuntu 20.04) | < 1.5.9-0ubuntu1~20.04.6; = 1.2.10-0ubuntu1; = 1.3.2-0ubuntu1; = 1.3.3-0ubuntu1 +13 more | 1.5.9-0ubuntu1~20.04.6 | Fixed |
| ubuntu/containerd(Ubuntu 22.04) | < 1.5.9-0ubuntu3.1; = 1.5.5-0ubuntu3; = 1.5.9-0ubuntu1; = 1.5.9-0ubuntu2 +1 more | 1.5.9-0ubuntu3.1 | Fixed |
| containerd github.com/containerd/imgcrypt | = < 1.1.4 | No fix listed | Versions listed |
| fedoraproject fedora | = 34; = 35; = 36 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| containerd github.com/containerd/imgcrypt(Go) | < 1.1.4 | 1.1.4 |
| containerd github.com/containerd/imgcrypt | = < 1.1.4 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | < 1.5.9-0ubuntu3.1 | 1.5.9-0ubuntu3.1 |
| linuxfoundation imgcrypt | < 1.1.4 | 1.1.4 |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.1-0ubuntu4~16.04 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.3-0ubuntu1~16.04 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.5-0ubuntu1~16.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.5 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm4 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm5 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm6 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm7 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | < 1.5.9-0ubuntu1~18.04.2 | 1.5.9-0ubuntu1~18.04.2 |
| ubuntu/containerd(Ubuntu:18.04) | = 0.2.5-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.2.6-0ubuntu1~18.04.1 | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/containerd(Ubuntu:18.04) | = 1.2.6-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.4.4-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.2-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.2-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.2-0ubuntu1~18.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.5-0ubuntu3~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.5-0ubuntu3~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.9-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | < 1.5.9-0ubuntu1~20.04.6 | 1.5.9-0ubuntu1~20.04.6 |
| ubuntu/containerd(Ubuntu:20.04) | = 1.2.10-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.2-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.3 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.4.4-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.5-0ubuntu3~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.5-0ubuntu3~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.5 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.5-0ubuntu3 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu3 | No fix listed |
References
- github.com issue-tracking patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com exploit issue-tracking patch third-party-advisory
- github.com patch third-party-advisory
- github.com product
- github.com issue-tracking release-notes third-party-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- pkg.go.dev
- github.com
- FEDORA-2022-5f746c8e5b vendor-advisory
- FEDORA-2022-de0f8beeb0 vendor-advisory
- FEDORA-2022-d86c15bfb7 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5776-1 vendor-advisory
- www.cve.org issue-tracking