CVE-2013-0170: Use-after-free vulnerability in the virNetMessageFree function in rpc/virnetserverclient.c in libvirt 1.0.x before 1.0.2, 0.10.2 before…
Noroxi assessment
Priority: Monitor (action score 29/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 5.7% (FIRST EPSS); higher than 93.2% of all records.
- Fixed version: libvirt (Debian:12) 0.9.12-6; libvirt (openSUSE:Tumbleweed) 2.5.0-1.1; libvirt (Red Hat:enterprise_linux:6::client) 0:0.9.10-21.el6_3.8.
Low priority for now. Upgrade to libvirt (Debian:12) 0.9.12-6; libvirt (openSUSE:Tumbleweed) 2.5.0-1.1; libvirt (Red Hat:enterprise_linux:6::client) 0:0.9.10-21.el6_3.8 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
Use-after-free vulnerability in the virNetMessageFree function in rpc/virnetserverclient.c in libvirt 1.0.x before 1.0.2, 0.10.2 before 0.10.2.3, 0.9.11 before 0.9.11.9, and 0.9.6 before 0.9.6.4 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code by triggering certain errors during an RPC connection, which causes a message to be freed without being removed from the message queue.
- Published
- Feb 8, 2013
- Updated
- Jun 16, 2026
- EPSS
- 5.7% · 93th percentile
- CWE
- CWE-416
Report tools
Action score
29
Low priority for now.
- CVSS
- 27 / 40 · 6.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.7%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| redhat | libvirt | cpe:2.3:a:redhat:libvirt |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux eus | cpe:2.3:o:redhat:enterprise_linux_eus |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
| redhat | enterprise linux workstation | cpe:2.3:o:redhat:enterprise_linux_workstation |
| opensuse | opensuse | cpe:2.3:o:opensuse:opensuse |
| suse | linux enterprise desktop | cpe:2.3:o:suse:linux_enterprise_desktop |
| suse | linux enterprise server | cpe:2.3:o:suse:linux_enterprise_server |
| suse | linux enterprise software development kit | cpe:2.3:o:suse:linux_enterprise_software_development_kit |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux12.04
- canonical ubuntu linux12.10
- fedoraproject fedora16
- fedoraproject fedora17
- fedoraproject fedora18
- opensuse opensuse12.1
- opensuse opensuse12.2
- redhat enterprise linux desktop6.0
+10 more rows
- redhat enterprise linux eus6.3
- redhat enterprise linux server6.0
- redhat enterprise linux workstation6.0
- redhat libvirt0.9.11 and later · before 0.9.11.9
- redhat libvirt0.9.6 and later · before 0.9.6.4
- redhat libvirt0.10.2 and later · before 0.10.2.3
- redhat libvirt1.0.0 and later · before 1.0.2
- suse linux enterprise desktop11
- suse linux enterprise server11
- suse linux enterprise software development kit11
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | libvirt | before 0.9.12-6 | 0.9.12-6 |
| openSUSE:Tumbleweed | libvirt | before 2.5.0-1.1 | 2.5.0-1.1 |
| Red Hat:enterprise_linux:6::client | libvirt | before 0:0.9.10-21.el6_3.8 | 0:0.9.10-21.el6_3.8 |
| Red Hat:enterprise_linux:6::client | libvirt-client | before 0:0.9.10-21.el6_3.8 | 0:0.9.10-21.el6_3.8 |
| Red Hat:enterprise_linux:6::client | libvirt-debuginfo | before 0:0.9.10-21.el6_3.8 | 0:0.9.10-21.el6_3.8 |
| Red Hat:enterprise_linux:6::client | libvirt-devel | before 0:0.9.10-21.el6_3.8 | 0:0.9.10-21.el6_3.8 |
| Red Hat:enterprise_linux:6::client | libvirt-lock-sanlock | before 0:0.9.10-21.el6_3.8 | 0:0.9.10-21.el6_3.8 |
| Red Hat:enterprise_linux:6::client | libvirt-python | before 0:0.9.10-21.el6_3.8 | 0:0.9.10-21.el6_3.8 |
Same product
redhat: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5008libvirt before 2.0.0 improperly disables password checking when the password on a VNC server is set to an empty string, which allows remote…40Plan
- CVE-2020-14339A flaw was found in libvirt, where it leaked a file descriptor for `/dev/mapper/control` into the QEMU process.35Monitor
- CVE-2019-10132A vulnerability was found in libvirt >= 4.1.0 in the virtlockd-admin.socket and virtlogd-admin.socket systemd units.35Monitor
Published before and after this one in the same product
- ← EarlierCVE-2012-3445Aug 7, 2012 · The virTypedParameterArrayClear function in libvirt 0.9.13 does not properly handle virDomain* API calls with typed parameters, which might…15Monitor
- ← EarlierCVE-2012-4423Nov 19, 2012 · The virNetServerProgramDispatchCall function in libvirt before 0.10.2 allows remote attackers to cause a denial of service (NULL pointer…21Monitor
- Later →CVE-2013-1766Mar 20, 2013 · libvirt 1.0.2 and earlier sets the group owner to kvm for device files, which allows local users to write to these files via unspecified…14Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libvirt | 0.9.12-6 · Debian:12 | Package registry (OSV) |
| opensuse:libvirt | 2.5.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:libvirt | 0:0.9.10-21.el6_3.8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:libvirt-client | 0:0.9.10-21.el6_3.8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:libvirt-debuginfo | 0:0.9.10-21.el6_3.8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:libvirt-devel | 0:0.9.10-21.el6_3.8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:libvirt-lock-sanlock | 0:0.9.10-21.el6_3.8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
| red hat:libvirt-python | 0:0.9.10-21.el6_3.8 · Red Hat:enterprise_linux:6::client | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-416 · Use After FreeCVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
nvd-primary
Root cause
After a memory region is freed, another reference pointing to it is still used. By then, the same region may have been allocated for different data.
The bug in code
The whole CWE-416 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
free(dev->buf);
/* ... another thread is still running ... */
process(dev->buf);Fixed
lock(&dev->lock);
free(dev->buf);
dev->buf = NULL;
unlock(&dev->lock);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (17 more)Show less
- libvirt.org/news.html
- lists.fedoraproject.org/pipermail/package-announce/2013-February/098326.html
- lists.fedoraproject.org/pipermail/package-announce/2013-February/098370.html
- lists.fedoraproject.org/pipermail/package-announce/2013-February/098398.html
- lists.opensuse.org/opensuse-security-announce/2013-02/msg00001.html
- lists.opensuse.org/opensuse-security-announce/2013-02/msg00002.html
- lists.opensuse.org/opensuse-security-announce/2013-02/msg00016.html
- osvdb.org/89644
- rhn.redhat.com/errata/RHSA-2013-0199.html
- secunia.com/advisories/52001
- secunia.com/advisories/52003
- wiki.libvirt.org/page/Maintenance_Releases
- www.securityfocus.com/bid/57578
- www.securitytracker.com/id/1028047
- www.ubuntu.com/usn/USN-1708-1
- bugzilla.redhat.com/show_bug.cgi?id=893450
- exchange.xforce.ibmcloud.com/vulnerabilities/81552
Vendor advisories and official records. Exploit/PoC links are deliberately left out.