Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

[19.03] Revert Pass root to chroot to for chroot Tar/Untar (CVE-2018-15664) #275

Merged
andrewhsu merged 2 commits intodocker-archive:19.03from
tiborvass:19.03-revert-chroot-tar-untar
Jun 12, 2019
Merged

[19.03] Revert Pass root to chroot to for chroot Tar/Untar (CVE-2018-15664) #275
andrewhsu merged 2 commits intodocker-archive:19.03from
tiborvass:19.03-revert-chroot-tar-untar

Conversation

@tiborvass
Copy link

The CVE fix merged in #254 is currently incorrect and breaks users (see moby#39348).

While we figure out the proper fix, unfortunately we need to revert the fix for 19.03.

Ping @andrewhsu @justincormack @tonistiigi @cpuguy83 @thaJeztah

Tibor Vass added 2 commits June 12, 2019 04:06
This reverts commit 3e057d5.

Signed-off-by: Tibor Vass <[email protected]>
This reverts commit 9781cce.

Signed-off-by: Tibor Vass <[email protected]>
@andrewhsu andrewhsu requested a review from justincormack June 12, 2019 04:14
@andrewhsu andrewhsu added this to the 19.03.0 milestone Jun 12, 2019
Copy link

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

I do not understand how this doesn't just automatically delay the release but LGTM if there is no other way.

@cpuguy83
Copy link

Sorry, I'm not seeing the problem with the proposed patch (outside of showing the need for a rewrite)

@tiborvass
Copy link
Author

@cpuguy83 it partially reverts the guarantees that the CVE fix added (by chroot-ing to one directory level above, which in the case of other drivers than overlay2 provides access to any other layer).

Copy link

@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

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

LGTM

need more time to come up with a more suitable fix for the CVE, next train is june patch release due by end of month

@andrewhsu andrewhsu merged commit ceb773e into docker-archive:19.03 Jun 12, 2019
@andrewhsu
Copy link

In the meantime, until a more suitable fix for the CVE is available, mitigation is to pause the container before doing file system operations if one is concerned about somebody being sneaky: moby#39252

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@cpuguy83
Copy link

Doesn't it make sense to have a partial mitigation?
Also was there some issue found with the "copy to container" scenario?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants