VDB
Sign up
HIGH8.1

GHSA-8mpq-fmr3-6jxv

LXD vulnerable to Race Condition

Quick fix

GHSA-8mpq-fmr3-6jxv — github.com/lxc/lxd: upgrade to the fixed version with the command below.

go get github.com/lxc/lxd@v0.0.0-20151004155856-19c6961cc101

Details

LXD before version 0.19-0ubuntu5 `doUidshiftIntoContainer()` has an unsafe `Chmod()` call that races against the stat in the `Filepath.Walk()` function. A symbolic link created in that window could cause any file on the system to have any mode of the attacker's choice.

### Specific Go Packages Affected github.com/lxc/lxd/shared

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/lxc/lxd
Introduced in: 0Fixed in: 0.0.0-20151004155856-19c6961cc101
Fixgo get github.com/lxc/lxd@v0.0.0-20151004155856-19c6961cc101

References