llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · github.com/containerd/containerd

GHSA-MVFF-H3CJ-WJ9C

Unprivileged pod using `hostPath` can side-step active LSM when it is SELinux

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -1 d de la divulgación
Exposición1.778 dDesde la divulgación, 6 ene 2022, 12:36 p. m.
Detección1.775 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche v1.5.9
Monitoreo
Detectada
5 ene 22
6 ene 22
8 jul 26
17 nov 26
20 nov 26
5 ene 22
26 mar 23
13 jun 24
1 sept 25
20 nov 26
FechaFaseEventoDetalle
Remediación Parche v1.5.9 github.com/containerd/containerd · -1 d desde divulgación
Divulgación Publicada GHSA-MVFF-H3CJ-WJ9C divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Impact

Containers launched through containerd’s CRI implementation on Linux systems which use the SELinux security module and containerd versions since v1.5.0 can cause arbitrary files and directories on the host to be relabeled to match the container process label through the use of specially-configured bind mounts in a hostPath volume. This relabeling elevates permissions for the container, granting full read/write access over the affected files and directories. Kubernetes and crictl can both be configured to use containerd’s CRI implementation.

If you are not using containerd’s CRI implementation (through one of the mechanisms described above), you are not affected by this issue.

Patches

This bug has been fixed in containerd 1.5.9. Because file labels persist independently of containerd, users should both update to these versions as soon as they are released and validate that all files on their host are correctly labeled.

Workarounds

Ensure that no sensitive files or directories are used as a hostPath volume source location. Policy enforcement mechanisms such a Kubernetes Pod Security Policy AllowedHostPaths https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems may be specified to limit the files and directories that can be bind-mounted to containers.

For more information

If you have any questions or comments about this advisory:

  • Open an issue in containerd https://github.com/containerd/containerd/issues/new/choose
  • Email us at [security@containerd.io](mailto:security@containerd.io)
Versiones

Rangos afectados

Afectada Corregida Última
github.com/containerd/containerd≥ 1.5.0 < 1.5.9
1.5.0
1.5.9
v1.7.36
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogithub.com/containerd/containerd
Corregida v1.5.9 -1 d v1.7.36 no afectada
Versiones corregidas1.5.9v1.5.9
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-43816
Otrahttps://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c
Otrahttps://github.com/containerd/containerd/issues/6194
Otrahttps://github.com/containerd/containerd/commit/a731039238c62be081eb8c31525b988415745eea
Otrahttps://github.com/dweomer/containerd/commit/f7f08f0e34fb97392b0d382e58916d6865100299
Otrahttps://github.com/containerd/containerd
Otrahttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD5GH7NMK5VJMA2Y5CYB5O5GTPYMWMLX
Otrahttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MPDIZMI7ZPERSZE2XO265UCK5IWM7CID

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.