CVE-2015-1331
NoneCVSS
—
EPSS
0.5%
Published
Aug 12, 2015
CISA due date
—
Cloudanix analysis
Older container software contains a flaw that lets someone already logged into the system create files in restricted locations, which could allow them to gain broader control of the machine.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A local attacker can exploit a symlink race condition in lxclock.c to create arbitrary files on the system by targeting lock files in /run/lock/lxc/.
Why it matters to the business
Attackers with local access can create files anywhere on container hosts, potentially leading to privilege escalation, persistence, or full system compromise in environments using older LXC versions.
How an attack unfolds
An attacker with local access on a host running vulnerable LXC creates a symlink from a lock file path under /run/lock/lxc/ to a chosen target file, then triggers container locking operations so that file creation follows the symlink and writes to the unintended location.
How to fix it
Upgrade LXC to a version newer than 1.1.2 that resolves the symlink handling flaw in lxclock.c; apply vendor patches or rebuild from fixed source if no package is available.
How to confirm the fix worked
Confirm LXC version exceeds 1.1.2, review lxclock.c for proper symlink handling, and test by attempting symlink creation under /run/lock/lxc/ during container operations to ensure it fails safely.
Typical attack path
- Obtain local shell access on an LXC host
- Create a malicious symlink pointing from /run/lock/lxc/ to a target file
- Trigger LXC container start or locking routines to follow the symlink
- Verify creation of the arbitrary file and leverage for further access
How to detect it
Search host logs and audit trails for unexpected file creation events or symlink operations involving /run/lock/lxc/, inspect LXC container startup processes, and review filesystem changes under lock directories during the vulnerable period.
- /run/lock/lxc/
- lxclock
- symlink.*lock.*lxc
What your security team should do
- Immediately upgrade all LXC installations beyond version 1.1.2
- Limit local user access on container hosts to trusted administrators only
- Implement file integrity monitoring on /run/lock/lxc/ and system directories
- Review container host logs for historical signs of unexpected file creation
The record
lxclock.c in LXC 1.1.2 and earlier allows local users to create arbitrary files via a symlink attack on /run/lock/lxc/*.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | lxc | 0 | 1:1.0.7-4 |
| Debian:12 | lxc | 0 | 1:1.0.7-4 |
| Debian:13 | lxc | 0 | 1:1.0.7-4 |
| Debian:8 | lxc | 0 | 1:1.0.6-6+deb8u1 |
| Mageia:5 | lxc | 0 | 1.0.5-3.1.mga5 |
| Ubuntu:14.04:LTS | lxc | 0 | 1.0.7-0ubuntu0.2 |
| openSUSE:Tumbleweed | lxc | 0 | 2.0.4-2.1 |
Related vulnerabilities
- CVE-2016-8649 lxc-attach in LXC before 1.0.9 and 2.x before 2.0.6 allows an attacker inside of an… Also affects lxc
- CVE-2017-5985 lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation… Also affects lxc
- CVE-2016-10124 An issue was discovered in Linux Containers (LXC) before 2016-02-22. Also affects lxc
- CVE-2015-1335 lxc-start in lxc before 1.0.8 and 1.1.x before 1.1.4 allows local container… Also affects lxc
- CVE-2026-39402 lxc is a Linux container runtime. Also affects lxc
- CVE-2026-113724 virtualenv is a tool for creating isolated virtual python environments. CWE-59
- CVE-2026-113716 virtualenv is a tool for creating isolated virtual python environments. CWE-59
- CVE-2026-55480 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-59