LiveActive security incident?Get immediate response
CVE Record

CVE-2015-1340: chmod race in doUidshiftIntoContainer

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.

HighCVSS 7Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw lets a local user race LXD while it changes file permissions during container handling. If successful, the user could make an arbitrary system file use permissions they choose, potentially compromising confidentiality, integrity, and availability.

Executive priority

Prioritize remediation on shared Linux infrastructure, build systems, and hosts where lower-privileged users can access LXD. The issue is high impact but requires local access and a race, so urgency depends on user trust boundaries.

Technical view

LXD before 0.19-0ubuntu5 has a time-of-check/time-of-use race in doUidshiftIntoContainer(). A symlink created between Filepath.Walk() stat handling and an unsafe Chmod() call could redirect chmod to another system file. CVSS 3.0 is 7.0 with local access, low privileges, high complexity, and high CIA impact.

Likely exposure

Exposure is limited to Ubuntu systems running vulnerable LXD versions before 0.19-0ubuntu5. The source bundle does not identify other vendors, exact package ranges beyond that version boundary, or internet-reachable attack paths.

Exploitation context

The CVE is not listed as KEV in the supplied data, and the bundle provides no evidence of active exploitation. Exploitation requires local low-privileged access and winning a race condition, which raises difficulty but does not remove business risk on shared or multi-user hosts.

Researcher notes

Evidence points to an unsafe chmod race in doUidshiftIntoContainer(). The supplied sources do not include exploit reports, broader affected product lists, CWE mapping, or detailed advisory text, so conclusions should stay bounded to Ubuntu LXD before 0.19-0ubuntu5.

Mitigation direction

  • Upgrade Ubuntu LXD to 0.19-0ubuntu5 or a vendor-confirmed later fixed build.
  • Use supported vendor packages or maintenance branches for the referenced LXD fix.
  • Restrict local shell and LXD management access on vulnerable hosts until remediated.
  • Review Ubuntu package changelogs for distribution-specific backports and fixed build identifiers.

Validation and detection

  • Inventory Ubuntu hosts running LXD and record installed package versions.
  • Flag any LXD build earlier than 0.19-0ubuntu5 for remediation.
  • Confirm the deployed package includes the referenced LXD commit or vendor backport.
  • Check whether vulnerable hosts allow untrusted local users or shared administrative access.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2015-1340 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7 (3.0)
Known Exploited
No
Published

Vector: CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7CVSS 3.0HighCVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H0.46Primary CVE score

Vulnerability scoring details

Base CVSS 3.0 score

7High
CVSS 3.0 vector shape for CVE-2015-1340Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
UbuntuLXDunspecifiedListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.