CVE-2015-1340

chmod race in doUidshiftIntoContainer

HIGH
7
CVSS Score
Published: April 22, 2019 at 03:35 PM UTC
Updated: June 17, 2026 at 12:22 AM UTC
2 products affected across 2 vendorsLxdLXD

Using LXD by Ubuntu?

Get instant alerts when new vulnerabilities affect LXD - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7
Exploit prediction
EPSS 0.9%

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions
v < 0.19-0ubuntu5
Affected range stops below 0.19-0ubuntu5, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

CVSS

7HIGHcanonical
Attack Vector
PHYSICAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card