Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libvirt | 0.9.12-6 | — |
| Debian 13 | libvirt | 0.9.12-6 | — |
| Debian 12 | libvirt | 0.9.12-6 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | libvirt +4 | 0.9.10-21.el6_3.8 | RHSA-2013:0199 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libvirt | 2.5.0-1.1 | openSUSE-SU-2024:10209-1 |
Advisories 2
- RHSA-2013:0199 Red Hat Security Advisory: libvirt security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- openSUSE-SU-2024:10209-1 libvirt-2.5.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- FEDORA-2013-1626 vendor-advisory
- openSUSE-SU-2013:0275 vendor-advisory
- 89644 vdb-entry
- http://libvirt.org/news.html
- libvirt-virnetmessagefree-code-exec(81552) vdb-entry
- openSUSE-SU-2013:0274 vendor-advisory
- SUSE-SU-2013:0320 vendor-advisory
- FEDORA-2013-1644 vendor-advisory
- http://wiki.libvirt.org/page/Maintenance_Releases
- 1028047 vdb-entry
- USN-1708-1 vendor-advisory
- FEDORA-2013-1642 vendor-advisory
- http://libvirt.org/git/?p=libvirt.git%3Ba=commit%3Bh=46532e3e8ed5f5a736a02f67d6c805492f9ca720
- 52001 third-party-advisory
- RHSA-2013:0199 vendor-advisory
- 57578 vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=893450
- 52003 third-party-advisory