Advisory

UBUNTU-CVE-2022-24778

Also known as: CVE-2022-24778

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2022-03-25 18:15 UTC
Modified
2026-06-25 19:15 UTC

Affected packages and fixes

containerd

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 1.5.9-0ubuntu1~18.04.2 (ecosystem)

Fixed versions

1.5.9-0ubuntu1~18.04.2

Fix

  • Fixed version 1.5.9-0ubuntu1~18.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

containerd

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.5.9-0ubuntu1~20.04.6 (ecosystem)

Fixed versions

1.5.9-0ubuntu1~20.04.6

Fix

  • Fixed version 1.5.9-0ubuntu1~20.04.6
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

containerd

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.5.9-0ubuntu3.1 (ecosystem)

Fixed versions

1.5.9-0ubuntu3.1

Fix

  • Fixed version 1.5.9-0ubuntu3.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences