CVE-2015-1340

published 22 Apr 2019 · updated 17 Sep 2024

chmod race in doUidshiftIntoContainer

7.0HighCVSS 7.0EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.19-0ubuntu5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Ubuntu<0.19-0ubuntu50.19-0ubuntu5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2015-1340 severity on Zeptric[![CVE-2015-1340](https://zeptric.io/badge/cve/CVE-2015-1340.svg)](https://zeptric.io/cve/CVE-2015-1340)