Advisory

GHSA-8mpq-fmr3-6jxv

Also known as: CVE-2015-1340, GO-2021-0071

Summary

LXD vulnerable to Race Condition

Details

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.

Specific Go Packages Affected
github.com/lxc/lxd/shared

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-24 16:44 UTC
Modified
2023-11-08 03:57 UTC

Affected packages and fixes

github.com/lxc/lxd

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20151004155856-19c6961cc101 (semver)

Fixed versions

0.0.0-20151004155856-19c6961cc101

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences