Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensures that the primary GID is also included in the additional GIDs #3651

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

AkihiroSuda
Copy link
Member

Apply `ensureAdditionalGids()` from containerd/containerd@3eda46a

(CVE-2023-25173, GHSA-hmfx-3pcx-653p)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Member Author

Can we have a new release with this?

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a new release with this?

Yes LGTM. PTAL @tonistiigi

@thaJeztah
Copy link
Member

Is this code also used for the embedded BuildKit in moby? If so, we probably need a cherry-pick for 0.10 as well

@@ -91,6 +91,7 @@ func parseUID(str string) (uint32, error) {
// once the PR in containerd is merged we should remove this function.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// WithUIDGID allows the UID and GID for the Process to be set
// FIXME: This is a temporeray fix for the missing supplementary GIDs from containerd
// once the PR in containerd is merged we should remove this function.

Have these changes been merged in containerd, and if so, can we remove this function (making it an alias for the one in containerd? https://github.com/containerd/containerd/blob/8cb00f45c973b017f403d05d4d208ab2971ff335/oci/spec_opts.go#L692-L702

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function arguments are different, so it still can't be removed

@AkihiroSuda
Copy link
Member Author

Is this code also used for the embedded BuildKit in moby? If so, we probably need a cherry-pick for 0.10 as well

Yes IIUC

@tonistiigi
Copy link
Member

Can we have a new release with this?

Is there any practical reason why you would need it?

@AkihiroSuda
Copy link
Member Author

Can we have a new release with this?

Is there any practical reason why you would need it?

I'd like to release nerdctl v1.2.1 with the CVE fix very soon, and I'd like to make sure the issue is fixed in nerdctl build as well as in nerdctl run.

@AkihiroSuda
Copy link
Member Author

@tonistiigi @thaJeztah

Let me know if the next release is planned soon. The vuln isn't critical, so either is fine to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants