Skip to content
Fencer Intel
high 7.0

CVE-2015-1340 json

chmod race in doUidshiftIntoContainer

published 2019-04-22 7 y ago modified 2026-06-17 4 mo ago also GHSA-8mpq-fmr3-6jxv , GO-2021-0071 , EUVD-2022-3203

cvss
7.0
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 59%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/lxc/lxd 0.0.0-20151004155856-19c6961cc101
  • Ubuntu LXD 0.19-0ubuntu5

Exploit prediction

0.90% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.0 7.0 CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD 3.0 8.1 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P
GitHub 3.0 8.1 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/lxc/lxd
<0.0.0-20151004155856-19c6961cc101
0.0.0-20151004155856-19c6961cc101

Affected products

  • Ubuntu LXD

Classification

Weakness
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.