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

Bump containerd to v1.5.7 #3569

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

lsm5
Copy link
Member

@lsm5 lsm5 commented Oct 5, 2021

Fixes: GHSA-c2h3-6mxw-7mvq
Vulnerable versions: >= 1.5.0, < 1.5.7
Patched version: 1.5.7

Impact
A bug was found in containerd where container root directories and
some plugins had insufficiently restricted permissions, allowing
otherwise unprivileged Linux users to traverse directory contents
and execute programs. When containers included executable programs
with extended permission bits (such as setuid), unprivileged Linux
users could discover and execute those programs. When the UID of
an unprivileged Linux user on the host collided with the file
owner or group inside a container, the unprivileged Linux user on
the host could discover, read, and modify those files.

Patches
This vulnerability has been fixed in containerd 1.4.11 and
containerd 1.5.7. Users should update to these version when they
are released and may restart containers or update directory
permissions to mitigate the vulnerability.

Workarounds
Limit access to the host to trusted users. Update directory
permission on container bundles directories.

Signed-off-by: Lokesh Mandvekar lsm5@fedoraproject.org

What type of PR is this?

/kind bug

What this PR does / why we need it:

Fix for GHSA-c2h3-6mxw-7mvq

How to verify it

Check if containerd v1.5.7 is correctly vendored (I think)

Which issue(s) this PR fixes:

Fixes GHSA-c2h3-6mxw-7mvq

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

Fixed GHSA-c2h3-6mxw-7mvq

@nalind @vrothberg @TomSweeneyRedHat @rhatdan PTAL

@lsm5
Copy link
Member Author

lsm5 commented Oct 5, 2021

Do we have/need a /kind security ?

Fixes: GHSA-c2h3-6mxw-7mvq
Vulnerable versions: >= 1.5.0, < 1.5.7
Patched version: 1.5.7

`Impact`
A bug was found in containerd where container root directories and
some plugins had insufficiently restricted permissions, allowing
otherwise unprivileged Linux users to traverse directory contents
and execute programs. When containers included executable programs
with extended permission bits (such as setuid), unprivileged Linux
users could discover and execute those programs. When the UID of
an unprivileged Linux user on the host collided with the file
owner or group inside a container, the unprivileged Linux user on
the host could discover, read, and modify those files.

`Patches`
This vulnerability has been fixed in containerd 1.4.11 and
containerd 1.5.7. Users should update to these version when they
are released and may restart containers or update directory
permissions to mitigate the vulnerability.

`Workarounds`
Limit access to the host to trusted users. Update directory
permission on container bundles directories.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
@rhatdan
Copy link
Member

rhatdan commented Oct 5, 2021

/approve
/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 5, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lsm5, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 5839025 into containers:main Oct 5, 2021
@rhatdan
Copy link
Member

rhatdan commented Oct 5, 2021

BTW This Vulnerability looks like it did not effect Buildah.

@lsm5
Copy link
Member Author

lsm5 commented Oct 5, 2021

@rhatdan ack, now that you mention it, I think I remember someone else saying something to that effect. But I was seeing that annoying github security warning, hence the PR.

@lsm5 lsm5 deleted the bump-containerd branch October 5, 2021 17:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants