Skip to content
OpenAdvisories
High · 7.0 CVE-2015-1340 EUVD-2022-3203GHSA-8mpq-fmr3-6jxvGO-2021-0071

chmod race in doUidshiftIntoContainer

Published Apr 22, 2019 · Updated Sep 17, 2024 · Assigned by canonical

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 products

VendorProductAffectedFixed
Ubuntu LXD unspecified – < 0.19-0ubuntu5 0.19-0ubuntu5

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/lxc/lxd < 0.0.0-20151004155856-19c6961cc101 0.0.0-20151004155856-19c6961cc101 GHSA-8mpq-fmr3-6jxv

References