CVE-2013-6456
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe LXC driver (lxc/lxc_driver.c) in libvirt 1.0.1 through 1.2.1 allows local users to (1) delete arbitrary host devices via the virDomainDeviceDettach API and a symlink attack on /dev in the container; (2) create arbitrary nodes (mknod) via the virDomainDeviceAttach API and a symlink attack on /dev in the container; and cause a denial of service (shutdown or reboot host OS) via the (3) virDomainShutdown or (4) virDomainReboot API and a symlink attack on /dev/initctl in the container, related to "paths under /proc/$PID/root" and the virInitctlSetRunLevel function.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceLXC driver in libvirt 1.0.1-1.2.1 improperly validates symlinks in /dev within containers, allowing local users to manipulate host devices via virDomainDeviceAttach/Detach APIs through symlink attacks, and cause host DoS via virDomainShutdown/Reboot APIs by targeting /dev/initctl through symlinks that resolve outside the container namespace due to incomplete path sanitization under /proc/$PID/root.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 1.0.1= 1.0.2= 1.0.3= 1.0.4= 1.0.5= 1.0.5.1= 1.0.5.2= 1.0.5.3= 1.0.5.4= 1.0.5.5= 1.0.5.6= 1.0.6= 20CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Adjacent
- Complexity
- M
- Authentication
- Single
- Confidentiality
- None
- Integrity
- Partial
- Availability
- Complete
AV:A/AC:M/Au:S/C:N/I:P/A:C
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed libvirt versionRun 'rpm -q libvirt' (RHEL/Fedora) or 'dpkg -l libvirt-daemon' (Debian/Ubuntu) to find the installed package version, or use 'virsh --version' to get the libvirt version numberAffected if The version matches 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.5.1, 1.0.5.2, 1.0.5.3, 1.0.5.4, 1.0.5.5, 1.0.5.6, or 1.0.6 (for Red Hat builds), or if running Fedora 20 with these libvirt versions
-
Confirm LXC driver is in useCheck running libvirt domains with 'virsh list --all' and inspect domain XML configs with 'virsh dumpxml <domain>' to identify domains using LXC (look for '<os><type>hvm</type></os>' with '<loader>' for QEMU, or check for LXC-specific configuration elements)Affected if Any LXC container domains are defined and running on the affected libvirt version
-
Check for symlinks in container /dev directoriesExamine /dev within running container namespaces - list contents of /dev for container processes using 'ls -la /proc/<container_pid>/root/dev/' and look for symlinks pointing outside the container (symlinks with '->' pointing to paths like /dev/initctl or /dev/tty)Affected if Symlinks exist in container /dev directories that point to host device paths or resolve outside the container namespace, particularly entries targeting /dev/initctl or other host devices
-
Verify device attachment capability is exposedReview container XML configuration for passthrough device assignments or check if untrusted users have access to virDomainDeviceAttach/Detach APIs via libvirt ACLs or policy filesAffected if Container configurations allow device passthrough or untrusted users have permissions to attach/detach devices to containers
A system is affected if it runs libvirt versions 1.0.1 through 1.0.6 with active LXC containers, particularly if those containers expose device manipulation APIs to untrusted users or contain symlinks in /dev that could traverse outside the container namespace.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataUpgrade libvirt to version 1.2.2 or later which contains the fix; alternatively, implement proper symlink validation to prevent traversal outside container /dev directory and restrict device manipulation APIs for untrusted containers.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2013-6456 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2013-6456 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data