GHSA-V736-5XP3-JGHF
Guest API caller impersonation through a forged cgroup name
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-V736-5XP3-JGHF divulgada · CVSS 8.5 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `/dev/incus` guest API identifies the calling container by walking
up the caller's process tree. Since 7.3.0, when an ancestor's command
line is empty, the daemon falls back to its cgroup path and takes the
name following the first `lxc.monitor.` found anywhere in it.
Containers get a writable view of their own cgroup subtree, so a
container can create a cgroup named after another container, move a
process into it, and have that process identified as the other
container.
Impact
A process in any container can impersonate any other container on the
same host through the guest API, across projects. This exposes the
other container's `user.*` and `cloud-init.*` configuration and device
list, allows subscribing to its events and marking it ready, and where
`security.guestapi.images` is enabled, exporting images from its
project.
The UID check on the guest API doesn't prevent this as unprivileged
containers share the same UID range unless `security.idmap.isolated`
is set.
Details
The cgroup path is now only trusted through its first `lxc.payload.`
or `lxc.monitor.` component. A container can only create cgroups below
its own payload cgroup, so that component always names the real
container.
Workarounds
Setting `security.idmap.isolated=true` on all containers gives each
one a distinct UID range, which makes the UID check on the guest API
reject impersonation attempts.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Gogithub.com/lxc/incus/v7/cmd/incusd |
Corregida | v7.6.0 | — | — |
v7.6.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/lxc/incus/security/advisories/GHSA-v736-5xp3-jghfLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
