CVE-2015-1340: chmod race in doUidshiftIntoContainer

Published 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

Other sources

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.

Affected Software

2 affected componentsFixes available
go/github.com/lxc/lxd<0.0.0-20151004155856-19c6961cc101
0.0.0-20151004155856-19c6961cc101
linuxcontainers Lxd

Event History

Apr 22, 2019
CVE Published
via MITRE·03:35 PM
Data Sourced
via MITRE·03:35 PM
DescriptionSeverityWeakness
May 24, 2022
Advisory Published
04:44 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2015-1340?

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.

2

What is the severity of CVE-2015-1340?

CVE-2015-1340 has a severity value of 8.1, which is considered high.

3

How does CVE-2015-1340 affect the affected software?

CVE-2015-1340 affects the LXD package before version 0.19-0ubuntu5 and Linuxcontainers Lxd.

4

How can I fix CVE-2015-1340?

To fix CVE-2015-1340, update the LXD package to version 0.19-0ubuntu5 or later.

5

Where can I find more information about CVE-2015-1340?

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203