Skip to main content
← All vulnerabilities
CVE-2015-1340GHSA-8MPQ-FMR3-6JXVGO-2021-0071

chmod race in doUidshiftIntoContainer

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.19-0ubuntu5, 0.0.0-20151004155856-19c6961cc101
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Ubuntu LXD

    fixed in 0.19-0ubuntu5

  • github.com/lxc/lxdGo

    fixed in 0.0.0-20151004155856-19c6961cc101

References 1

GitHub · lxc/lxd