First published: Mon Apr 22 2019(Updated: )
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
Credit: security@ubuntu.com security@ubuntu.com
Affected Software | Affected Version | How to fix |
---|---|---|
go/github.com/lxc/lxd | <0.0.0-20151004155856-19c6961cc101 | 0.0.0-20151004155856-19c6961cc101 |
Linuxcontainers Lxd |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2015-1340 is a vulnerability in LXD before version 0.19-0ubuntu5 that allows an attacker to create a symbolic link and modify the mode of any file on the system.
CVE-2015-1340 has a severity value of 8.1, which is considered high.
CVE-2015-1340 affects the LXD package before version 0.19-0ubuntu5 and Linuxcontainers Lxd.
To fix CVE-2015-1340, update the LXD package to version 0.19-0ubuntu5 or later.
You can find more information about CVE-2015-1340 at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2015-1340), [GitHub Commit](https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4), [GitHub Pull Request](https://github.com/lxc/lxd/pull/1189).