CVE-2026-47766
ŚrednieCVSS 5.1Streszczenie
crun przed wersją 1.28 zawiera podatność w domyślnej konfiguracji urządzeń, która otwiera katalog /dev w rootfs kontenera bez flagi O_NOFOLLOW. Jeśli pakiet OCI zawiera rootfs/dev jako dowiązanie symboliczne i konfiguracja nie montuje /dev, crun podąża za dowiązaniem i tworzy domyślne węzły urządzeń oraz dowiązania stdio poza rootfs kontenera. Może to prowadzić do nadpisania istniejących plików, np. ptmx.
Ocena ryzyka
Lokalny atakujący z uprawnieniami roota może utworzyć węzły urządzeń lub dowiązania poza rootfs, co może prowadzić do eskalacji uprawnień lub uszkodzenia systemu.
Rekomendacja
Zaleca się aktualizację crun do wersji 1.28 lub nowszej, która zawiera poprawkę.
Oryginalny opis (angielski, źródło NVD)
crun is an open source OCI Container Runtime fully written in C. Prior to version 1.28, crun's default device setup opens the container rootfs `/dev` directory without `O_NOFOLLOW`. If an OCI bundle contains `rootfs/dev` as a symlink and the bundle configuration does not mount `/dev`, crun follows that symlink and creates the default device nodes and stdio symlinks at the symlink target outside the container rootfs. In a local rootful crun replay, this created fixed device nodes and symlinks outside the rootfs before crun returned failure. A pre-existing file named `ptmx` in the target directory was also replaced by crun's forced `ptmx -> pts/ptmx` symlink. Version 1.28 fixes the issue.

