Fedora Account System
Red Hat Associate
Red Hat Customer
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process. A flaw was found in crun. For a tmpfs mount with tmpcopyup, process_single_mount() opens the destination and attaches the tmpfs, and handle_tmpcopyup() then opens that destination again by name without O_NOFOLLOW and copies the image files there. A container that shares a writable volume with the container being created can rename a path component to a symlink between the two lookups, so crun, running as host root, writes the image files onto host files. Those files include /proc/sys and files on a volume mounted read-only in another container. The copy keeps the source owner and mode, including the set-user-ID bit. The same second lookup by name is used for the recursive mount options rro, rnosuid, rnodev, and rnoexec. The lookup was added in commit 1fac50d, crun 0.9. Releases through 1.30.1 are affected, and current upstream main still has the open.