Skip to content

Why the leaked file descriptor pointing to cgroup described in CVE-2024-21626 can not be seen via /proc/xxx/fd either inside the container or on the host #4213

Answered by cyphar
jiuchen1986 asked this question in Q&A
Discussion options

You must be logged in to vote

The file descriptor was not leaked to the container, it was an internal file descriptor leak to runc init (which is the process that eventually does an exec to become the container process).

While some other folks described the issue as a simple "file descriptor leak", this is not entirely accurate. We have had code to ensure that we do not leak extra file descriptors to the container before said exec since 2014.

The oversight was that it was possible to maliciously configure the container so that runc init uses that file descriptor to escape before it is closed before exec. (We have had to add new bits of hardening to this over time -- we found a kernel bug with O_CLOEXEC and the dumpabl…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jiuchen1986
Comment options

Comment options

You must be logged in to vote
1 reply
@jiuchen1986
Comment options

Answer selected by jiuchen1986
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants