-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CVE-2015-1340: Fix race condition between fchown and chmod in idmapset
Shifting a container filesystem in an environment where a user can modify the container's filesystem as it's being shifted (for example if the LXD server's / was shared over the network) would allow them to make use of a race (TOCTOU) between the chown and chmod operations, allowing for an arbitrary path to be chmod-ed rather than the planned container path. The fix is to use a file descriptor to the entry being processed, validate that the entry itself is sane and then interact with the fd. This is CVE-2015-1340 Reported-by: Seth Arnold Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
- Loading branch information
Showing
2 changed files
with
88 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters